Audit an agent setup (global ~/.claude AND project .claude AND plugin scope) for the 9 token-waste patterns that silently inflate cost and burn through usage limits. Outputs a per-pattern score against thresholds and proposes specific fixes — applied only with user approval. Heavyweight (~5KB SKILL.md + audit script); explicit invocation only. Triggers: /audit-agent-overhead, "audit my agent setup", "why am I hitting usage limits".
72
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Most "Claude got dumber" / "I burned through Max in 19 minutes" complaints trace to invisible per-turn overhead, not the model. This skill audits both scopes (global ~/.claude/, project .claude/) against nine known waste patterns and proposes targeted fixes.
Source: @mnilax thread, 2026 — 90-day instrumented study of 430h / $1,340 of Claude Code usage. Productive tokens: 27%. Overhead: 73%. The patterns are his.
Full detail and per-pattern fix recipe in patterns.md. Summary:
| # | Pattern | ~Share | Threshold (flag if over) |
|---|---|---|---|
| 1 | CLAUDE.md bloat | 14% | combined > 1,500 tokens |
| 2 | Conversation history re-reads | 13% | sessions > 20 messages |
| 3 | Hook injection on every prompt | 11% | UserPromptSubmit hooks > 1 unjustified |
| 4 | Cache miss on session resume | 10% | default 5-min cache, frequent breaks |
| 5 | Skill auto-load on irrelevant tasks | 7% | ad-hoc skills > 5, OR total addressable > 30 (incl. plugin-provided) |
| 6 | Always-on MCP tool schemas | 6% | always-on MCPs > 3 (settings + plugin-bundled) |
| 7 | Extended thinking on simple tasks | 5% | effortLevel: high set globally |
| 8 | Wrong-direction generation | 4% | behavior — train Cmd+. / Esc-Esc reflex |
| 9 | SessionStart hook noise | 3% | "loaded successfully" notifications present |
Total addressable: ~73% of tokens. Realistic recovery: 27% → ~65% productive.
bash "${CLAUDE_SKILL_DIR}/bin/audit.sh"${CLAUDE_SKILL_DIR} resolves to this skill's directory regardless of how it was installed (plugin cache, project .claude/skills/, or source repo). The script inspects three scopes and prints a per-pattern table with measured values vs. thresholds. It does not modify anything.
~/.claude/CLAUDE.md, ~/.claude/settings.json, ~/.claude/skills/./.claude/CLAUDE.md, ./.claude/settings.json, ./.claude/skills/~/.claude/settings.json:.enabledPlugins, cross-referenced with ~/.claude/plugins/installed_plugins.json to find install paths. SKILL.md files are deduplicated by skill name (plugins often ship the same skill under .claude/, .opencode/, and claude-plugin/ runtime variants — only one is loaded at runtime).For each pattern flagged "OVER":
Do not batch-edit. For each flagged pattern, present:
Apply only what the user approves. Re-run the audit after each pattern to confirm the metric moved.
.claude/.audit-backup-<date>/ so it's recoverable.~/.claude/CLAUDE.md without showing a diff first. That file is the user's personal voice; tightening ≠ rewriting./clear aggressively. Pattern 2 says cap at ~20 messages and use /compact, not nuke-and-restart.After fixes, re-run bin/audit.sh and report:
77a9e6b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.