spec-drift
Skill3 starsChanged 9 days agoMITView on GitHub
Produce a drift report where specs, the architecture doc, decision records and code disagree. Reports only; a human decides what to fix. Use on a schedule, before a release, or when the user asks whether specs or docs are still accurate, out of date or drifted.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- quziyan/spec-drift-mngrtheir own version, first seen Sep 12, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- quziyan/spec-drift-mngr★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- skills/spec-init/scaffolds/AGENTS.mdAGENTS.md
- spec-checkSkill
- spec-decisionSkill
- spec-implementSkill
- spec-initSkill
- spec-writeSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 51
Every finding ends with a "Decide" line.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
spec-drift
The skill lists every place where specs, docs and code disagree. A human decides each fix, because the spec is a contract. The skill never edits specs, code or decision records.
Input
- SCOPE (optional): capabilities (
billing-retries) or areas (BILL). Default: all ofdocs/specs/.
Steps
- Run
spec-checkfirst (script if Node is available). Format errors and coverage gaps go into the report as-is. - Specs vs code. For each requirement in scope, find the implementing code and its tagged tests. Classify:
- Aligned: code and tagged tests do what the requirement says.
- Drifted: code contradicts the requirement or scenario values (thresholds, timings, messages).
- Undocumented: observable behavior in code with no requirement (new routes, commands, events, user-facing errors).
- Unimplemented: requirement with no code path.
- Weak test: the tagged test passes without exercising the scenario's WHEN or THEN.
- Architecture vs code. Components, boundaries and data flow in
docs/architecture.mdthat no longer match the code. Accepted decision records the code contradicts. - Glossary. Domain names in code that differ from glossary terms.
- Write the report to
.speculatius/drift-report.md. First make sure.speculatius/is in the root.gitignore. Never indocs/. - Present the counts and the top findings. Ask which to act on. Fixes go through
spec-write(spec wrong) or a normal change withspec-write --plan(code wrong).
Report format
# Drift report <date>
Scope: <…>
Summary: <n> aligned, <n> drifted, <n> undocumented, <n> unimplemented, <n> weak tests, <n> doc mismatches
## Drifted
### billing-retries → Retry failed charges (BILL-003)
- Spec: retry after 24 hours
- Observed: retry after 12 hours (`<file>:<line>`)
- Confidence: HIGH | LOW
- Decide: fix code | update spec | investigate
## Undocumented
## Unimplemented
## Weak tests
## Coverage gaps (untested scenarios, orphan tags)
## Architecture and decisions
## Glossary
## Check script outputEvery finding ends with a "Decide" line. Do not pick the answer for the human.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

