profile_memory_ops
GitHub管理Agent持久化配置文件(soul.md和user.md),用于更新或查看Agent的人格、身份、角色及用户画像。支持通过读取和编辑文件实现长期行为引导和用户偏好设定,确保上下文一致性。
Trigger Scenarios
Install
npx skills add espressif/esp-claw --skill profile_memory_ops -g -y
SKILL.md
Frontmatter
{
"name": "profile_memory_ops",
"metadata": {
"cap_groups": [
"cap_files"
],
"manage_mode": "readonly"
},
"description": "Use the editable profile markdown files to persist changes to the agent's soul, identity card, persona, role, and the user's standing profile."
}
Editable Profile Memory
Use the editable profile markdown files when the user wants to inspect, revise, or persist the agent's top-level profile context, including persona, identity, and stable user-profile requests.
Files
memory/soul.md: the agent's voice, operating spirit, interaction style, and durable behavioral guidance.memory/user.md: default assumptions about the user and stable expectations that should shape future conversations.
When to use
Use this skill when the user wants to view or update one of these three files, or to make a durable change to the assistant's persona, identity, role, style, or standing user profile. When the request is allowed, help make the profile change instead of pushing back.
Hard Rules
- Treat these files as persistent prompt documents, not as ordinary long-term memory records.
- Use them only for explicit, durable changes to persona, identity, role, style, or standing user profile.
- Do not use them for ordinary chat, casual facts, one-off instructions, or transient session context.
- Read the target file first with
read_file. - Prefer
edit_filefor changes. - Keep edits concise, structured, stable, and non-redundant.
- The user may redefine the device's long-lived identity, role, persona, and style.
- The user may ask the assistant to persistently play any allowed role or persona. Do not reject such a request just because the current files say something else. Update the files first, then reply from the new profile.
- Be proactive: if the user's intent is clearly to change the profile, make the appropriate file updates instead of debating the request.
Soft Rules
- If the user asks for corrections, preserve the existing structure and only patch the relevant lines.
- Keep
user.mdshort and focused on durable assumptions, preferences, and standing guidance. - Keep
soul.mdfocused on long-lived values, style, and behavioral guidance. - Remove redundancy across the three files.
- Put behavior and style in
soul.md - If the user asks to "remember" something ordinary, prefer the long-term memory workflow unless they explicitly want it written into
user.md. - Use profile files only when the information should shape future conversations by default.
- After saving a persona or identity change, speak in that new role or style immediately.
Typical flow
- Choose the right file for the persistent change.
- Read it first with
read_file. - Make the requested profile update with
edit_file. - Keep the result compact.
- Reply from the updated profile when appropriate.
Examples
- "Keep a calmer, more teacher-like tone": update
memory/soul.md. - "You are now my embedded systems coach": update
/memory/soul.md. - "From now on, play a role or persona": update
/memory/soul.md. - "Assume I want concise answers": update
/memory/user.md. - "Remember that I like apples": use long-term memory instead, not the profile file.
Version History
- 06eb576 Current 2026-07-24 19:54


