Help us improve
Share bugs, ideas, or general feedback.
From cc-skills-meta
Audit Claude Code configuration artifacts (hooks, skills, CLAUDE.md, agents) for over-engineering, redundancy, and token waste. Uses model routing (haiku for research, sonnet for analysis) with decision memory.
npx claudepluginhub enduser123/cc-skills-metaHow this skill is triggered — by the user, by Claude, or both
Slash command
/cc-skills-meta:config-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit Claude Code configuration artifacts (hooks, skills, CLAUDE.md, agents, MCP configs) for over-engineering, redundancy, and token waste. Uses model routing (haiku for research → sonnet for analysis) with decision memory.
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
Audit Claude Code configuration artifacts (hooks, skills, CLAUDE.md, agents, MCP configs) for over-engineering, redundancy, and token waste. Uses model routing (haiku for research → sonnet for analysis) with decision memory.
Phase 1: Research (runs on haiku — fast/cheap for doc fetching)
Phase 2: Analysis (runs on sonnet — consistent quality for config analysis)
Why: Research is IO-bound (doc fetching), Analysis is CPU-bound (pattern matching). Routing each to the right model reduces cost and improves quality.
Hook-enforced fields (only include if needed):
enforcement — REQUIRED: must be none, advisory, or strict (defaults to strict if omitted)required_tools — enables tool gatingdepends_on_skills — enables dependency validationworkflow_steps — enables Layer 0 step enforcementtriggers — enables slash command registrationsuggest — enables integration validationInert fields (never include — no hook reads them):
context — no hook validates thisuser-invocable — no hook validates thisargument-hint — no hook validates thisstatus — no hook validates active/inactivealiases — no hook validates thiscategory — no hook validates thisMinimum valid frontmatter:
---
name: my-skill
description: One-line purpose
---
Token savings: Removing inert fields saves ~15-40 tokens per skill.
| Target Type | Over-Engine Risk | Key Signals |
|---|---|---|
| Hooks | Verbose patterns, redundant validation | Pre-check loops, redundant success checks, over-specified timeouts |
| Skills | Inert frontmatter fields, redundant sections | Duplicate workflow_steps, cross-ref instead of integrate, verbose frontmatter |
| CLAUDE.md | Restated built-ins, verbosity | "always read files", "use git", "write clean code" |
| Agents | Tool sprawl, duplicate logic | Over-broad allowed-tools, redundant subagent patterns |
For each instruction/pattern, score:
Estimate always-loaded vs on-demand tokens:
Report: "Estimated waste: ~X tokens always-loaded"
Stores user decisions in .claude/.config-audit/decisions.json:
{
"hook:auth_gate:restated_success_check": {
"decision": "rejected",
"reason": "Auth hooks need explicit success validation",
"timestamp": "2026-04-29",
"artifact_version": "1.2.0"
}
}
Key format: {type}:{artifact}:{issue_pattern}
Staleness detection: Flag decisions for re-evaluation when:
Discover all target artifacts in scope:
# For hooks
find .claude/hooks -name "*.py" -o -name "*.md"
# For skills
find .claude/skills -name "SKILL.md"
# For CLAUDE.md
find . -maxdepth 3 -name "CLAUDE.md" -o -name "CLAUDE.local.md"
Build configuration map with file paths, line counts, last-modified.
Fetch Anthropic docs for target type:
Check memory for cached findings first — update only if changed.
For each artifact:
Aggregate findings:
Present findings grouped by:
User selects which to apply. Track decisions in memory.
CONFIG-AUDIT REPORT
Target: {scope}
Token Estimate: ~{n} tokens always-loaded
### Over-Engineering Findings
[{severity}] {file}:{line} — {pattern}
Quote: "{evidence}"
Impact: ~{n} tokens wasted
### Cross-File Duplication
{pattern} defined in {n} files:
- {file1}
- {file2}
Recommendation: {unification or reference}
### Conflicts
{file1} says X but {file2} says not-X
### Token Waste Summary
- Verbosity: ~{n} tokens
- Duplication: ~{n} tokens
- Conflicts: ~{n} tokens
Total estimated waste: ~{n} tokens always-loaded
### Decision Memory
[PASS] {pattern} — previously accepted (2026-04-15)
[REJECT] {pattern} — previously rejected: {reason}
[STALE] {pattern} — decision from {date}, re-evaluate recommended
### Recommendations
1. [High] {action} — saves ~{n} tokens
2. [Medium] {action} — saves ~{n} tokens
...
Fetches Anthropic docs, builds target-type rubric, checks memory.
Applies rubric to artifacts, scores patterns, quotes evidence.
Use /config-audit hooks to audit hooks
Use /config-audit skills to audit skills
Use /config-audit CLAUDE.md to audit instruction files
Use /config-audit agents to audit agent definitions
Use /config-audit (no args) to audit everything in scope
/sqa or /simplify)/design)