From review-claude-md
Audit and fix CLAUDE.md files using a tiered binary checklist based on official Anthropic best practices and community guidelines. Use when the user asks to "review CLAUDE.md", "audit CLAUDE.md", "score CLAUDE.md", "improve CLAUDE.md", or "fix CLAUDE.md".
npx claudepluginhub smykla-skalski/sai --plugin review-claude-mdThis skill is limited to using the following tools:
<!-- justify: CF-side-effect Edit/Write fix detected issues in CLAUDE.md with user approval -->
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Compresses source documents into lossless, LLM-optimized distillates preserving all facts and relationships. Use for 'distill documents' or 'create distillate' requests.
Evaluate any CLAUDE.md against a tiered binary checklist (Critical / Important / Polish), produce a categorical verdict (PASS / NEEDS WORK / FAIL), then fix all failing checks.
Parse from $ARGUMENTS:
--score-only — Report verdict without fixing--fix — Fix all failing checks (default behavior)--verbose — Show chain-of-thought reasoning for each check--thorough — Include Polish tier in the reportRead references/rubric.md for the full tiered checklist and verdict thresholds (Critical, Important, Polish tiers).
.claude/CLAUDE.md, CLAUDE.local.md, subdirectories.claude/rules/*.md filesSpawn an Explore agent to scan the target repository. Pass the agent: the repo root path.
Agent reads: Makefile, package.json, Cargo.toml, go.mod, pyproject.toml, CI configs (.github/workflows/, .gitlab-ci.yml), README.md, test configs (jest.config, pytest.ini, vitest.config), lint configs (.eslintrc, biome.json, .prettierrc, rustfmt.toml).
Also reads: top-level directory structure, git log --oneline -20, .claude/rules/ contents.
Agent returns ONLY a structured summary with these fields:
.claude/rules/ files and their topicsUse this summary to inform Phase 3-4 checks. Do not re-read any files the agent already summarized.
Spawn a general-purpose agent to run validation scripts. Pass the agent: target CLAUDE.md path, $TARGET_DIR, and paths to both scripts:
"${CLAUDE_SKILL_DIR}/scripts/validate-claudemd.sh" "$TARGET_DIR"
"${CLAUDE_SKILL_DIR}/scripts/validate-commands.sh" "$TARGET_DIR"
Run both scripts, parse the JSON output, and return ONLY an array of {check, pass, detail} results. Each pass: false result maps to the corresponding checklist criterion.
Use these results directly in Phase 5 (Synthesize Verdict). Do not re-run the scripts in the main context.
Re-read references/rubric.md in full before starting this phase to prevent drift from the checklist criteria.
For each criterion not already covered by automated scripts, evaluate as binary pass/fail:
--verbose, show chain-of-thought reasoning for each check--thorough, also evaluate Polish tier checksRead references/sources.md for authoritative source URLs when citing findings.
Think step by step before declaring the verdict:
Read references/output-format.md for the verdict template. Output the verdict per this template.
If --score-only was NOT passed (--fix mode, the default):
.claude/rules/ files if root exceeds 150 linesSpawn a general-purpose agent to re-evaluate the fixed CLAUDE.md. Pass the agent: paths to the fixed CLAUDE.md, both validation scripts, $TARGET_DIR, the Phase 2 codebase summary, and a link to references/rubric.md.
Agent instructions:
If the verdict is still not PASS, iterate in the main context: fix remaining issues using Edit, then spawn a new evaluation agent.
Read references/examples.md for good vs bad comparison pairs covering commands, architecture, gotchas, and format sections.
/review-claude-md
</example>
<example>
Specific repo with verbose output:
/review-claude-md /path/to/repo --verbose
</example>
<example>
Score-only and thorough modes:
/review-claude-md --score-only
/review-claude-md --thorough
/review-claude-md /path/to/repo --verbose --thorough
</example>