/claude-md-management-reloaded:claude-md-improverfrom claude-md-management-reloaded
Audit 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.
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.
Audit, evaluate, and improve a project's persistent memory so every Claude Code
session starts with accurate, well-scoped context. This skill manages the whole
memory surface, not just the root CLAUDE.md:
./CLAUDE.md or ./.claude/CLAUDE.md, nested
subdirectory CLAUDE.md, and personal ./CLAUDE.local.md..claude/rules/.~/.claude/CLAUDE.md and ~/.claude/rules/ (only when the
user asks; never edit these as a side effect of project work).For the full memory model — load order, scopes, the paths: glob mechanism, the
size budget, and what belongs where — read
references/memory-architecture.md. Read it
before scoring or recommending, since the scoring and split logic depend on it.
This skill can write to memory files. It always presents a quality report and gets explicit approval before editing anything.
Find every memory file in scope. Run from the repository root:
# Project CLAUDE.md family (root, .claude/, nested, and local)
find . -path ./node_modules -prune -o \
\( -name CLAUDE.md -o -name CLAUDE.local.md \) -print 2>/dev/null | sort
# Project rules
ls -1 .claude/rules/**/*.md .claude/rules/*.md 2>/dev/null
Only include user-scope files (~/.claude/CLAUDE.md, ~/.claude/rules/) when
the user explicitly asks about cross-project / personal memory.
Record, for each file: its scope (project / nested / local / user), whether it
is committed to git, line count, and — for rule files — whether it has a
paths: frontmatter block.
Score each file against the rubric in references/quality-criteria.md. Beyond the content-quality criteria, evaluate two memory-structure dimensions that the original CLAUDE.md-only tooling could not:
CLAUDE.md; topic- or path-specific procedures belong in a rule;
personal/uncommitted notes belong in CLAUDE.local.md.paths:
globs? Are unconditional rules genuinely project-wide, or should they be
path-scoped to save context? Is anything duplicated between CLAUDE.md and a
rule?Cross-reference against the actual codebase: do documented commands still exist,
do referenced paths resolve, do paths: globs match real directories?
Output the report before making any change. Use this shape:
## Project Memory Report
### Summary
- Files found: X (CLAUDE.md: A, rules: B, local: C)
- Average score: X/100
- Total CLAUDE.md size: X lines (budget: <200 per file)
- Files needing update: X
### File-by-file
#### ./CLAUDE.md — Score XX/100 (Grade X), 247 lines
| Criterion | Score | Notes |
|------------------|-------|-------|
| Commands | x/20 | ... |
| Architecture | x/20 | ... |
| Non-obvious | x/15 | ... |
| Conciseness | x/15 | ... |
| Currency | x/15 | ... |
| Scope & rules | x/15 | ... |
Issues: ...
Recommended: split "Testing" and "Frontend" sections into path-scoped rules.
Propose targeted changes only, each shown as a diff with a one-line "why". Three kinds of recommendation:
CLAUDE.md
exceeds ~200 lines or mixes whole-project facts with section-specific
procedure, extract the section-specific parts into .claude/rules/<topic>.md
with a paths: glob. Follow
references/splitting-guide.md for detection
and the exact extraction procedure.paths: globs, merge duplicate rules,
promote a misplaced personal note to CLAUDE.local.md, or pull a duplicated
block out of CLAUDE.md once it lives in a rule.Use references/templates.md for the canonical shapes of CLAUDE.md files and rule files.
When a recommendation depends on a fact the codebase can't confirm — is this command still canonical, is this note safe to delete — ask before proposing it (see "Ask, don't assume" below) rather than guessing.
After approval, apply changes with the Edit/Write tools. When a split creates a
new rule file, also remove the migrated content from the source CLAUDE.md in
the same change so nothing is duplicated across context. Preserve existing
structure and ordering otherwise.
Some judgments can't be settled from the codebase: whether a documented command that no longer resolves is stale or merely moved, whether a section is truly project-wide or path-specific, or which of several commands is canonical. When the code doesn't answer and guessing would risk a wrong edit, ask rather than assume:
AskUserQuestion,
each with concrete options and a sensible default first.paths: patterns that match nothing or everything.CLAUDE.md instead of gitignored CLAUDE.local.md.~/.claude/) memory as a side effect of project work.Capturing brand-new learnings from the current session is a different job — that
is the companion revise-claude-md skill.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/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./revise-claude-mdCapture 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.
Other plugins' skills for the same job
npx claudepluginhub 46ki75/yaarr --plugin claude-md-management-reloaded