What problem does it solve?
Agents rely on the CLAUDE.md contract for consistent behavior. Over time rules can drift, conflict, or become obsolete, leading to unpredictable actions. This skill audits CLAUDE.md files to surface those issues and optionally enforces protection hooks.
Core Features & Use Cases
- Inventory & Normalize: Collects all global, project, and sub‑directory CLAUDE.md files and extracts discrete rules.
- Conflict & Redundancy Detection: Identifies contradictory, duplicated, or deprecated rules across the hierarchy.
- Staleness Analysis: Flags rules that reference removed tools, paths, or patterns.
- Protective Hook Installation: Optionally creates a PreToolUse hook that blocks unauthorized CLAUDE.md edits.
- Actionable Report: Generates a health report with counts, conflict details, redundancy listings, and remediation suggestions.
- Use Cases: Run after a branch merge that touched CLAUDE.md, during weekly maintenance, when onboarding new agents, or after a reflect‑and‑learn session.
Quick Start
Ask the CLAUDE.md Guardian to generate a health report for the repository.