A Claude Code plugin ยท MIT licensed

Is your Claude Code setup
actually following best practices?

claude-setup-audit reads your CLAUDE.md, rules, skills, subagents, and hooks โ€” then scores them against Anthropic's official guidance and tells you the exact fix for every issue.

Overall score 62/100 ยท Fair
CLAUDE.md Health6
Primitive Placement5
Rules Hygiene8
Hooks Usage4
Skills Quality7
Subagents Quality9

Six dimensions

What it checks

Each dimension scores 0โ€“10 against principles drawn straight from Anthropic's docs. Findings are never invented โ€” every one traces back to a rubric rule.

๐Ÿ“„

CLAUDE.md Health

Line count and bloat, procedures that belong in skills, and enforcement rules that belong in hooks.

๐Ÿงฉ

Primitive Placement

Is each instruction in the right place โ€” CLAUDE.md vs. skill vs. rule vs. hook vs. subagent?

๐Ÿงน

Rules Hygiene

Path-specific rules using paths: frontmatter, with no duplication of CLAUDE.md.

๐Ÿช

Hooks Usage

Are deterministic "always/never" requirements enforced by hooks instead of hopeful advisory text?

โšก

Skills Quality

Procedural content, descriptions specific enough to auto-invoke, and disable-model-invocation on side-effect skills.

๐Ÿค–

Subagents Quality

Scoped tool lists, explicit model pinning, and correct use of isolation vs. main-thread visibility.

How it works

One command. A report you can act on.

Run it from your project root. Every recommendation includes the exact before โ†’ after โ€” complete file snippets, not vague advice.

1

Scan

Reads CLAUDE.md, .claude/rules/, skills/, agents/, and settings.json.

2

Score

Grades each of the six dimensions against the rubric sourced from Anthropic.

3

Report

Writes a full report to claude-setup-audit-report.md in your project root.

4

Fix

Prints your top quick wins โ€” each citing a file, a line, and the exact fix.

Claude Code
> /claude-code-audit:claude-setup-audit

## Audit complete

Overall score: 62/100 (Fair)

| Dimension              | Score |
|------------------------|-------|
| 1. CLAUDE.md Health    | 6/10  |
| 2. Primitive Placement | 5/10  |
| 3. Rules Hygiene       | 8/10  |
| 4. Hooks Usage         | 4/10  |
| 5. Skills Quality      | 7/10  |
| 6. Subagents Quality   | 9/10  |

8 findings total: 2 high, 4 medium, 2 low
Full report written to: ./claude-setup-audit-report.md

Top 3 quick wins:
1. CLAUDE.md lines 45โ€“62: deployment procedure โ†’ .claude/skills/deploy/SKILL.md
2. CLAUDE.md line 18: "always run prettier after edits" โ†’ PostToolUse hook
3. .claude/rules/api-rules.md: missing paths: frontmatter for src/api/**

Get started

Install in 30 seconds

It ships as a Claude Code plugin โ€” install it from a marketplace, or point Claude Code straight at the repo. No binary, no dependencies.

option 1 โ€” direct from GitHub
# In Claude Code โ€” add this repo as a marketplace
> /plugin marketplace add WayneGoosen/claude-code-audit

# Then install the plugin
> /plugin install claude-code-audit@WayneGoosen
option 2 โ€” community marketplace (once approved)
> /plugin marketplace add anthropics/claude-plugins-community
> /plugin install claude-code-audit@claude-community
option 3 โ€” manual
# Clone and load the plugin directory directly
git clone https://github.com/WayneGoosen/claude-code-audit.git
claude --plugin-dir ./claude-code-audit

Full install guide on GitHub

Why a skill, not a linter

A linter can flag "CLAUDE.md is over 200 lines." Only Claude can evaluate "this 30-line deployment procedure would work better as a skill with disable-model-invocation: true so engineers invoke it explicitly."

This tool uses Claude's judgment for the architectural questions that can't be mechanically checked โ€” and every recommendation is specific enough to act on immediately.