Audit rules and skills for semantic contradictions, redundancy, and staleness, then interactively resolve with the user. Use periodically when agent performance degrades or after adding many rules/skills.
Periodic health audit for your rules and skills. Finds contradictions, redundancies, dead references, and oversized files, then walks you through resolving each one interactively.
gotchas.md before startingAskUserQuestion tool for ALL user interactions — never just print a question and waitUse AskUserQuestion to ask the user what to audit. Options:
~/.claude/).claude/)Then scan the chosen locations:
CLAUDE.mdrules/**/*.mdskills/*/SKILL.mdBuild an inventory table: file path, purpose (first line or heading), line count.
Read references/contradiction-patterns.md for the 6 pattern types to check.
Cross-reference all inventoried files for:
Scan for:
Read references/health-metrics.md for thresholds. Present a report covering:
See examples/ for concrete report samples.
If no issues found: "All healthy. No contradictions or redundancies found." and stop.
For each finding, use AskUserQuestion to present the issue with evidence and ask for an action:
Consolidation guidance:
Print before/after metrics: file count, total lines, changes made. Suggest running /context-budget for token impact verification.