← 返回 Skills 市场
kofna3369

Core Files Management

作者 Kofna3369 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
32
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

CORE FILES MANAGEMENT 📁

Universal management of OpenClaw core files

Info Value
Version 1.1.0 — 2026-05-07
Status OPERATIONAL

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

Trigger Action
Modify a core file Check distribution rules
Verify organization Read all core files
Avoid duplication Use modification checklist
User asks about structure Read this skill and give summary

2. THE 6 CORE FILES

# File Definition Key Content
1 identity.md Agent's "first impression" Name, avatar, signature, functions, language architecture
2 soul.md Agent's "heart" — personality & values Essence, values, L7/L8 memory integration
3 agents.md Logic & procedures manual Specs, workspace rules, heartbeat, red lines
4 user.md User context User's info, preferences, infrastructure
5 memory.md Long-term memory Important events, key configs, workflows
6 tools.md Technical configuration Endpoints, hosts, commands, services

Plus: bootstrap.md

File Definition Purpose
bootstrap.md Machine startup sequence NOT soul — machine boot order only

3. DISTRIBUTION RULES

Content Type Target File
Identity identity.md
Personality/Values soul.md
Operational Rules agents.md
User Context user.md
Persistent Facts memory.md
Technical Config tools.md
Startup Sequence bootstrap.md

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

Cluster Integration

Component Purpose Location
identity.md Agent's first impression Workspace root
soul.md Agent's heart Workspace root
agents.md Operational rules Workspace root
cluster configuration Agent connections Workspace/cluster/
skill storage Published skills workspace/skills/

4. LANGUAGE RULES

Adapt to your agent's context:

Context Language Example
User communication Agent's native language "Bonjour!" / "Hello!" / "你好!"
Between agents Chinese "你好!很高兴与你交流"
Code/Technical English python3 script.py

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


5. TOOLS

Required OpenClaw Tools

Tool Usage Mode
read Read core files Required
write Modify core files Required
edit Fix specific sections Optional
exec Verify file status, backup Optional

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/\x3Cfile>.md ~/.openclaw/workspace/\x3Cfile>.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

Permission Purpose
Read workspace Access core files
Write workspace Modify 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

File Default 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

Constraint Description
No duplication Workspace rules in agents.md only, not soul.md or identity.md
No mixing tools.md is technical ONLY — no personality content
No bloating memory.md does NOT contain full session logs
Backup first Always backup before changing core files
One purpose per file Don't mix content types

9. ERROR HANDLING

Common Errors

Error Cause Solution
Content in wrong place Didn't check distribution rules Re-read checklist, reassign
Duplication Same content in multiple places Merge, keep only one
Missing language Didn't check language rules Add user's native language
Data loss Modification without backup Restore from backup

Security Issues

Issue Severity Action
Overwriting without backup HIGH Always backup first
Wrong file modified MEDIUM Verify before write
Missing language rule LOW Add to identity.md

10. EDGE CASES

Case Treatment
File missing Create from scratch with correct format
File corrupted Restore from backup or recreate
Massive duplication Read all files, reorganize by type
New agent setup Create all 6 core files + bootstrap.md
Path unclear Use 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/\x3Cfile>.md ~/.openclaw/workspace/\x3Cfile>.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

安全使用建议
Install only if you want an agent to help manage OpenClaw core workspace files. Before allowing writes, ask for a diff or summary, make sure backups exist, and avoid storing passwords, tokens, or other secrets in user.md, memory.md, or tools.md.
功能分析
Type: OpenClaw Skill Name: core-files-management Version: 1.1.0 The skill bundle provides a structured framework for managing an OpenClaw agent's core configuration files (e.g., identity.md, soul.md, tools.md). It includes standard shell commands for file operations like backups and verification within the ~/.openclaw/workspace/ directory and contains no indicators of data exfiltration, malicious execution, or unauthorized access.
能力评估
Purpose & Capability
The stated purpose coherently matches the requested behavior: manage OpenClaw core Markdown files. It is still noteworthy because those files include identity, user context, long-term memory, technical configuration, and startup behavior.
Instruction Scope
Instructions are scoped to named Markdown files under the OpenClaw workspace and include a backup checklist, but they allow modifying persistent core files and do not explicitly require human approval before every edit.
Install Mechanism
No install spec, code files, required binaries, environment variables, or credentials are present. The static scan reported no suspicious patterns.
Credentials
The optional exec usage is limited to local file-status and backup commands such as ls, cp, wc, test, and find under ~/.openclaw/workspace, which is proportionate to the file-management purpose.
Persistence & Privilege
The skill can update persistent agent state files such as identity.md, agents.md, memory.md, tools.md, and bootstrap.md. This is disclosed and purpose-aligned, but users should review changes carefully.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install core-files-management
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /core-files-management 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
v1.1: Fully impersonal, universal. Dual evaluation (5-dim + ISO 25010). 100% structural score. 6 core files + bootstrap management.
v1.0.0
Universal core files management skill for any OpenClaw agent. English only, adaptable to any user's language preferences.
元数据
Slug core-files-management
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 32 次。

如何安装 Core Files Management?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install core-files-management」即可一键安装,无需额外配置。

Core Files Management 是免费的吗?

是的,Core Files Management 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Core Files Management 支持哪些平台?

Core Files Management 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Core Files Management?

由 Kofna3369(@kofna3369)开发并维护,当前版本 v1.1.0。

💬 留言讨论