/claude-md-management-reloaded:revise-claude-md [what to capture, or a target file]from claude-md-management-reloaded
Capture learnings from the current session into project memory, routing each one to the right place: a project CLAUDE.md, a path-scoped .claude/rules/ file, a gitignored CLAUDE.local.md, or user-scope ~/.claude memory. Use at the end of a session, or whenever something is worth remembering for next time — a build command discovered, a gotcha hit, a convention confirmed, a correction the user made. Invoke directly with /revise-claude-md, or let it run when the user says "capture what we learned", "update CLAUDE.md with this", "remember this for the project", "add this gotcha", or "write this down for next time". For auditing or reorganizing memory that already exists (not capturing new learnings), use the companion claude-md-improver skill instead.
Ships in claude-md-management-reloaded. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn what this session revealed into persistent memory, and put each learning in
the file where it will actually load when it is needed. The original
/revise-claude-md only ever wrote to CLAUDE.md; this version routes by scope
across the whole memory surface.
This runs in the main session because the evidence — the commands run, the gotcha hit, the correction made — lives in the current conversation. A subagent with a fresh context window could not see it.
What context, if it had been in memory at the start, would have made this session go better? Look for:
Skip one-off fixes, anything obvious from the code, and generic best practice. A learning earns a place only if a future session would genuinely benefit.
List the memory files that already exist so additions land in the right one:
find . -path ./node_modules -prune -o \
\( -name CLAUDE.md -o -name CLAUDE.local.md \) -print 2>/dev/null | sort
ls -1 .claude/rules/*.md .claude/rules/**/*.md 2>/dev/null
For every learning, decide its destination before drafting. Use the decision tree in references/routing-guide.md. In short:
./CLAUDE.md (or ./.claude/CLAUDE.md)..claude/rules/<topic>.md with a
paths: glob (create the file if it does not exist)../CLAUDE.local.md (gitignored).~/.claude/CLAUDE.md or
~/.claude/rules/ — only with the user's explicit go-ahead, since these affect
every project.If a learning is really a multi-step procedure rather than a fact, suggest a skill instead of adding it to memory.
Keep each addition to one line per concept. Memory is part of every prompt.
Format: `<command or pattern>` — <brief reason or effect>.
Avoid verbose explanations, restating the code, and duplicating something already present in another memory file.
For each addition, show the target, a one-line why, and a diff:
### Update: ./.claude/rules/testing.md (new path-scoped rule)
Why: tests need a local Redis; this only matters under tests/.
+ ---
+ paths:
+ - "tests/**/*.ts"
+ ---
+
+ # Testing
+ - Integration tests need a local Redis on :6379 (`docker compose up redis`).
Only edit files the user approves. When routing creates a new rule file, confirm
the paths: glob matches real files. Never write to ~/.claude/ memory as a
side effect — that scope requires an explicit yes.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/claude-md-improverAudit and improve a project's persistent memory across BOTH CLAUDE.md files and the .claude/rules/ directory. Use when the user asks to check, audit, review, update, improve, fix, organize, or restructure their CLAUDE.md or rules; when CLAUDE.md has grown too long and should be split into path-scoped rules; when setting up .claude/rules/; or for "CLAUDE.md maintenance" and "project memory optimization". Covers every scope — project ./CLAUDE.md and ./.claude/CLAUDE.md, nested CLAUDE.md, ./CLAUDE.local.md, user ~/.claude/ CLAUDE.md, and rules in .claude/rules/ and ~/.claude/rules/. Trigger even without exact wording: "is my CLAUDE.md up to date", "my CLAUDE.md is too big", "split this into rules", "review my .claude/rules", "clean up project memory" all count.
/init-claude-mdScaffold a project's persistent memory the way Claude Code's built-in /init would, but as a HYBRID layout instead of one monolithic file: a lean root CLAUDE.md holding only repo-wide essentials, PLUS path-scoped .claude/rules/*.md for area-specific conventions. The rules-aware analog of /init. Run manually with /claude-md-management-reloaded:init-claude-md on a repo that has little or no memory yet: it analyzes build/test/lint commands and big-picture architecture, decides what stays in CLAUDE.md versus what becomes a path-scoped rule, derives and verifies paths: globs against real files, and writes the files only after you approve. If memory already exists it proposes improvements instead of overwriting. For auditing memory that already exists, use the companion claude-md-improver skill.npx claudepluginhub 46ki75/yaarr --plugin claude-md-management-reloaded