claude/review-claude-md/skills/review-claude-md/SKILL.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 skillsauth add smykla-skalski/sai review-claude-mdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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*.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:
Use 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):
Spawn 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>development
Run the council workflow from a normal Copilot session only when the user explicitly asks for council review, multi-persona critique, debate, design review, code review, architecture feedback, UX review, or tradeoff analysis. Do not use it for commit, stage, merge, approval, or generic pre-commit requests. Accept the same mode syntax as the bundled council reviewers: `core|auto|core-eng|core-ux|core-mix|all|debate <problem|@file>`. During council slash-command use, the current session agent moderates reviewer agents directly. Runs broader than 6 reviewers require explicit AskUserQuestion approval before launch.
tools
Use when the user invokes $council, $council:council, Council review, or Council debate. Use loaded SKILL body or one direct installed `skills/council/SKILL.md` read. Direct read path must contain `/.codex/plugins/cache/sai/council/` and end `/skills/council/SKILL.md`. `cd <cwd> && sed -n ... <path>` is valid. Do not use `pwd`, `ls`, `find`, `rg`, `cat`, multiple `&&`, or `;`. Never use repo-local paths. If unavailable, stop exactly `Council not run: skill unavailable.` At most one pre-tool message, exact `Council progress:` line only. Non-final lines start `Council progress:`.
development
Run council reviews with sourced engineering, UX, reliability, performance, AI, and strategy persona lenses. Use when the user asks for council review, multi-persona critique, debate, design review, code review, architecture feedback, UX review, or tradeoff analysis.
development
Use when the user asks for council review, multi-persona critique, debate, design review, code review, architecture feedback, UX review, or tradeoff analysis. Bare invocations use `core` profile auto-detect; explicit `auto` selects the best-fit 6 personas from the sourced 27-persona engineering and UX roster. Users can still pin `core`, `core-eng`, `core-ux`, `core-mix`, `all`, or `debate`.