/context-management:revise-claude-mdfrom context-management
Captures session learnings (commands, gotchas, patterns) into CLAUDE.md or .claude/rules/ to improve future Claude Code sessions.
Ships in context-management. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Review this session for learnings about working with Claude Code in this codebase. Update project memory with context that would help future Claude sessions be more effective.
Scope boundary: this skill captures current-session learnings. Auditing agent docs against git history and codebase evolution is /agent-docs-drift's job.
What context was missing that would have helped Claude work more effectively?
Find the memory files: **/CLAUDE.md, .claude/CLAUDE.md, .claude/rules/**/*.md, CLAUDE.local.md, **/AGENTS.md. Also check discovered files for @path imports pointing to other memory files.
Decide where each addition belongs:
CLAUDE.md - Team-shared, always-on (checked into git); nested ones scope to their directory.claude/rules/<topic>.md - Team-shared thematic rules; an existing rules file covering the topic wins over CLAUDE.md, and prefer a new one over growing an already-long CLAUDE.mdCLAUDE.local.md (loads alongside CLAUDE.md; append to it if present); for prefs shared across worktrees, a home-dir file imported via @~/.... Note: @path imports are composition, not privacy: a versioned import target is team-visible.AGENTS.md with no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the working directory or above it: Claude Code reads that AGENTS.md directly, and creating any of those three files stops it. Add to the AGENTS.md or a rules file; a new CLAUDE.md starts with @AGENTS.md.Keep it concise - one line per concept. CLAUDE.md is part of the prompt, so brevity matters.
Format: <command or pattern> - <brief description>
Avoid:
For each addition:
### Update: [target file]
**Why:** [one-line reason]
\`\`\`diff
+ [the addition - keep it brief]
\`\`\`
Ask if the user wants to apply the changes. Do not call Edit or Write before approval; only touch files they approve.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-md, project-memory, session-logging, knowledge-capture
3 skills in this plugin
/agent-docs-driftAudit agent instruction files (CLAUDE.md, AGENTS.md, .claude/rules/) against the commits since any of them last changed, then propose updates each motivated by a commit/context-auditAudit and improve CLAUDE.md, AGENTS.md and .claude/rules/ for instruction budget, anti-patterns and stale references, then apply approved REMOVE/MOVE/REWRITE/ADD fixes
Other plugins' skills for the same job
npx claudepluginhub bengous/claude-code-plugins --plugin context-management