/cc-skills-meta:config-auditfrom 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.
Ships in cc-skills-meta. 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.
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)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (enduser123/cc-skills-meta) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-metaOther plugins' skills for the same job
51 skills in this plugin
/behaveStructured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)/cksConstitutional Knowledge System - unified command for search, add, and session extraction/concept-mapperUnified concept mapping for learning, system architecture, and text analysis. Creates Mermaid diagrams for mind maps, concept maps, system diagrams, and knowledge structures. Use for studying, documentation, architecture visualization, or converting articles/text into visual maps.