AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Rules Check Drift

skill-coleam00-skills-rules-check-drift · by coleam00

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.

No reviews yet
0 installs
18 views
0.0% view→install

Install

$ agentstack add skill-coleam00-skills-rules-check-drift

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-coleam00-skills-rules-check-drift)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Rules Check Drift? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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 to main...HEAD.
  • Scope: the project's rules file(s)CLAUDE.md and/or AGENTS.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

  1. A stated rule or fact is now false — e.g. "routes live in src/routes/" but they moved. → fix it.
  2. 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).

  1. 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.