/claude-md-management:claude-md-management [audit | revise | path to CLAUDE.md]from claude-md-management
Audits and improves CLAUDE.md files in repositories. Scans for files, evaluates quality, and outputs a report before making targeted updates.
Ships in claude-md-management. 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.
None: SKILL.md is the whole skill.
Two modes: audit (evaluate + improve) and revise (capture session learnings).
When $ARGUMENTS is empty or contains audit:
Find all CLAUDE.md files:
find . -name "CLAUDE.md" -o -name ".claude.md" -o -name ".claude.local.md" 2>/dev/null | head -50
| Type | Location | Purpose |
|---|---|---|
| Project root | ./CLAUDE.md | Primary context (git, shared) |
| Local override | ./.claude.local.md | Personal (gitignored) |
| Global | ~/.claude/CLAUDE.md | Cross-project defaults |
| Package-specific | ./packages/*/CLAUDE.md | Module-level in a monorepo |
| Subdirectory | Any nested dir | Feature/domain-specific context |
Claude auto-discovers CLAUDE.md files in parent directories — monorepo setup works automatically.
Evaluate each file against 6 criteria:
| Criterion | Weight | Check |
|---|---|---|
| Commands/workflows | High | Are build/test/deploy commands present? |
| Architecture clarity | High | Does Claude understand the codebase structure? |
| Non-obvious patterns | Medium | Are gotchas and quirks documented? |
| Conciseness | Medium | Is there verbosity or obvious information? |
| Currency | High | Does it accurately reflect the current codebase? |
| Actionability | High | Are instructions executable and unambiguous? |
Scale: A (90-100), B (70-89), C (50-69), D (30-49), F (0-29).
Per-level scoring (example: Commands/workflows, max 20):
Red Flags — flag immediately upon discovery:
ALWAYS output the report BEFORE modifying any file.
## CLAUDE.md Quality Report
### Summary
- Files found: X
- Average score: X/100
- Files needing updates: X
### Per-file evaluation
#### 1. ./CLAUDE.md (Project Root)
**Score: XX/100 (Grade: X)**
| Criterion | Score | Notes |
|-----------|-------|-------|
| Commands/workflows | X/20 | ... |
| Architecture clarity | X/20 | ... |
| Non-obvious patterns | X/15 | ... |
| Conciseness | X/15 | ... |
| Currency | X/15 | ... |
| Actionability | X/15 | ... |
**Issues:** [list]
**Suggested additions:** [list]
After the report, ask user for confirmation before editing.
Principles:
After user approves → use the Edit tool. Preserve the existing structure.
When $ARGUMENTS contains revise:
What context was missing that would have made Claude more effective?
Be concise — 1 line per concept. CLAUDE.md is part of the prompt; brevity matters.
Distinguish between:
CLAUDE.md → team-shared (git).claude.local.md → personal (gitignored)Display diff + rationale for each addition. Only apply after user approves.
Principle: concise, actionable, project-specific.
Recommended sections (only include what is relevant):
When creating a CLAUDE.md from scratch, use the appropriate template:
# Project Name
[1-sentence description]
## Commands
\`\`\`bash
npm run dev # Development server
npm test # Run tests
\`\`\`
## Gotchas
- [Non-obvious behavior]
# Project Name
[1-2 sentence description]
## Commands
[build, test, dev, lint, deploy]
## Architecture
[Directory structure, key modules]
## Key Files
[Entry points, config, shared types]
## Code Style
[Project-specific conventions]
## Environment
[Required env vars, setup steps]
## Testing
[Commands, patterns, test DB setup]
## Gotchas
[Quirks, common mistakes]
# Monorepo Name
## Structure
[packages/apps listing with 1-line descriptions]
## Shared Commands
[Root-level scripts]
## Cross-package Patterns
[Shared types, build order, dependency rules]
## Per-package CLAUDE.md
[packages/api/CLAUDE.md, packages/web/CLAUDE.md — each package has its own file]
# Package Name
[Relationship to other packages]
## Commands
[Package-specific commands]
## Key Patterns
[Module-specific conventions]
When assessing "Currency": run (mentally or actually) the documented commands — if they fail, flag as stale.
Present each change as:
### Update: ./CLAUDE.md
**Reason:** [1-line explanation of why this addition is helpful]
\`\`\`diff
+ [content to add — keep it short]
\`\`\`
# key: during a session, press # to have Claude auto-incorporate learnings into CLAUDE.md..claude.local.md: use for personal preferences (add to .gitignore).~/.claude/CLAUDE.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-md, audit, quality-report, documentation, project-memory
3 skills in this plugin
/claude-md-improverAudit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project memory optimization"./revise-claude-mdThis skill should be used when the user asks to update CLAUDE.md with learnings from the current session ('revise CLAUDE.md', 'update CLAUDE.md voi nhung gi vua hoc', 'save session learnings to project memory').npx claudepluginhub minhthang1009/dotclaude --plugin claude-md-managementOther plugins' skills for the same job