Setup Audit
/setup-audit:run [--apply] inventories your project's Claude Code configuration and grades it.
What it looks at
- CLAUDE.md — length, specificity, stale commands (it verifies a sample), contradictions, secrets, instructions that should be hooks.
- Permissions — dangerous allows such as
Bash(*),bypassPermissionsas default, missing deny rules for.env*. - Hooks — whether deterministic behaviours (format, tests, guardrails, session context) are enforced by hooks or merely requested in prose; hook speed and fail‑safety.
- Rules and structure —
.claude/rules/*.md, path scoping, duplication. - Skills and agents — description quality,
disable-model-invocationon side‑effectful workflows, narrowallowed-tools, agents with unrestricted tools doing read‑only work. - MCP servers — count, tool bloat, inline secrets.
- Memory — durable facts vs restated code, stale entries, where decisions live.
- Repository hygiene —
.gitignorecoverage, one‑line lint/test commands, CI, and a spot‑check of git history for leaked keys.
Secrets in settings files are masked before anything is read into context. The full rubric ships with the plugin (reference/rubric.md), so you can see exactly how grades are assigned.
Output
A grade per area with one line of evidence each, a weighted overall grade, and the top five fixes ordered by risk reduced × ease, each with the exact file and change. With --apply, the safe local fixes (CLAUDE.md edits, rule extraction, .gitignore, deny rules in project settings) are made after showing the plan; user‑level settings and MCP servers are never changed without asking.