Help us improve
Share bugs, ideas, or general feedback.
From claude-md-management
Audits and improves CLAUDE.md files in repositories. Scans for all CLAUDE.md files, evaluates quality against templates, outputs a quality report, then makes targeted updates.
npx claudepluginhub minhthang1009/dotclaude --plugin claude-md-managementHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-md-management:claude-md-management [audit | revise | path to CLAUDE.md][audit | revise | path to CLAUDE.md]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Two modes: **audit** (evaluate + improve) and **revise** (capture session learnings).
Provides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.
Share bugs, ideas, or general feedback.
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.