e-xode/deadweight/config-auditor

Claude Code and agent skill by e-xode/deadweight

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Checks a Claude Code configuration against the official documentation and the repository's real files, and holds the reference for how skills, sub-agents, rules, hooks, settings, permissions, MCP servers and plugins actually load and apply - details that change between releases. Load it BEFORE answering why one of them does not behave as expected, or whether a configuration is sound: an answer from memory misses the release-specific rule. Do not use to scaffold a configuration or write a new MCP server entry, ship a release, review a diff, or write application code.

Install

npx vskill@latest install e-xode/deadweight/config-auditor

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as e-xode/deadweight/config-auditor.

Config auditor — audit and doctrine for a project's Claude Code configuration

Owns the rules and audit method for a .claude/ folder, its CLAUDE.md, and a plugin's manifest. Every rule says whether it is Anthropic's documentation, a measurement, or this plugin's house convention. Follows the AgentSkills.io open standard for skill interoperability.

What this skill does (and does not)

In scopeOut of scope
Rules for writing/editing CLAUDE.mdValidating modified application code (your own validation agent)
Anatomy of a project skill (frontmatter, references, budget)The workflow of drafting and evaluating a new skill (Anthropic's skill-creator, where installed)
Anatomy of a project sub-agentGit hooks and commit format
Anatomy of path-scoped rules (.claude/rules/)Framework lifecycle hooks (Vue, React…)
Hooks, settings, permissions, MCP servers, plugin manifestsSkill description optimisation tooling (skill-creator, where installed)
Audit checklist + automated scripts/audit.pyApplication architecture
Anthropic doctrine: progressive disclosure, agent design

Division of responsibilities — config-auditor ↔ skill-creator

skill-creator (Anthropic's upstream skill) builds one skill; config-auditor judges the configuration a skill lands in. Load both when authoring a skill, this one alone when auditing. This plugin declares no dependency on it, and absent is a valid state. Hand-offs use ➜ See skill: <name> — <reason>.

Core rules (the strict minimum)

  1. `CLAUDE.md` ≤ 12 KB / ~3000 tokens, and ≤ 200 lines. Hard rules only; knowledge belongs in skills. The 200-line figure is Anthropic's (01-claude-md-lines); the byte ceiling is this plugin's house proxy (01-claude-md-size), movable per project through the overlay. Why each number is what it is: references/claude-md-anatomy.md.
  2. One skill = one subject. Discriminating description saying what it does and when, in the third person; anti-triggers where a twin competes or a wrong load was seen (on a lone skill, measured inert). Current models over-trigger on shouted imperatives: write "use when…", not "MUST use". See references/skill-anatomy.md.
  3. `SKILL.md` is method + index. Knowledge goes in references/, one level deep. Under ~500 lines (Anthropic) and ~20 KB (effective): after compaction the re-attached body keeps only its start, so what lies past it stops applying while the file looks intact (21). Front-load rules and routing. Details: references/skill-runtime-mechanisms.md.
  4. Sub-agents have a strict contract: an objective, an output format, the tools and sources to use, clear boundaries, a structured return. See references/agent-anatomy.md.
  5. No duplication between skills. Search existing skills before authoring a new one. If overlap is unavoidable, routing text belongs in the description — selection reads the listing, never the body: each side's anti-trigger names the other (→ <twin>). A "Division of responsibilities" table in the body is optional documentation for humans: measured on 8 real twin pairs, it did not change which skill got loaded (antipattern B6). If several skills share one, keep it once and point to it: copying it is the duplication this rule forbids.
  6. One declared language for persisted artefacts. House convention (checks 11, 14-rule-english-only), exemptable per file through the overlay: a mixed-language configuration is harder to audit, not wrong.
  7. No code comments in `CLAUDE.md` or `SKILL.md` outside fenced code blocks. Prose is the medium.
  8. Cross-references use a stable convention: ➜ See skill: <name> — <reason> (greppable, visible in diffs).
  9. `name` in frontmatter == folder name. Mechanical, enforced by scripts/audit.py.
  10. Hooks execute — audit them before anything that is only read. An event name that does not exist, an if on a non-tool event, a bare mcp__<server> matcher: each never fires and never says so (35-*). What a hook prints on SessionStart, UserPromptSubmit, UserPromptExpansion or PostModelSwitch enters the context of every session. House convention: a hook that adds time to every task (a test suite on Stop) is refused; placing a hook is the maintainer's decision, never an agent's. Details: references/hooks-anatomy.md.
  11. Scripts belong to a skill. House convention (13-no-global-scripts, NOTICE by default, WARN under the house profile): executable tooling lives in .claude/skills/<owner>/scripts/, so it travels and retires with the skill that runs it.
  12. Description = trigger surface. Triggers + anti-triggers only; knowledge belongs in the body. Skill descriptions 80–1,024 chars (the spec's cap on the field); 1,536 is the listing cutoff for description + when_to_use together, not a field cap. Agent descriptions 80–900 (house). Most important trigger first: references/skill-anatomy.md.
  13. Rules are lightweight guardrails. .claude/rules/ files are path-scoped constraints (< 2 KB, imperative, no references). They complement skills (which carry knowledge). Use rules for hard DON'Ts tied to specific file paths; use skills for how-to procedures. See references/rules-anatomy.md.
  14. Domain prefixes: a skill scoped to one area of the project carries its area as a prefix. The worked example used throughout these references is a fictional shop: shop-*, ui-*, api-*, data-*. Cross-cutting skills (translate, review, release, skill-creator, git-workflow, this one) take none. A project-scoped skill keeps its project prefix even inside a go-to-market topic (shop-onboarding-email).
  15. Always-loaded budget — measured, never extrapolated. CLAUDE.md + every _listed_ skill description + every agent description load every turn; 17 caps the sum at 43,000 / 47,000 chars. A house ratchet, not Anthropic guidance: the harness sizes its own listing budget from skillListingBudgetFraction (29). Re-measure with /context and /skill-doctor after any listing change.
  16. The ratchet, not the report. A measurement with no floor is a measurement people learn to ignore. --set-floor freezes the counts, --check-floor fails when they rise, and the floor carries the sha of the auditor (audit.py and its deadweight_audit/ package): the comparison refuses to run across two instruments, because a count taken with a different auditor is a different measurement, not a better state. Run it in CI.
  17. Check ids are a compatibility surface. A consuming project names them in its .claude/audit.local.json, so they are never renamed — an id that must change gets an entry in CHECK_ID_ALIASES and the old one keeps working, for good.

Listing levers (disable-model-invocation, skillOverrides, paths:) act on project skills only - none reaches a plugin skill (measured). A withheld skill the model cannot come upon must be named in the CLAUDE.md Skills index (15). Overflow rule and measurements: references/skill-runtime-mechanisms.md.

Audit method

Run before any non-trivial change to .claude/ and after creating/modifying a skill; run the whole method on Anthropic's cadence — every three to six months, and after any major model release.

Step 1 — Automated checks
bash
python3 ${CLAUDE_SKILL_DIR}/scripts/audit.py
python3 ${CLAUDE_SKILL_DIR}/scripts/audit.py --json # adds layout + audit_sha
python3 ${CLAUDE_SKILL_DIR}/scripts/audit.py --all # no roll-up: every finding
python3 ${CLAUDE_SKILL_DIR}/scripts/audit.py --set-floor # freeze today's counts
python3 ${CLAUDE_SKILL_DIR}/scripts/audit.py --check-floor # fail if they rose (CI)

Report every ERROR by name, then every WARN, then every NOTICE — each points at a file, and a summary that picks the familiar ones drops the surprising ones. "0 errors, 0 warnings" is never the whole report while notices exist. INFO lines are measurements every run emits (layout, budget, coverage): do not list them, give their count and ask whether to show them — they are already in the output, so a yes costs no second run. With no one to ask (a sub-agent, -p), append them.

CHECKS in scripts/deadweight_audit/catalog.py is the authoritative inventory of what the script covers — read it there rather than trusting a count copied into prose; a clean run prints the number it executed (Executed N check groups). Most checks report only on failure; the budget always prints its total as INFO. Exit code 1 on any error. A check that fires more than five times is rolled up in the text report - --all or --json show every finding, and the floor always counts every one, because the ceiling is a display decision, not a detection one.

The cached findings the status line counts ("run deadweight"), and the other modes: python3 "${CLAUDE_PLUGIN_ROOT}/scripts/deadweight" with --errors, --info, --all, --fresh, --json, --semantic, --both, --environment, or --setup-statusline when the user asks for the status line (it writes the project's settings). Since 0.36.0 there is no bare deadweight on the Bash tool's PATH (the plugin has no bin/); the variable is substituted in this text and is not set in Bash's environment, so copy the path as written here.

claude plugin validate --strict <dir> is the upstream check: it parses manifests, and since 2.1.233 it reports SKILL.md frontmatter that does not parse. Run it first and do not duplicate it; audit.py covers what it does not — what the harness ignores silently.

Step 1b — Semantic layer, on request only

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/deadweight" --semantic (or --both, the cached findings then this) has a model read the configuration for contradictions and duplicates no parser sees. It sends the files and costs per run, so run it when the user asks for it, never as part of a routine audit. Never counted, never in the floor: references/semantic-layer.md.

Step 2 — Runtime measurement (after any listing change, and whenever the user reports slowness or context cost, even if the static count is 0 or the files could not be read)

audit.py counts characters on disk; nothing static sees what the harness injected. Confirm in a fresh session:

CommandWhat it answers
/skill-doctorPer-skill listing cost, 7-day tokens, invocation counts, never-invoked warnings.
/doctorSetup checkup: listing cost, top contributors, version drift, CLAUDE.md trim proposals.
/context allTokenizer-accurate per-skill estimates. Plain /context shows the Skills row _after_ budget.
/skillsThe listing sorted by estimated token cost.
/usagePer-category breakdown — skills, subagents, plugins, per-MCP — over 24 h and 7 d.
claude --safe-modeThe baseline arm: the session with none of this config — the only way to ask if it earns its keep.

Invocation counts are the input most projects have never had: without them, every "merge or keep" argument is intuition. Check 33 gives the static half of that answer — which descriptions compete — but only a runtime count says which one actually wins. Where a runtime figure disagrees with the audit's effective total, trust the runtime one and fix the script. Which release introduced each command: references/skill-runtime-mechanisms.md § Measuring the real cost.

Step 3 — Manual checks

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
5

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks
  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/e-xode/deadweight/config-auditor/badge)](https://verified-skill.com/skills/e-xode/deadweight/config-auditor)

Something wrong with this skill or its page? Tell us.