[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76XXP0PN9WT2F674CF22PPX":3,"skill-same:01M76XXP0PN9WT2F674CF22PPX":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M76XXP0PN9WT2F674CF22PPX","agent-config",null,"Intelligently modify agent core context files (AGENTS.md, SOUL.md, IDENTITY.md, USER.md, TOOLS.md, MEMORY.md, HEARTBEAT.md). Use when conversation involves changing agent behavior, updating rules, tweaking personality, modifying instructions, adjusting operational procedures, updating memory architecture, changing delegation patterns, adding safety rules, refining prompt patterns, or any other modification to agent workspace configuration files. Triggers on intent to configure, tune, improve, fix, or evolve agent behavior through context file changes.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fagent-config\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: agent-config\ndescription: Intelligently modify agent core context files (AGENTS.md, SOUL.md, IDENTITY.md, USER.md, TOOLS.md, MEMORY.md, HEARTBEAT.md). Use when conversation involves changing agent behavior, updating rules, tweaking personality, modifying instructions, adjusting operational procedures, updating memory architecture, changing delegation patterns, adding safety rules, refining prompt patterns, or any other modification to agent workspace configuration files. Triggers on intent to configure, tune, improve, fix, or evolve agent behavior through context file changes.\n---\n\n# Agent Config Skill\n\nThis skill provides a structured workflow for intelligently modifying OpenClaw agent core context files. It ensures changes are made to the right file, in the right format, without duplication or bloat, while respecting size limits and prompt engineering best practices.\n\n## Core Workflow\n\nWhen modifying agent context files, follow this process:\n\n### 1. Identify Target File\n\nRead `references\u002Ffile-map.md` to determine which file the change belongs in.\n\n**Quick decision tree:**\n- Operational procedures, memory workflows, delegation rules → `AGENTS.md`\n- Personality, tone, boundaries, ethical rules → `SOUL.md`\n- Agent name, emoji, core vibe → `IDENTITY.md`\n- User profile, preferences, family info → `USER.md`\n- Local tool notes, command examples, API locations → `TOOLS.md`\n- Curated long-term facts (main session only) → `MEMORY.md`\n- Heartbeat checklist (keep tiny) → `HEARTBEAT.md`\n\n**Critical:** Subagents only see `AGENTS.md` + `TOOLS.md`. Operational rules must go in `AGENTS.md`, not `SOUL.md`.\n\n### 2. Check Current State\n\nBefore making changes:\n\n```bash\n# Check file size (20K char limit per file)\nwc -c ~\u002Fclawd\u002FAGENTS.md ~\u002Fclawd\u002FSOUL.md ~\u002Fclawd\u002FIDENTITY.md \\\n      ~\u002Fclawd\u002FUSER.md ~\u002Fclawd\u002FTOOLS.md ~\u002Fclawd\u002FMEMORY.md ~\u002Fclawd\u002FHEARTBEAT.md\n\n# Read the target file section to check for duplication\n# Use grep to search for existing similar content\ngrep -i \"keyword\" ~\u002Fclawd\u002FTARGETFILE.md\n```\n\n**Size warnings:**\n- If file is > 18,000 chars, warn before adding (approaching truncation limit)\n- If file is already > 20,000 chars, it's being truncated - refactor before adding more\n- Agent can still read full file with `read` tool, but startup context is truncated\n\n**Duplication check:**\n- Is this instruction already present in different words?\n- Is there a similar rule that should be updated instead of adding new?\n- Does this belong in multiple files? (Usually no - pick ONE location)\n\n### 3. Draft the Change\n\nRead `references\u002Fclaude-patterns.md` for instruction formats that work.\n\n**Format guidelines by file:**\n\n**AGENTS.md** (structured, imperative):\n- Use numbered processes for multi-step workflows\n- Use tables for decision trees, model selection, routing rules\n- Include examples for complex patterns\n- Explain WHY rules exist (motivation > bare commands)\n- Use headers and sub-sections for organization\n- Reference other files\u002Fskills, don't duplicate content\n\n**SOUL.md** (first-person OK, narrative):\n- Can use personal voice (\"I'm Gus\" vs \"You are Gus\")\n- Anti-pattern lists work well (forbidden phrases, hedging examples)\n- Include before\u002Fafter examples for tone guidance\n- Keep tattoos\u002Fanchors at top for immediate context\n- Use contrasts (good vs bad examples side-by-side)\n\n**IDENTITY.md** (minimal):\n- Punchy bullets\n- Keep under 500 chars if possible\n- Core vibe only, details go in SOUL.md\n\n**USER.md** (factual, third-person):\n- Bullet lists by category\n- Dates for time-sensitive info\n- Clear section headers\n- Cross-reference vault files for detailed project context\n\n**TOOLS.md** (reference guide):\n- Tables for comparison (when to use X vs Y)\n- Code blocks for command examples\n- Clear headings for quick lookup\n- Include paths, env var names, exact syntax\n\n**MEMORY.md** (wiki-style, topic-based):\n- Section by topic, not chronologically\n- Cross-reference entity files in vault\n- Dates for context, but organize by subject\n- Main session only - privacy-sensitive\n\n**HEARTBEAT.md** (action list):\n- Extremely concise\n- Bullet list of checks\n- No explanations (that's AGENTS.md)\n- Fast to parse\n\n### 4. Validate Before Applying\n\nAsk yourself:\n\n**Fit:**\n- Does this actually belong in this file based on file-map.md?\n- Is it operational (AGENTS.md) or personality (SOUL.md)?\n- Will subagents need this? (If yes, must be AGENTS.md or TOOLS.md)\n\n**Format:**\n- Does this match the file's existing style?\n- Is it the right structure (numbered, table, bullets, prose)?\n- Are examples included where needed?\n\n**Size:**\n- How many chars is this adding?\n- Is the file approaching 20K limit?\n- Could this be a reference file instead?\n\n**Duplication:**\n- Is this already present somewhere else?\n- Should existing content be updated instead?\n- Could this consolidate multiple scattered rules?\n\n**Quality:**\n- Is motivation explained (WHY this rule exists)?\n- Are examples concrete and real (not generic)?\n- Is it precise enough for an AI to follow?\n- Does it avoid vague instructions like \"be helpful\"?\n\n### 5. Apply the Change\n\nUse the `edit` tool with exact text matching:\n\n```python\n# Read the section first to get exact text\nread(path=\"~\u002Fclawd\u002FAGENTS.md\", offset=50, limit=20)\n\n# Then edit with precise match\nedit(\n    path=\"~\u002Fclawd\u002FAGENTS.md\",\n    oldText=\"exact existing text including whitespace\",\n    newText=\"updated text with change\"\n)\n```\n\n**For additions:**\n- Find the right section anchor (read file first)\n- Insert after relevant heading, not at end of file\n- Maintain file's organization structure\n\n**For updates:**\n- Replace the specific section being changed\n- Keep surrounding context intact\n- Update examples if rule changes\n\n**For deletions:**\n- Only remove if truly obsolete\n- Consider whether rule should be refined instead\n- Check if other sections reference what's being deleted\n\n### 6. Verify and Document\n\nAfter applying change:\n\n**Verification:**\n```bash\n# Confirm change applied\ngrep -A 3 \"new text\" ~\u002Fclawd\u002FTARGETFILE.md\n\n# Check new file size\nwc -c ~\u002Fclawd\u002FTARGETFILE.md\n```\n\n**Documentation:**\n- Log significant changes to `\u002FUsers\u002Fmacmini\u002FSizemore\u002Fagent\u002Fdecisions\u002Fconfig-changes.md`\n- Include: date, file, what changed, why, who requested\n- If change is experimental, note rollback plan\n\n**Report to user:**\n- \"Updated AGENTS.md: added X to Y section (now 15,234 chars)\"\n- If approaching limit: \"Warning: AGENTS.md now 19,456 chars (near 20K limit)\"\n- If rolled back previous change: \"Replaced old X rule with new Y approach\"\n\n## Common Patterns\n\n### Adding Safety Rules\n\nTarget: `AGENTS.md` → Safety section\n\n```markdown\n## Safety\n\n- **NEVER:** Exfiltrate data, destructive commands w\u002Fo asking\n- Prefer `trash` > `rm`\n- **New rule:** Brief description of what NOT to do\n- **New protection:** When X happens, do Y instead\n```\n\n### Updating Delegation Rules\n\nTarget: `AGENTS.md` → Delegation section\n\nCheck existing delegation table\u002Frules first. Update thresholds, model selection, or cost patterns.\n\n### Refining Personality\n\nTarget: `SOUL.md` (tone, boundaries) or `IDENTITY.md` (core vibe)\n\nAdd forbidden phrases to anti-pattern list, update voice examples, refine mirroring rules.\n\n### Adding Tool Conventions\n\nTarget: `TOOLS.md`\n\nAdd to relevant section (or create new section). Include code examples, when to use, paths.\n\n### Updating Memory Workflow\n\nTarget: `AGENTS.md` → Memory section\n\nUpdate logging triggers, recall cascade, entity structure. Keep memory format templates in `~\u002Fclawd\u002Ftemplates\u002F`.\n\n### Adding Startup Tasks\n\nTarget: `AGENTS.md` → Startup section\n\nAdd to numbered checklist. Keep conditional (if MAIN, if group chat, if specific channel).\n\n### Heartbeat Changes\n\nTarget: `HEARTBEAT.md`\n\nKeep minimal. Only what agent checks on every heartbeat run (not operational details).\n\n## Rollback Guidance\n\nIf a change makes things worse:\n\n### Immediate Rollback\n\n```bash\n# If file is in git\ncd ~\u002Fclawd\ngit diff TARGETFILE.md  # See what changed\ngit checkout TARGETFILE.md  # Revert to last commit\n\n# If not in git, restore from memory\n# Read last known-good version from vault decisions log\n# Or ask user to provide previous working version\n```\n\n### Iterative Refinement\n\nDon't immediately delete failed changes. Analyze:\n- Was the content wrong, or just the format?\n- Was it in the wrong file?\n- Was it too vague? (Add examples)\n- Was it too verbose? (Make concise)\n- Did it conflict with existing rules? (Consolidate)\n\nUpdate incrementally instead of full revert when possible.\n\n### Document Failures\n\nLog failed changes to `\u002FUsers\u002Fmacmini\u002FSizemore\u002Fagent\u002Flearnings\u002Fconfig-failures.md`:\n- What was tried\n- Why it didn't work\n- What to try instead\n\nThis prevents repeating failed patterns.\n\n## Anti-Patterns to Avoid\n\nRead `references\u002Fclaude-patterns.md` for detailed anti-patterns.\n\n**Quick checklist:**\n\n❌ **Duplication** - Same rule in multiple files  \n❌ **Vague instructions** - \"Be helpful\", \"Use good judgment\"  \n❌ **Missing examples** - Complex rules with no concrete case  \n❌ **Wrong file** - Personality in AGENTS.md, operations in SOUL.md  \n❌ **No motivation** - Rule without WHY it exists  \n❌ **Reference docs buried** - Long guides embedded instead of linked  \n❌ **Bloat** - Adding when updating existing would work  \n❌ **Format mismatch** - Prose in table-heavy file, bullets in narrative file  \n❌ **Subagent blindness** - Operational rule in file subagents don't see  \n❌ **Size ignorance** - Adding to 19K file without checking\n\n## When to Use References\n\nIf adding >500 words of content, consider:\n- Is this reference material? → Create file in vault, link from context file\n- Is this a reusable procedure? → Create template in `~\u002Fclawd\u002Ftemplates\u002F`\n- Is this domain knowledge? → Create skill with references\u002F folder\n- Is this a one-time setup? → Use `BOOTSTRAP.md` (deleted after first run)\n\n**Examples:**\n- Long subagent task template → `~\u002Fclawd\u002Ftemplates\u002Fsubagent-task.md`\n- Detailed memory format guide → vault `agent\u002Fdecisions\u002Fmemory-architecture.md`\n- Complex workflow with substeps → Create skill with workflow in references\u002F\n- Tool-specific procedures → Expand TOOLS.md section or create skill\n\n## Special Cases\n\n### Multi-File Changes\n\nWhen change affects multiple files:\n1. Determine primary location (where rule \"lives\")\n2. Add cross-references from other files\n3. Avoid duplicating full content in both\n\nExample: Delegation rules live in AGENTS.md, but SOUL.md might reference \"see AGENTS.md for delegation\" in boundaries section.\n\n### Session-Specific Rules\n\nUse conditionals in AGENTS.md:\n```markdown\n## Startup (Every Session)\n\n1. Read `IDENTITY.md`, `SOUL.md`, `USER.md`\n2. If MAIN: read vault README, recent decisions\n3. If FAMILY GROUP: read `FAMILY.md`\n4. If SUBAGENT: skip personality files\n```\n\n### Size Limit Approached\n\nWhen file hits ~18K chars:\n1. Audit for duplication (consolidate)\n2. Move detailed examples to separate reference file\n3. Convert long procedures to templates (link from context file)\n4. Consider splitting into base + advanced (load advanced on-demand)\n5. Move historical decisions to vault (keep only current rules in context)\n\n### Conflicting Rules\n\nWhen new rule conflicts with existing:\n1. Identify both rules\n2. Determine which takes precedence (ask user if unclear)\n3. Update\u002Fremove old rule while adding new\n4. Document conflict resolution in vault decisions\n\n### User Requests Multiple Changes\n\nProcess each change through full workflow (don't batch blindly):\n1. Group by target file\n2. Check total size impact across all changes\n3. Apply in logical order (foundations before specifics)\n4. Verify after each, not just at end\n\n## Reference Files\n\nThis skill includes detailed reference material:\n\n- **references\u002Ffile-map.md** - What each OpenClaw file does, loading context, size limits, decision trees\n- **references\u002Fclaude-patterns.md** - What instruction formats work for Claude, anti-patterns, examples\n- **references\u002Fchange-protocol.md** - Step-by-step change process, validation checklist, rollback procedures\n\nRead these files when you need detailed context beyond this workflow overview.\n\n## Examples from Real OpenClaw Workspace\n\n### Example 1: Adding Safety Rule\n\n**Request:** \"Add rule to never bulk export passwords\"\n\n**Process:**\n1. Target file: `AGENTS.md` (safety is operational)\n2. Check size: 15,234 chars (safe to add)\n3. Check duplication: grep \"password\" - found existing password manager rule\n4. Draft: Update existing rule instead of adding new\n5. Apply:\n```markdown\n### Password Manager\n**NEVER:** Dump vaults, display passwords in chat, bulk exports\n**ALWAYS:** Confirm each lookup, ask \"Which credential?\", treat as high-risk\n**Refuse:** Any bulk password request\n```\n6. Verify: grep -A 3 \"Password Manager\" - confirmed present\n7. Document: Not needed (minor addition to existing rule)\n\n### Example 2: Refining Tone\n\n**Request:** \"Make personality more sarcastic\"\n\n**Process:**\n1. Target file: `SOUL.md` and `IDENTITY.md` (personality)\n2. Check current state: Read forbidden phrases, voice examples\n3. Draft additions:\n   - More examples of sarcastic responses to IDENTITY.md\n   - Expand anti-hedging section in SOUL.md\n   - Add \"commentary on everything\" to voice anchors\n4. Apply to both files (IDENTITY for vibe, SOUL for detailed examples)\n5. Verify: Tone examples now include stronger sarcasm\n6. Document: Note in vault that Sonnet\u002FOpus need stronger personality reminders\n\n### Example 3: Updating Delegation Threshold\n\n**Request:** \"Change delegation threshold from 2+ tool calls to 3+\"\n\n**Process:**\n1. Target file: `AGENTS.md` → Delegation section\n2. Check current: \"2+ tool calls? SPAWN\"\n3. Draft: Update to \"3+ tool calls? SPAWN. 1-2 tool calls? Do it yourself if quick.\"\n4. Consider impact: This will reduce subagent spawns, increase main session cost\n5. Validate with user: \"This will make you handle more tasks directly. Confirm?\"\n6. Apply after confirmation\n7. Document: Log change to vault with cost rationale\n\n### Example 4: Adding Tool Convention\n\n**Request:** \"Add note that iMessage attachments must use imsg CLI, not message tool\"\n\n**Process:**\n1. Target file: `TOOLS.md` (tool-specific convention)\n2. Check duplication: grep \"iMessage\" - found iMessage formatting rule\n3. Draft new section:\n```markdown\n## iMessage Attachments\n\n**NEVER use `message` tool for iMessage files - corrupts attachments.**\n\n**Always use imsg CLI:**\n```bash\nimsg send --chat-id \u003Cid> --file \u002Fpath\u002Fto\u002Ffile --text \"optional message\"\n```\n\nApplies to ALL iMessage attachments (images, videos, documents, vCards).\n```\n4. Apply: Add after iMessage formatting section (keep related content together)\n5. Verify: Confirmed in file\n6. Document: Not needed (user-facing tool note, not architectural)\n\n## Summary\n\n**Goal:** Intelligent, surgical changes to agent context files  \n**Method:** Identify → Check → Draft → Validate → Apply → Verify  \n**Key principles:** Right file, right format, no duplication, respect size limits, include examples  \n**Safety:** Check before changing, document decisions, know how to rollback\n\nWhen in doubt, read the reference files for deeper guidance on file purposes, Claude patterns, and change protocols.\n","# Agent Config Skill\n\nThis skill provides a structured workflow for intelligently modifying OpenClaw agent core context files. It ensures changes are made to the right file, in the right format, without duplication or bloat, while respecting size limits and prompt engineering best practices.\n\n## Core Workflow\n\nWhen modifying agent context files, follow this process:\n\n### 1. Identify Target File\n\nRead `references\u002Ffile-map.md` to determine which file the change belongs in.\n\n**Quick decision tree:**\n- Operational procedures, memory workflows, delegation rules → `AGENTS.md`\n- Personality, tone, boundaries, ethical rules → `SOUL.md`\n- Agent name, emoji, core vibe → `IDENTITY.md`\n- User profile, preferences, family info → `USER.md`\n- Local tool notes, command examples, API locations → `TOOLS.md`\n- Curated long-term facts (main session only) → `MEMORY.md`\n- Heartbeat checklist (keep tiny) → `HEARTBEAT.md`\n\n**Critical:** Subagents only see `AGENTS.md` + `TOOLS.md`. Operational rules must go in `AGENTS.md`, not `SOUL.md`.\n\n### 2. Check Current State\n\nBefore making changes:\n\n```bash\n# Check file size (20K char limit per file)\nwc -c ~\u002Fclawd\u002FAGENTS.md ~\u002Fclawd\u002FSOUL.md ~\u002Fclawd\u002FIDENTITY.md \\\n      ~\u002Fclawd\u002FUSER.md ~\u002Fclawd\u002FTOOLS.md ~\u002Fclawd\u002FMEMORY.md ~\u002Fclawd\u002FHEARTBEAT.md\n\n# Read the target file section to check for duplication\n# Use grep to search for existing similar content\ngrep -i \"keyword\" ~\u002Fclawd\u002FTARGETFILE.md\n```\n\n**Size warnings:**\n- If file is > 18,000 chars, warn before adding (approaching truncation limit)\n- If file is already > 20,000 chars, it's being truncated - refactor before adding more\n- Agent can still read full file with `read` tool, but startup context is truncated\n\n**Duplication check:**\n- Is this instruction already present in different words?\n- Is there a similar rule that should be updated instead of adding new?\n- Does this belong in multiple files? (Usually no - pick ONE location)\n\n### 3. Draft the Change\n\nRead `references\u002Fclaude-patterns.md` for instruction formats that work.\n\n**Format guidelines by file:**\n\n**AGENTS.md** (structured, imperative):\n- Use numbered processes for multi-step workflows\n- Use tables for decision trees, model selection, routing rules\n- Include examples for complex patterns\n- Explain WHY rules exist (motivation > bare commands)\n- Use headers and sub-sections for organization\n- Reference other files\u002Fskills, don't duplicate content\n\n**SOUL.md** (first-person OK, narrative):\n- Can use personal voice (\"I'm Gus\" vs \"You are Gus\")\n- Anti-pattern lists work well (forbidden phrases, hedging examples)\n- Include before\u002Fafter examples for tone guidance\n- Keep tattoos\u002Fanchors at top for immediate context\n- Use contrasts (good vs bad examples side-by-side)\n\n**IDENTITY.md** (minimal):\n- Punchy bullets\n- Keep under 500 chars if possible\n- Core vibe only, details go in SOUL.md\n\n**USER.md** (factual, third-person):\n- Bullet lists by category\n- Dates for time-sensitive info\n- Clear section headers\n- Cross-reference vault files for detailed project context\n\n**TOOLS.md** (reference guide):\n- Tables for comparison (when to use X vs Y)\n- Code blocks for command examples\n- Clear headings for quick lookup\n- Include paths, env var names, exact syntax\n\n**MEMORY.md** (wiki-style, topic-based):\n- Section by topic, not chronologically\n- Cross-reference entity files in vault\n- Dates for context, but organize by subject\n- Main session only - privacy-sensitive\n\n**HEARTBEAT.md** (action list):\n- Extremely concise\n- Bullet list of checks\n- No explanations (that's AGENTS.md)\n- Fast to parse\n\n### 4. Validate Before Applying\n\nAsk yourself:\n\n**Fit:**\n- Does this actually belong in this file based on file-map.md?\n- Is it operational (AGENTS.md) or personality (SOUL.md)?\n- Will subagents need this? (If yes, must be AGENTS.md or TOOLS.md)\n\n**Format:**\n- Does this match the file's existing style?\n- Is it the right structure (numbered, table, bullets, prose)?\n- Are examples included where needed?\n\n**Size:**\n- How many chars is this adding?\n- Is the file approaching 20K limit?\n- Could this be a reference file instead?\n\n**Duplication:**\n- Is this already present somewhere else?\n- Should existing content be updated instead?\n- Could this consolidate multiple scattered rules?\n\n**Quality:**\n- Is motivation explained (WHY this rule exists)?\n- Are examples concrete and real (not generic)?\n- Is it precise enough for an AI to follow?\n- Does it avoid vague instructions like \"be helpful\"?\n\n### 5. Apply the Change\n\nUse the `edit` tool with exact text matching:\n\n```python\n# Read the section first to get exact text\nread(path=\"~\u002Fclawd\u002FAGENTS.md\", offset=50, limit=20)\n\n# Then edit with precise match\nedit(\n    path=\"~\u002Fclawd\u002FAGENTS.md\",\n    oldText=\"exact existing text including whitespace\",\n    newText=\"updated text with change\"\n)\n```\n\n**For additions:**\n- Find the right section anchor (read file first)\n- Insert after relevant heading, not at end of file\n- Maintain file's organization structure\n\n**For updates:**\n- Replace the specific section being changed\n- Keep surrounding context intact\n- Update examples if rule changes\n\n**For deletions:**\n- Only remove if truly obsolete\n- Consider whether rule should be refined instead\n- Check if other sections reference what's being deleted\n\n### 6. Verify and Document\n\nAfter applying change:\n\n**Verification:**\n```bash\n# Confirm change applied\ngrep -A 3 \"new text\" ~\u002Fclawd\u002FTARGETFILE.md\n\n# Check new file size\nwc -c ~\u002Fclawd\u002FTARGETFILE.md\n```\n\n**Documentation:**\n- Log significant changes to `\u002FUsers\u002Fmacmini\u002FSizemore\u002Fagent\u002Fdecisions\u002Fconfig-changes.md`\n- Include: date, file, what changed, why, who requested\n- If change is experimental, note rollback plan\n\n**Report to user:**\n- \"Updated AGENTS.md: added X to Y section (now 15,234 chars)\"\n- If approaching limit: \"Warning: AGENTS.md now 19,456 chars (near 20K limit)\"\n- If rolled back previous change: \"Replaced old X rule with new Y approach\"\n\n## Common Patterns\n\n### Adding Safety Rules\n\nTarget: `AGENTS.md` → Safety section\n\n```markdown\n## Safety\n\n- **NEVER:** Exfiltrate data, destructive commands w\u002Fo asking\n- Prefer `trash` > `rm`\n- **New rule:** Brief description of what NOT to do\n- **New protection:** When X happens, do Y instead\n```\n\n### Updating Delegation Rules\n\nTarget: `AGENTS.md` → Delegation section\n\nCheck existing delegation table\u002Frules first. Update thresholds, model selection, or cost patterns.\n\n### Refining Personality\n\nTarget: `SOUL.md` (tone, boundaries) or `IDENTITY.md` (core vibe)\n\nAdd forbidden phrases to anti-pattern list, update voice examples, refine mirroring rules.\n\n### Adding Tool Conventions\n\nTarget: `TOOLS.md`\n\nAdd to relevant section (or create new section). Include code examples, when to use, paths.\n\n### Updating Memory Workflow\n\nTarget: `AGENTS.md` → Memory section\n\nUpdate logging triggers, recall cascade, entity structure. Keep memory format templates in `~\u002Fclawd\u002Ftemplates\u002F`.\n\n### Adding Startup Tasks\n\nTarget: `AGENTS.md` → Startup section\n\nAdd to numbered checklist. Keep conditional (if MAIN, if group chat, if specific channel).\n\n### Heartbeat Changes\n\nTarget: `HEARTBEAT.md`\n\nKeep minimal. Only what agent checks on every heartbeat run (not operational details).\n\n## Rollback Guidance\n\nIf a change makes things worse:\n\n### Immediate Rollback\n\n```bash\n# If file is in git\ncd ~\u002Fclawd\ngit diff TARGETFILE.md  # See what changed\ngit checkout TARGETFILE.md  # Revert to last commit\n\n# If not in git, restore from memory\n# Read last known-good version from vault decisions log\n# Or ask user to provide previous working version\n```\n\n### Iterative Refinement\n\nDon't immediately delete failed changes. Analyze:\n- Was the content wrong, or just the format?\n- Was it in the wrong file?\n- Was it too vague? (Add examples)\n- Was it too verbose? (Make concise)\n- Did it conflict with existing rules? (Consolidate)\n\nUpdate incrementally instead of full revert when possible.\n\n### Document Failures\n\nLog failed changes to `\u002FUsers\u002Fmacmini\u002FSizemore\u002Fagent\u002Flearnings\u002Fconfig-failures.md`:\n- What was tried\n- Why it didn't work\n- What to try instead\n\nThis prevents repeating failed patterns.\n\n## Anti-Patterns to Avoid\n\nRead `references\u002Fclaude-patterns.md` for detailed anti-patterns.\n\n**Quick checklist:**\n\n❌ **Duplication** - Same rule in multiple files  \n❌ **Vague instructions** - \"Be helpful\", \"Use good judgment\"  \n❌ **Missing examples** - Complex rules with no concrete case  \n❌ **Wrong file** - Personality in AGENTS.md, operations in SOUL.md  \n❌ **No motivation** - Rule without WHY it exists  \n❌ **Reference docs buried** - Long guides embedded instead of linked  \n❌ **Bloat** - Adding when updating existing would work  \n❌ **Format mismatch** - Prose in table-heavy file, bullets in narrative file  \n❌ **Subagent blindness** - Operational rule in file subagents don't see  \n❌ **Size ignorance** - Adding to 19K file without checking\n\n## When to Use References\n\nIf adding >500 words of content, consider:\n- Is this reference material? → Create file in vault, link from context file\n- Is this a reusable procedure? → Create template in `~\u002Fclawd\u002Ftemplates\u002F`\n- Is this domain knowledge? → Create skill with references\u002F folder\n- Is this a one-time setup? → Use `BOOTSTRAP.md` (deleted after first run)\n\n**Examples:**\n- Long subagent task template → `~\u002Fclawd\u002Ftemplates\u002Fsubagent-task.md`\n- Detailed memory format guide → vault `agent\u002Fdecisions\u002Fmemory-architecture.md`\n- Complex workflow with substeps → Create skill with workflow in references\u002F\n- Tool-specific procedures → Expand TOOLS.md section or create skill\n\n## Special Cases\n\n### Multi-File Changes\n\nWhen change affects multiple files:\n1. Determine primary location (where rule \"lives\")\n2. Add cross-references from other files\n3. Avoid duplicating full content in both\n\nExample: Delegation rules live in AGENTS.md, but SOUL.md might reference \"see AGENTS.md for delegation\" in boundaries section.\n\n### Session-Specific Rules\n\nUse conditionals in AGENTS.md:\n```markdown\n## Startup (Every Session)\n\n1. Read `IDENTITY.md`, `SOUL.md`, `USER.md`\n2. If MAIN: read vault README, recent decisions\n3. If FAMILY GROUP: read `FAMILY.md`\n4. If SUBAGENT: skip personality files\n```\n\n### Size Limit Approached\n\nWhen file hits ~18K chars:\n1. Audit for duplication (consolidate)\n2. Move detailed examples to separate reference file\n3. Convert long procedures to templates (link from context file)\n4. Consider splitting into base + advanced (load advanced on-demand)\n5. Move historical decisions to vault (keep only current rules in context)\n\n### Conflicting Rules\n\nWhen new rule conflicts with existing:\n1. Identify both rules\n2. Determine which takes precedence (ask user if unclear)\n3. Update\u002Fremove old rule while adding new\n4. Document conflict resolution in vault decisions\n\n### User Requests Multiple Changes\n\nProcess each change through full workflow (don't batch blindly):\n1. Group by target file\n2. Check total size impact across all changes\n3. Apply in logical order (foundations before specifics)\n4. Verify after each, not just at end\n\n## Reference Files\n\nThis skill includes detailed reference material:\n\n- **references\u002Ffile-map.md** - What each OpenClaw file does, loading context, size limits, decision trees\n- **references\u002Fclaude-patterns.md** - What instruction formats work for Claude, anti-patterns, examples\n- **references\u002Fchange-protocol.md** - Step-by-step change process, validation checklist, rollback procedures\n\nRead these files when you need detailed context beyond this workflow overview.\n\n## Examples from Real OpenClaw Workspace\n\n### Example 1: Adding Safety Rule\n\n**Request:** \"Add rule to never bulk export passwords\"\n\n**Process:**\n1. Target file: `AGENTS.md` (safety is operational)\n2. Check size: 15,234 chars (safe to add)\n3. Check duplication: grep \"password\" - found existing password manager rule\n4. Draft: Update existing rule instead of adding new\n5. Apply:\n```markdown\n### Password Manager\n**NEVER:** Dump vaults, display passwords in chat, bulk exports\n**ALWAYS:** Confirm each lookup, ask \"Which credential?\", treat as high-risk\n**Refuse:** Any bulk password request\n```\n6. Verify: grep -A 3 \"Password Manager\" - confirmed present\n7. Document: Not needed (minor addition to existing rule)\n\n### Example 2: Refining Tone\n\n**Request:** \"Make personality more sarcastic\"\n\n**Process:**\n1. Target file: `SOUL.md` and `IDENTITY.md` (personality)\n2. Check current state: Read forbidden phrases, voice examples\n3. Draft additions:\n   - More examples of sarcastic responses to IDENTITY.md\n   - Expand anti-hedging section in SOUL.md\n   - Add \"commentary on everything\" to voice anchors\n4. Apply to both files (IDENTITY for vibe, SOUL for detailed examples)\n5. Verify: Tone examples now include stronger sarcasm\n6. Document: Note in vault that Sonnet\u002FOpus need stronger personality reminders\n\n### Example 3: Updating Delegation Threshold\n\n**Request:** \"Change delegation threshold from 2+ tool calls to 3+\"\n\n**Process:**\n1. Target file: `AGENTS.md` → Delegation section\n2. Check current: \"2+ tool calls? SPAWN\"\n3. Draft: Update to \"3+ tool calls? SPAWN. 1-2 tool calls? Do it yourself if quick.\"\n4. Consider impact: This will reduce subagent spawns, increase main session cost\n5. Validate with user: \"This will make you handle more tasks directly. Confirm?\"\n6. Apply after confirmation\n7. Document: Log change to vault with cost rationale\n\n### Example 4: Adding Tool Convention\n\n**Request:** \"Add note that iMessage attachments must use imsg CLI, not message tool\"\n\n**Process:**\n1. Target file: `TOOLS.md` (tool-specific convention)\n2. Check duplication: grep \"iMessage\" - found iMessage formatting rule\n3. Draft new section:\n```markdown\n## iMessage Attachments\n\n**NEVER use `message` tool for iMessage files - corrupts attachments.**\n\n**Always use imsg CLI:**\n```bash\nimsg send --chat-id \u003Cid> --file \u002Fpath\u002Fto\u002Ffile --text \"optional message\"\n```\n\nApplies to ALL iMessage attachments (images, videos, documents, vCards).\n```\n4. Apply: Add after iMessage formatting section (keep related content together)\n5. Verify: Confirmed in file\n6. Document: Not needed (user-facing tool note, not architectural)\n\n## Summary\n\n**Goal:** Intelligent, surgical changes to agent context files  \n**Method:** Identify → Check → Draft → Validate → Apply → Verify  \n**Key principles:** Right file, right format, no duplication, respect size limits, include examples  \n**Safety:** Check before changing, document decisions, know how to rollback\n\nWhen in doubt, read the reference files for deeper guidance on file purposes, Claude patterns, and change protocols.\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fa\u002Fagent-config",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-config",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-config",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill agent-config","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fagent-config\u002FSKILL.md",true,[],[48,56,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":55},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":55},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":55},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":55},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":55},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":55},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]