/config-audit:config-auditfrom config-audit
Audits the installed Claude Code setup for bloat and rot (skills, plugins, memory, hooks, permissions, MCP servers, caches), measures each item's context cost, and proposes Keep, Improve, Update, Retire or Merge verdicts. Use for "clean up my config", "too many skills", "my setup is bloated", or a periodic hygiene review.
Ships in config-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Skills, memory, hooks, permission entries, and MCP servers are only ever added, so a setup rots unless someone prunes it. This skill finds candidates, shows the evidence, and removes nothing without the person's decision on each item. Cleanup is soft-delete only.
Not for a security review of config (agent-config-audit), vetting a third-party plugin before install (plugin-vetter, if installed), a single CLAUDE.md quality pass (claude-md-management, if installed), or rewriting instruction files (agent-instructions).
~/.claude/, ~/.claude.json, the project's .claude/, and the root .mcp.json. Never touch source trees.Scope. Ask which scope to audit if unclear: user (~/.claude/ and ~/.claude.json), the current project (.claude/ and the root .mcp.json), or both. List the paths you will read.
Measure. Ask the person to run /context in the live session for real token counts by category, since Claude cannot run it. For one plugin, claude plugin details <name> shows its component inventory and projected token cost. It beats an estimate, so use estimates (about 1.3 tokens per word of prose) only for items /context does not break out. Note the biggest consumers: MCP tool schemas, skill and agent descriptions that load every session, and CLAUDE.md and rules.
Inventory. Read references/channels.md for what to inspect per channel and the staleness signals for each. Collect for every candidate its path, channel, the signal that flagged it, size, and last-modified time.
Judge. Give each candidate a verdict, backed by evidence you cite:
| Verdict | Meaning |
|---|---|
| Keep | Useful, current, and unique |
| Improve | Worth keeping, with a named change (which section, what action) |
| Update | References an outdated tool, flag, or API. Verify against current docs before saying so |
| Retire | Broken, stale, or costing more than it returns. Name the defect and what covers the need instead |
| Merge into X | Substantial overlap with X. Name what to move |
Check overlap with other skills and with CLAUDE.md, freshness of technical references, and how often it appears in recent transcripts when those are available. A verdict reason must stand alone, so write the evidence, not "unchanged" or "superseded".
Present. Show a numbered table ranked by confidence (broken or orphaned first, merely old last), capped at about 20 items per run, with the total tokens at stake.
Act on approval. For each approved item, soft-delete as references/channels.md describes, append to the log, and report reclaimed size and a suggested next review date.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin config-audit