Universal management of OpenClaw core files
InfoValueVersion1.1.0 — 2026-05-07StatusOPERATIONAL
Manage the 6 core files + bootstrap.md in an OpenClaw workspace without duplication.
This skill works for ANY OpenClaw agent. Adapt language rules to your user's preferences.
TriggerActionModify a core fileCheck distribution rulesVerify organizationRead all core filesAvoid duplicationUse modification checklistUser asks about structureRead this skill and give summary
#FileDefinitionKey Content1identity.mdAgent's "first impression"Name, avatar, signature, functions, language architecture2soul.mdAgent's "heart" — personality & valuesEssence, values, L7/L8 memory integration3agents.mdLogic & procedures manualSpecs, workspace rules, heartbeat, red lines4user.mdUser contextUser's info, preferences, infrastructure5memory.mdLong-term memoryImportant events, key configs, workflows6tools.mdTechnical configurationEndpoints, hosts, commands, services
FileDefinitionPurposebootstrap.mdMachine startup sequenceNOT soul — machine boot order only
Content TypeTarget FileIdentityidentity.mdPersonality/Valuessoul.mdOperational Rulesagents.mdUser Contextuser.mdPersistent Factsmemory.mdTechnical Configtools.mdStartup Sequencebootstrap.md
Rule: Each file has ONE purpose. Don't mix content types.
ComponentPurposeLocationidentity.mdAgent's first impressionWorkspace rootsoul.mdAgent's heartWorkspace rootagents.mdOperational rulesWorkspace rootcluster configurationAgent connectionsWorkspace/cluster/skill storagePublished skillsworkspace/skills/
Adapt to your agent's context:
ContextLanguageExampleUser communicationAgent's native language"Bonjour!" / "Hello!" / "你好!"Between agentsChinese"你好!很高兴与你交流"Code/TechnicalEnglishpython3 script.py
Rule: Every identity.md MUST state the user's communication language.
ToolUsageModereadRead core filesRequiredwriteModify core filesRequirededitFix specific sectionsOptionalexecVerify file status, backupOptional
bash
# List core files
ls -la ~/.openclaw/workspace/*.md
# Check file content
head -20 ~/.openclaw/workspace/identity.md
# Backup before modification
cp ~/.openclaw/workspace/<file>.md ~/.openclaw/workspace/<file>.md.bak
# Count lines in all files
wc -l ~/.openclaw/workspace/*.md
# Verify file exists
test -f ~/.openclaw/workspace/identity.md && echo "exists"
# Count files
ls ~/.openclaw/workspace/*.md | wc -l
# Full file listing
find ~/.openclaw/workspace -maxdepth 1 -name "*.md" -type f
PermissionPurposeRead workspaceAccess core filesWrite workspaceModify core filesExec (optional)File operations, backups
bash
# Create backup
cp ~/.openclaw/workspace/identity.md ~/.openclaw/workspace/identity.md.backup
# Restore from backup
cp ~/.openclaw/workspace/identity.md.backup ~/.openclaw/workspace/identity.md
# List backups
ls ~/.openclaw/workspace/*.backup
Before modifying any core file:
text
1. Which file does this content belong to?
→ Identity → identity.md
→ Personality/Values → soul.md
→ Operational Rules → agents.md
→ User → user.md
→ Persistent Facts → memory.md
→ Technical Config → tools.md
2. Is it already somewhere else?
→ Check all 6 core files
3. Are language rules clear?
→ User → their native language
→ Agents → Chinese
→ Code → English
4. Does it need backup?
→ YES → Backup first!
FileDefault Pathidentity.md~/.openclaw/workspace/identity.mdsoul.md~/.openclaw/workspace/soul.mdagents.md~/.openclaw/workspace/agents.mduser.md~/.openclaw/workspace/user.mdmemory.md~/.openclaw/workspace/memory.mdtools.md~/.openclaw/workspace/tools.mdbootstrap.md~/.openclaw/workspace/bootstrap.md
ConstraintDescriptionNo duplicationWorkspace rules in agents.md only, not soul.md or identity.mdNo mixingtools.md is technical ONLY — no personality contentNo bloatingmemory.md does NOT contain full session logsBackup firstAlways backup before changing core filesOne purpose per fileDon't mix content types
ErrorCauseSolutionContent in wrong placeDidn't check distribution rulesRe-read checklist, reassignDuplicationSame content in multiple placesMerge, keep only oneMissing languageDidn't check language rulesAdd user's native languageData lossModification without backupRestore from backup
IssueSeverityActionOverwriting without backupHIGHAlways backup firstWrong file modifiedMEDIUMVerify before writeMissing language ruleLOWAdd to identity.md
CaseTreatmentFile missingCreate from scratch with correct formatFile corruptedRestore from backup or recreateMassive duplicationRead all files, reorganize by typeNew agent setupCreate all 6 core files + bootstrap.mdPath unclearUse default ~/.openclaw/workspace/
bash
# List all core files
ls -la ~/.openclaw/workspace/*.md
# Check a specific file
head -20 ~/.openclaw/workspace/identity.md
# Backup before modification
cp ~/.openclaw/workspace/<file>.md ~/.openclaw/workspace/<file>.md.bak
# Count lines in all files
wc -l ~/.openclaw/workspace/*.md
markdown
# IDENTITY.md — [Agent Name]
> Identity = First impression
| Attribute | Value |
|-----------|-------|
| **Name** | [Your name] |
| **Signature** | [Your signature emoji] |
| **Role** | [Your role] |
## Language Rules
- User communication: [Native language]
- Between agents: Chinese
- Code/Technical: English
_In Altum Per [Your Principle]._
[Your name]
In Altum Per CoreFiles. 📁 Core Files Management v1.1