Install
$ agentstack add skill-coleam00-skills-rules-check-drift ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
/rules-check-drift — keep your rules file true, not longer
Your rules file — CLAUDE.md or AGENTS.md — is a steering document, not documentation: your ground rules, your conventions, and a current map of where things live. Its only failure mode that matters is being wrong: a stale rule or a drifted map actively misleads the agent on every future run. This skill checks the rules file against what just changed and proposes the smallest edit that keeps it true.
> Wrong 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.
Input
$ARGUMENTS— optional diff range. Default: uncommitted + staged (git diff HEAD); fall back tomain...HEAD.- Scope: the project's rules file(s) —
CLAUDE.mdand/orAGENTS.md, the root file + any package-level
ones. (If CLAUDE.md is just a @AGENTS.md import, check AGENTS.md.) Ignore README, docs/, and .claude/ agent/command/skill files. This skill exists to keep the rules honest, nothing else.
Process
1. See what changed
git diff + git status. Note: moved/renamed/removed files, new modules, changed conventions, and any new invariant the change establishes.
2. Read the rules file as it is now
Load the project's rules file — CLAUDE.md or AGENTS.md (and any package-scoped ones). Hold each claim against the change set.
3. Flag ONLY these three things
- A stated rule or fact is now false — e.g. "routes live in
src/routes/" but they moved. → fix it. - The architecture map drifted — a path or "where things live" pointer no longer matches reality.
→ fix the wrong entry (don't catalog every new file).
- A new durable invariant must hold going forward — the change introduces a rule that must stay true
(e.g. "never call the DB from handlers — go through repository/"). → add it as one line.
Everything else, leave alone. Do not suggest an edit to record that a feature was added (that's a changelog — the codebase is the source of truth), to restate what the code already makes obvious, or to add background/rationale/prose that doesn't steer future work.
4. Write each suggestion the way CLAUDE.md should read
- One bullet, not a paragraph. A rule is a line, not an essay.
- Keep the map current — don't grow it. Fix the wrong path; don't enumerate the new ones.
- State rules in natural language; reference the codebase, never paste code. Copied code goes stale; the
codebase stays true. Good: "follow the error pattern in src/core/errors/." Bad: pasting the class.
Output
## Rules-file drift check — 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)
- — established by
### Checked, still true — no edit
-
If nothing drifted: "The rules file is still accurate for these changes — no edits needed."
Rules
- Advisory. Report the drift; only apply/piv-commit edits if the caller explicitly asks.
- Rules file only (
CLAUDE.md/AGENTS.md). Not README, not docs. - Lean by default. When in doubt, suggest nothing.
- Run it before every merge (or as part of
/piv-review-changes) so your rules never drift behind the code.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: coleam00
- Source: coleam00/skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.