spec-drift

spec-drift is a skill for Claude Code, Codex from orin-dx/agent-plugins. It costs 41 tokens per session (419 once invoked), scanned A, original, MIT.

A skill for comparing implemented code with its original software specification. It reads the specification and the implementation to check for differences over time.

In plain words
What is it for?
Use it to check whether an older implementation still matches a spec@1 document.
Why use it?
It helps find specification drift, where code gradually stops matching the requirements it was built from.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to check whether an older implementation still matches a spec@1 document.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orin-dx/agent-plugins/spec-drift
Install

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.

Any agent
npx skills add orin-dx/agent-plugins --skill spec-drift
Clone the repo
git clone --depth 1 https://github.com/orin-dx/agent-plugins

Made for: Claude Code, Codex.

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

agentmods badge for spec-drift

README.md
[![agentmods](https://agentmods.dev/badge/skills/orin-dx/agent-plugins/spec-drift/github.svg)](https://agentmods.dev/skills/orin-dx/agent-plugins/spec-drift)
Your own site
<a href="https://agentmods.dev/skills/orin-dx/agent-plugins/spec-drift"><img src="https://agentmods.dev/badge/skills/orin-dx/agent-plugins/spec-drift/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.

agentmods 80×15 button for spec-drift

Your own site · 80×15
<a href="https://agentmods.dev/skills/orin-dx/agent-plugins/spec-drift"><img src="https://agentmods.dev/badge/skills/orin-dx/agent-plugins/spec-drift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00419
Opus 5.5 $0.00016 $0.00168
Sonnet 5.5 $0.00008 $0.00084
Haiku 4.5 $0.00004 $0.00042

Measured 2mo ago against content hash bf16dd8dafe1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-drift 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 2mo 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.

harnesses/codex/plugins/scribe/skills/spec-drift/SKILL.md · 38 lines

What it actually says

State material concerns, evidence, consequence, and confidence directly. Do not soften blockers, manufacture praise, or claim certainty beyond the evidence.

Detect specification drift

Outcome

Produce a read-only criterion-by-criterion report grounded in current code and tests, not in historical approval or stale evidence pointers.

Workflow

  1. Read the spec from spec_file_path and validate it with shared/schemas/[email protected]. Report an unset path as a coverage gap rather than silently using a stale pasted copy.
  2. Inspect current implementation, tests, public interfaces, and relevant runtime behavior for each criterion. Use prior criteria_evidence only as a starting location.
  3. Classify each criterion as covered, uncovered, or drifted. Cite the current file and line or test result that supports the classification.
  4. Separate missing verification from behavioral drift. A test absence is not proof that behavior is absent.
  5. Return the report without changing code or the spec. Recommend scribe:correct-spec only when the spec itself conflicts with verified reality.

Contract

  • Input schema: shared/schemas/[email protected]
  • Input location: spec_file_path, normally docs/specs/<id>.json
  • Output: read-only drift report with per-criterion evidence

Teams and fallback

Before delegating, read agent-roles/README.md; use reviewer for a non-overlapping criterion group and reconcile classifications in the primary agent.

For a wide spec, team members may inspect independent criterion groups with fixed file scopes. The primary agent owns final classification consistency. Smaller audits run completely in one agent.

Boundaries

  • Do not modify implementation, tests, or the persisted spec during diagnosis.
  • Do not treat documentation claims as proof that a criterion is implemented.
Changes

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.

  1. 2mo ago Changed · +2 lines bf16dd8dafe1
  2. 2mo ago Changed · +8 lines · -85 tokens per session ada678f74256
  3. 3mo ago First seen · 28 lines · 126 tokens per session scan A 3f1dbc2c2035

Subscribe to this mod's changes

spec-drift is a skill published in the GitHub repository orin-dx/agent-plugins (1 stars, last pushed 2mo ago), licensed MIT. It adds 41 tokens to every session and 419 once invoked, about $0.0002 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.

Related

spec-drift compared with skills from other repositories

spec-drift next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-driftorin-dx/agent-pluginsSkill12mo agoMITA41Claude Code, Codex
maxsickn33/agentic-awesome-skillsSkill51kyesterdayMITA13Claude Code
github-automationsickn33/agentic-awesome-skillsSkill51kyesterdayMITA42Claude Code
new-skillhyhmrright/brooks-lintSkill1.6kyesterdayMITA145Claude Code, Codex
code-reviewerrmyndharis/antigravity-skillsSkill2.1k23d agoMITA48Claude Code, Codex
dorodangoathola/claude-night-marketSkill358yesterdayMITA31Claude Code
code-slopAsyrafHussin/agent-skillsSkill111todayMITA110Claude Code, Codex