Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-config

БесплатноБез исполняемых скриптовНе проверен

Intelligently modify agent core context files (AGENTS.md, SOUL.md, IDENTITY.md, USER.md, TOOLS.md, MEMORY.md, HEARTBEAT.md). Use when conversation involves…

modbenderот modbender★ 21 звезда на GitHub

Об этом скилле

Agent Config Skill

This 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.

Core Workflow

When modifying agent context files, follow this process:

1. Identify Target File

Read references/file-map.md to determine which file the change belongs in.

Quick decision tree:

  • Operational procedures, memory workflows, delegation rules → AGENTS.md
  • Personality, tone, boundaries, ethical rules → SOUL.md
  • Agent name, emoji, core vibe → IDENTITY.md
  • User profile, preferences, family info → USER.md
  • Local tool notes, command examples, API locations → TOOLS.md
  • Curated long-term facts (main session only) → MEMORY.md
  • Heartbeat checklist (keep tiny) → HEARTBEAT.md

Critical: Subagents only see AGENTS.md + TOOLS.md. Operational rules must go in AGENTS.md, not SOUL.md.

2. Check Current State

Before making changes:

# Check file size (20K char limit per file)
wc -c ~/clawd/AGENTS.md ~/clawd/SOUL.md ~/clawd/IDENTITY.md \
      ~/clawd/USER.md ~/clawd/TOOLS.md ~/clawd/MEMORY.md ~/clawd/HEARTBEAT.md

# Read the target file section to check for duplication
# Use grep to search for existing similar content
grep -i "keyword" ~/clawd/TARGETFILE.md

Size warnings:

  • If file is > 18,000 chars, warn before adding (approaching truncation limit)
  • If file is already > 20,000 chars, it's being truncated - refactor before adding more
  • Agent can still read full file with read tool, but startup context is truncated

Duplication check:

  • Is this instruction already present in different words?
  • Is there a similar rule that should be updated instead of adding new?
  • Does this belong in multiple files? (Usually no - pick ONE location)

3. Draft the Change

Read references/claude-patterns.md for instruction formats that work.

Format guidelines by file:

AGENTS.md (structured, imperative):

  • Use numbered processes for multi-step workflows
  • Use tables for decision trees, model selection, routing rules
  • Include examples for complex patterns
  • Explain WHY rules exist (motivation > bare commands)
  • Use headers and sub-sections for organization
  • Reference other files/skills, don't duplicate content

SOUL.md (first-person OK, narrative):

  • Can use personal voice ("I'm Gus" vs "You are Gus")
  • Anti-pattern lists work well (forbidden phrases, hedging examples)
  • Include before/after examples for tone guidance
  • Keep tattoos/anchors at top for immediate context
  • Use contrasts (good vs bad examples side-by-side)

IDENTITY.md (minimal):

  • Punchy bullets
  • Keep under 500 chars if possible
  • Core vibe only, details go in SOUL.md

USER.md (factual, third-person):

  • Bullet lists by category
  • Dates for time-sensitive info
  • Clear section headers
  • Cross-reference vault files for detailed project context

TOOLS.md (reference guide):

  • Tables for comparison (when to use X vs Y)
  • Code blocks for command examples
  • Clear headings for quick lookup
  • Include paths, env var names, exact syntax

MEMORY.md (wiki-style, topic-based):

  • Section by topic, not chronologically
  • Cross-reference entity files in vault
  • Dates for context, but organize by subject
  • Main session only - privacy-sensitive

HEARTBEAT.md (action list):

  • Extremely concise
  • Bullet list of checks
  • No explanations (that's AGENTS.md)
  • Fast to parse

4. Validate Before Applying

Ask yourself:

Fit:

  • Does this actually belong in this file based on file-map.md?
  • Is it operational (AGENTS.md) or personality (SOUL.md)?
  • Will subagents need this? (If yes, must be AGENTS.md or TOOLS.md)

Format:

  • Does this match the file's existing style?
  • Is it the right structure (numbered, table, bullets, prose)?
  • Are examples included where needed?

Size:

  • How many chars is this adding?
  • Is the file approaching 20K limit?
  • Could this be a reference file instead?

Duplication:

  • Is this already present somewhere else?
  • Should existing content be updated instead?
  • Could this consolidate multiple scattered rules?

Quality:

  • Is motivation explained (WHY this rule exists)?
  • Are examples concrete and real (not generic)?
  • Is it precise enough for an AI to follow?
  • Does it avoid vague instructions like "be helpful"?

5. Apply the Change

Use the edit tool with exact text matching:

# Read the section first to get exact text
read(path="~/clawd/AGENTS.md", offset=50, limit=20)

# Then edit with precise match
edit(
    path="~/clawd/AGENTS.md",
    oldText="exact existing text including whitespace",
    newText="updated text with change"
)

For additions:

  • Find the right section anchor (read f
Полный SKILL.md на GitHub

Установить agent-config в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/change-protocol.mdreferences/claude-patterns.mdreferences/file-map.md

FAQ

Что делает скилл agent-config?

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.

Как установить скилл agent-config?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-config запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-config с