Loading...
Loading...
Check whether your rules file (CLAUDE.md or AGENTS.md) still matches the codebase after recent changes — run before a merge, or fold into your code-review pass. Reports stale/now-false rules, drifted architecture-map entries, and any new invariant worth adding, each with the minimal edit. Advisory and anti-bloat: it keeps the rules file true, never longer than it needs to be.
npx skill4agent add coleam00/skills rules-check-driftCLAUDE.mdAGENTS.mdWrong rules are worse than missing rules. A longer rules file is worse than a lean one. Most changes need no edit at all — adding a wrong or verbose line makes it worse.
$ARGUMENTSgit diff HEADmain...HEADCLAUDE.mdAGENTS.mdCLAUDE.md@AGENTS.mdAGENTS.mddocs/.claude/git diff <range>git statusCLAUDE.mdAGENTS.mdsrc/routes/repository/src/core/errors/## Rules-file drift check — range: <range>
### Fix (now false)
| Where | What's wrong | Minimal fix |
|-------|--------------|-------------|
| "Architecture" map | routes moved `src/routes/` → `src/api/routes/` | update the one path |
### Add (new invariant only)
- <one-line rule> — established by <the change that made it durable>
### Checked, still true — no edit
- <areas you verified need no change>CLAUDE.mdAGENTS.md/piv-review-changes