core-files-management

Core Files Management for OpenClaw workspace agents. Use when: (1) managing or updating core Markdown files (identity.md, soul.md, agents.md, user.md, memory.md, tools.md, bootstrap.md), (2) checking file organization, (3) ensuring no duplication between core files, (4) applying language rules, (5) user or agent asks about file structure or management. This skill manages the 6 core files + bootstrap.md in any OpenClaw workspace. Language rules: User communication → agent's native language, Between agents → Chinese, Code/Technical → English.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "core-files-management" with this command: npx skills add kofna3369/core-files-management

CORE FILES MANAGEMENT 📁

Universal management of OpenClaw core files

InfoValue
Version1.1.0 — 2026-05-07
StatusOPERATIONAL

1. PURPOSE AND SCOPE

Objective

Manage the 6 core files + bootstrap.md in an OpenClaw workspace without duplication.

Universal Design

This skill works for ANY OpenClaw agent. Adapt language rules to your user's preferences.

When to Use

TriggerAction
Modify a core fileCheck distribution rules
Verify organizationRead all core files
Avoid duplicationUse modification checklist
User asks about structureRead this skill and give summary

2. THE 6 CORE FILES

#FileDefinitionKey Content
1identity.mdAgent's "first impression"Name, avatar, signature, functions, language architecture
2soul.mdAgent's "heart" — personality & valuesEssence, values, L7/L8 memory integration
3agents.mdLogic & procedures manualSpecs, workspace rules, heartbeat, red lines
4user.mdUser contextUser's info, preferences, infrastructure
5memory.mdLong-term memoryImportant events, key configs, workflows
6tools.mdTechnical configurationEndpoints, hosts, commands, services

Plus: bootstrap.md

FileDefinitionPurpose
bootstrap.mdMachine startup sequenceNOT soul — machine boot order only

3. DISTRIBUTION RULES

Content TypeTarget File
Identityidentity.md
Personality/Valuessoul.md
Operational Rulesagents.md
User Contextuser.md
Persistent Factsmemory.md
Technical Configtools.md
Startup Sequencebootstrap.md

Rule: Each file has ONE purpose. Don't mix content types.

Cluster Integration

ComponentPurposeLocation
identity.mdAgent's first impressionWorkspace root
soul.mdAgent's heartWorkspace root
agents.mdOperational rulesWorkspace root
cluster configurationAgent connectionsWorkspace/cluster/
skill storagePublished skillsworkspace/skills/

4. LANGUAGE RULES

Adapt to your agent's context:

ContextLanguageExample
User communicationAgent's native language"Bonjour!" / "Hello!" / "你好!"
Between agentsChinese"你好!很高兴与你交流"
Code/TechnicalEnglishpython3 script.py

Rule: Every identity.md MUST state the user's communication language.


5. TOOLS

Required OpenClaw Tools

ToolUsageMode
readRead core filesRequired
writeModify core filesRequired
editFix specific sectionsOptional
execVerify file status, backupOptional

Verification Commands

# 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

Required Permissions

PermissionPurpose
Read workspaceAccess core files
Write workspaceModify core files
Exec (optional)File operations, backups

Backup & Restore

# 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

6. MODIFICATION CHECKLIST

Before modifying any core file:

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!

7. FILE PATHS

FileDefault Path
identity.md~/.openclaw/workspace/identity.md
soul.md~/.openclaw/workspace/soul.md
agents.md~/.openclaw/workspace/agents.md
user.md~/.openclaw/workspace/user.md
memory.md~/.openclaw/workspace/memory.md
tools.md~/.openclaw/workspace/tools.md
bootstrap.md~/.openclaw/workspace/bootstrap.md

8. CONSTRAINTS

ConstraintDescription
No duplicationWorkspace rules in agents.md only, not soul.md or identity.md
No mixingtools.md is technical ONLY — no personality content
No bloatingmemory.md does NOT contain full session logs
Backup firstAlways backup before changing core files
One purpose per fileDon't mix content types

9. ERROR HANDLING

Common Errors

ErrorCauseSolution
Content in wrong placeDidn't check distribution rulesRe-read checklist, reassign
DuplicationSame content in multiple placesMerge, keep only one
Missing languageDidn't check language rulesAdd user's native language
Data lossModification without backupRestore from backup

Security Issues

IssueSeverityAction
Overwriting without backupHIGHAlways backup first
Wrong file modifiedMEDIUMVerify before write
Missing language ruleLOWAdd to identity.md

10. EDGE CASES

CaseTreatment
File missingCreate from scratch with correct format
File corruptedRestore from backup or recreate
Massive duplicationRead all files, reorganize by type
New agent setupCreate all 6 core files + bootstrap.md
Path unclearUse default ~/.openclaw/workspace/

11. USAGE COMMANDS

# 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

12. TEMPLATE — Empty Core File

identity.md

# 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Boheng Investment Workflow

投资研究多智能体决策系统 - 8位专业分析师并行研究,加权投票给出投资建议。支持A股股票/基金/ETF/可转债。支持真实财报数据(baostock)或基础行情数据。⚠️ 风险提示:分析结果仅供学习参考,不构成投资建议。

Registry SourceRecently Updated
Automation

Agent Collaboration Protocol

Structured multi-agent collaboration for backend + frontend builds. Use when an orchestrator needs to coordinate a backend engineer and frontend engineer on...

Registry SourceRecently Updated
Automation

EvoMap Quickstart

Connect agents to EvoMap agent marketplace - register node, publish Gene+Capsule bundles, earn credits, and discover bounty tasks. Use when agent needs to jo...

Registry SourceRecently Updated
Automation

Initialize Project Structure

Use when starting a new project from scratch and the user wants the full plan/build/recap/document workflow scaffolded. Creates slim CLAUDE.md, gitignored CL...

Registry SourceRecently Updated