Update AGENTS.md (or legacy CLAUDE.md) with learnings from this session — discovered commands, patterns, gotchas, or configuration quirks worth capturing for future sessions. Use when the user asks to capture, save, remember, or record session learnings into project instructions, or after a session that surfaced non-obvious context a fresh agent would benefit from.
How this skill is triggered — by the user, by Claude, or both
Slash command
/instruction-management:revise-instructionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Review this session for learnings about working with this codebase. Update the instruction file with context that would help future sessions be more effective.
Review this session for learnings about working with this codebase. Update the instruction file with context that would help future sessions be more effective.
This skill writes to AGENTS.md by default. If the repo only has CLAUDE.md, surface the migration option (see ../instruction-management/references/migration.md) before adding new content there.
What context was missing that would have helped the agent work more effectively?
find . \( -name "AGENTS.md" -o -name "CLAUDE.md" -o -name ".claude.local.md" \) \
-not -path '*/node_modules/*' -not -path '*/.git/*' 2>/dev/null | sort
Classify what you find:
CLAUDE.md for now.@AGENTS.md stub → never edit the stub. Edits go in AGENTS.md.AGENTS.md.Decide where each addition belongs:
AGENTS.md — team-shared (checked into git).claude.local.md — personal/local only (gitignored)Keep it concise — one line per concept. Instruction files ride along in the prompt, so brevity matters.
Format: <command or pattern> - <brief description>
Avoid:
For each addition:
### Update: ./AGENTS.md
**Why:** [one-line reason]
\`\`\`diff
+ [the addition - keep it brief]
\`\`\`
Ask before editing. Only apply changes the user approves.
After applying changes, run:
project_hash=$(printf '%s' "${CLAUDE_PROJECT_DIR:-.}" | md5sum | cut -c1-8)
rm -f "/tmp/revise-instructions-nudge/$project_hash"
This resets the stop-hook nudge counter so the hook can fire again if the session continues touching more files.
npx claudepluginhub dotknewt/toolkits --plugin instruction-managementSets up isolated workspaces using native worktree tools or git worktree fallback. Use before starting feature work to protect the current branch.