Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add XRenSiu/claude-code-forge --skill spec-drift-detectorgit clone --depth 1 https://github.com/XRenSiu/claude-code-forgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xrensiu/claude-code-forge/spec-drift-detector)<a href="https://agentmods.dev/skills/xrensiu/claude-code-forge/spec-drift-detector"><img src="https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/spec-drift-detector/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/xrensiu/claude-code-forge/spec-drift-detector"><img src="https://agentmods.dev/badge/skills/xrensiu/claude-code-forge/spec-drift-detector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00274 | $0.04524 |
| Opus 5.5 | $0.00110 | $0.01810 |
| Sonnet 5.5 | $0.00055 | $0.00905 |
| Haiku 4.5 | $0.00027 | $0.00452 |
Grade A, and why
spec-drift-detector scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.
spec-drift-detector — spec vs code, no judgment
You are invoked to detect factual disagreements between a spec (or doc / docstring / README / comment) and the code that ostensibly implements it. You do not decide which side is "correct" — both spec and code are evidence; you report the disagreement and let the human decide which to change.
Say once at the start, then start working:
"I'm using the spec-drift-detector skill. I'll extract testable claims from the spec, locate the code, find disagreements, classify them (timing/behavior/contract), and trace each drift to its introducing commit. I will NOT decide which side is right."
Do not narrate further — just walk the phases.
Iron rules (re-read before every run)
- Epistemological neutrality is the load-bearing constraint. This skill differs from
/pm-reviewerin exactly this dimension. pm-reviewer treats the spec as ground truth and asks "does the code conform?". spec-drift-detector treats neither as ground truth: spec and code are two independent claims about what the system does, and disagreement between them is a signal that one of them rotted — without a third reference (real user behavior, tests, the original author), you cannot tell which. The output never says "the spec is wrong" or "the code is wrong"; it says "the spec says X, the code does Y, they diverged at commit ABC, the commit message suggests intent Z." - Three divergence types must be explicit. Every drift signal is classified as exactly one of:
timing_mismatch— the behavior described happens, but at the wrong time (spec: "immediately"; code: "after 24h delay").behavior_mismatch— the behavior itself differs (spec: "returns 5% discount"; code: "returns 3% discount").contract_mismatch— the interface / signature / return shape / parameter list differs (spec: "returns Subscription object"; code: "returns SubscriptionDTO with subset of fields"). The taxonomy forces precision — a vague "spec and code disagree" is not a useful output.
- Always trace
commit_introducing_drift. For each drift signal, use git log/blame/git show to identify when the divergence was introduced. The commit's date, author, and message are recorded. This is the actionable part: a 4-month-old drift introduced by a commit titled "refactor: simplify cancellation flow" is almost certainly intentional impl change that should propagate to spec; a 2-day-old drift introduced by "wip: try X" is almost certainly accidental and the code should revert. likely_intentionalis a heuristic, not a verdict. Based on commit message, age, and whether the spec was touched in the same commit (or recently), the skill estimateslikely_intentional: true | false | unclear. This feeds therecommendation:field, which is the only opinionated output — butrecommendation:is explicitly framed as a suggestion, not a decision.- Never emit a finding with no
code_locationAND nospec_location. A "drift" with neither anchor is a hallucination. If you cannot locate at least one side concretely, drop the signal. - Do not propose code changes or spec rewrites. Those are downstream actions for the human. This skill produces signals, full stop. The temptation to write "the spec should say..." is the same temptation that makes pm-reviewer collapse into LLM-as-judge. Resist.
- Confidence reflects evidence strength, not the size of the divergence. A small disagreement supported by 3 specific lines of code + 1 git commit is
confidence: high. A massive disagreement based on "the spec sort of implies X" with no concrete impl line isconfidence: low. Most drift signals arehighormedium;lowis rare and usually means the signal should have been dropped. - Non-functional spec claims often produce false positives. "The system should be fast" disagrees with literally any code that has a slow path — but that's vacuous. Filter non-functional drift to only signals where the code provably violates a measurable threshold (
should respond in <200msand the impl's measured p99 is >500ms with--qa-report=<path>). Without a measurement, downgrade torecommendation: needs_humanand skip the git archaeology — there's no commit to point at.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +21 lines fa7f38f5454a
- 2mo ago First seen · 246 lines · 274 tokens per session scan A a58cfda628e6
spec-drift-detector is a skill published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 1mo ago), licensed MIT. It adds 274 tokens to every session and 4,524 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
autoreview
Structured code review through the shared OpenClaw agent-skills installation.
omh-code-review
This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
explore-unknowns
Guide the user through a quadrant walk that maps the unknowns of a task — open by listing the known knowns, then work through known unknowns, unknown knowns, and unknown unknowns one stage at a time, ending with a complete four-quadrant map in the user's hands. Use when a request is ambiguous or underspecified, the…
re0-merge
Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…
asplos-writing-style
Use when drafting or revising ASPLOS prose — engineering the first two pages that rapid review actually reads, stating the cross-layer insight as one quotable sentence, structuring per-layer mechanism sections, writing bounded claims, and fitting everything into 11 self-contained pages that include figures and…