A Claude Code skill that performs a comprehensive audit of your entire Claude Code configuration — surfacing dead weight, conflicts, stale rules, and wasted context tokens so you can keep your setup lean and effective.
Claude Code configurations grow organically. You add a rule to fix a bad output, paste in a convention from a blog post, duplicate a preference across files without realizing it. Over time, your CLAUDE.md, skills, and settings accumulate cruft that eats context tokens without improving results.
This skill gives you a structured way to periodically audit everything and get an honest assessment of what to cut, merge, reword, or relocate.
CLAUDE.md(both global and project-level)settings.json(both global and project-level)- All installed skills and their bundled references
- Slash commands and hooks
- MCP configurations (
.mcp.jsonand~/.claude/mcp.json) - Any other instruction files it can find (
.cursorrules,.windsurfrules, etc.)
Every rule, instruction, and preference is evaluated against six questions:
- Already default behavior? — Claude does this without being told. Dead weight.
- Conflicts with another rule? — Two rules contradict each other, especially across global vs. project layers.
- Redundant / duplicate? — Same intent covered elsewhere in different words.
- Bandaid fix? — Added to fix one specific bad output rather than improve things generally.
- Too vague? — So ambiguous it gets interpreted differently every time (e.g., "be more natural").
- Stale / orphaned? — References tools, paths, or frameworks that no longer exist in the project.
It also estimates the token cost of your full configuration and flags how much of your context budget is being spent on non-actionable rules.
- A summary of your setup's size and token footprint
- Every conflict found between files
- A prioritized list of recommended cuts (sorted by impact)
- Rules that should be merged into single, cleaner versions
- Rewrites for rules with the right intent but poor wording
- Global vs. project layer misplacements
- A diff-style changelist for your
CLAUDE.md(not a full rewrite — surgical changes you can review and apply selectively)
Copy the SKILL.md file into your global skills directory:
~/.claude/skills/audit-setup/SKILL.md
That's it. No dependencies, no bundled scripts.
Inside any Claude Code session:
/audit-setup
The skill is set to disable-model-invocation: true, meaning Claude will never run it automatically. It only fires when you explicitly invoke it. This is intentional — you don't want an audit kicking off mid-task because you casually mentioned your config.
Run it whenever you feel like your setup has drifted, or on a regular schedule — monthly works well if you're actively adding rules. It's also worth running after you install a new batch of skills or make significant changes to your CLAUDE.md.
Inspired by this prompt from @itsolelehmann, adapted and extended into a reusable Claude Code skill with additional checks for stale rules, token cost analysis, layer conflicts, and diff-style output.