spectra-drift
Skill0 starsChanged 4 months agoMITView on GitHub
Detect drift between a Spectra change and the current codebase state
4 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- DanSnow/hoarder-pipetteedited, first seen Nov 9, 2026
- leoho0722/naver-blog-image-downloaderword for word, first seen Aug 31, 2026
- PsychQuant/claude-hot-limitword for word, first seen Jul 1, 2026
- harrychuang/cursor-skillsword for word, first seen Jun 17, 2026
Other versions4 projects use a version of this.
Word for word · 3
- harrychuang/cursor-skills★ 19100% same
- leoho0722/naver-blog-image-downloader★ 2100% same
- PsychQuant/claude-hot-limit★ 0100% same
Edited · 1
- DanSnow/hoarder-pipette★ 9843% same
Wrote their own version · 0
None found.
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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- spectra-analyzeSkill
- spectra-applySkill
- spectra-archiveSkill
- spectra-askSkill
- spectra-auditSkill
- spectra-commitSkill
- spectra-debugSkill
- spectra-discussSkill
- spectra-ingestSkill
- spectra-proposeSkill
- spectra-verifySkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
If not provided, infer from context or run spectra list --json to auto-select.
- Distinctive: line 52
Use a user-readable, conclusion-first format.
- Distinctive: line 84
Keep technical details below the plain-language conclusion.
- Very specific: line 88
Use the AskUserQuestion tool to offer one decision based on severity.
- Distinctive: line 109
If the AskUserQuestion tool is not available, present the same plain-language choices as text and wait for the user's response.
- Distinctive: line 119
Read-only: NEVER modify files, artifacts, or git state based on drift findings
- Very specific: line 121
If spectra drift returns a non-zero exit code (e.g., older binary without the drift subcommand), report the error and stop
- Distinctive: line 122
Do NOT auto-invoke any follow-up command — recommendations are user-confirmed
- Distinctive: line 123
If AskUserQuestion tool is not available, ask the same questions as plain text and wait for the user's response
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Claude fork context
This generated Claude Code skill runs with context: fork. The rules in this section take precedence over the shared drift body below.
When no change name is provided, run spectra list --json. Auto-select only when there is exactly one active change. If there are zero active changes or more than one active change, return the candidate list or empty-state message and ask the main thread to rerun /spectra-drift <change-name>. Do NOT ask an interactive selection question inside the fork.
Detect drift between a Spectra change and the current codebase state. Reports time dormancy, broken design anchors, task collisions with external commits, and a single recommended next command.
Input: Optionally specify a change name (e.g., /spectra-drift add-auth). If omitted, infer from conversation context or auto-select if only one active change exists.
Prerequisites: This skill requires the spectra CLI. If any spectra command fails with "command not found" or similar, report the error and STOP.
Steps
Determine change name
If not provided, infer from context or run
spectra list --jsonto auto-select. If multiple active changes exist and no name is given, list candidates and ask the user to rerun with an explicit name.Run programmatic drift analysis
spectra drift <change-name> --jsonThe JSON contains:
severity:"light"/"medium"/"heavy"total_score: aggregate over Time / Structure / Tasks (Environment is display-only)dimensions: array of{ kind, status, score, contributes_to_total }broken_anchors: design.md references (file paths / symbols / functions / CLI flags) that no longer resolvetasks_blocked_external: pending tasks whose referenced files were modified by commits outside the change dirtasks_maybe_resolved: pending tasks whose verb+target keywords match commit subjects sincecreatedprimary_recommendation: a single copy-pasteable command line
Present the report
Use a user-readable, conclusion-first format. The first substantive paragraph after the title MUST be a plain-language conclusion that says what to do next before showing score tables, broken anchors, task collisions, or severity labels.
Translate severity into action-oriented meaning:
- Light: the change can continue with apply.
- Medium: the change can continue, but the plan should be refreshed before implementation.
- Heavy: the old plan is likely unsuitable for direct implementation; restart or refresh first.
Recommended shape:
## Drift Report: <change-name> <Plain-language conclusion. Example for medium: "This change can continue, but update the plan before implementing it. Related code has changed since the plan was written, so applying the old tasks directly may cause rework or conflicts."> ### Why - <1-3 plain-language reasons derived from dimensions, broken anchors, and task collisions> ### Details | Item | Result | | ----------------- | ------------------------------------------------------ | | Time | <status> | | Design references | <broken anchor count or "No broken references"> | | Pending tasks | <blocked/maybe-resolved count or "No task collisions"> | | Overall | <light/medium/heavy, total score N> | ### Recommendation Run `<primary_recommendation>`.Keep technical details below the plain-language conclusion. List broken anchors, blocked tasks, and maybe-resolved tasks only when non-empty. Omit empty technical detail sections entirely. Keep the report short enough to skim; the goal is to help the user decide, not to explain the scoring model.
Apply the recommendation interactively
Use the AskUserQuestion tool to offer one decision based on
severity. Use plain-language option labels while preserving the exact command in each option description. Do NOT auto-invoke/spectra-apply,/spectra-ingest, orspectra archive; always wait for the user's choice.- Light (score 0-3, drift is minor):
- Recommended label: "Directly start work"
- Description: run
/spectra-apply <name>
- Description: run
- Alternate label: "Pause for now"
- Description: do nothing until the user reviews manually
- Recommended label: "Directly start work"
- Medium (score 4-8, refresh worth doing):
- Recommended label: "Refresh the plan"
- Description: run
/spectra-ingest <name>with the broken references and task collisions as context
- Description: run
- Alternate label: "Directly start work"
- Description: run
/spectra-apply <name>only if the user knows the reported changes are harmless
- Description: run
- Alternate label: "Pause for now"
- Description: do nothing until the user reviews manually
- Recommended label: "Refresh the plan"
- Heavy (score >8 or anchor decay >30%, design diverges from code):
- Recommended label: "Archive and restart"
- Description: run
<primary_recommendation>
- Description: run
- Alternate label: "Refresh the plan"
- Description: try
/spectra-ingest <name>before restarting
- Description: try
- Alternate label: "Pause for now"
- Description: do nothing until the user reviews manually
- Recommended label: "Archive and restart"
If the AskUserQuestion tool is not available, present the same plain-language choices as text and wait for the user's response.
- Light (score 0-3, drift is minor):
Passive Trigger
When /spectra-apply is invoked on a change whose .openspec.yaml created date is more than 5 days ago AND no commits have touched the change directory in the past 3 days, the apply skill SHOULD run drift analysis first and surface findings before tasks begin. The trigger is guidance only and MUST NOT block apply from proceeding.
(Threshold reasoning: AI-assisted commits are daily-cadence, not weekly. A change sitting ≥5 days with ≥3 days of no commits is almost always genuine stagnation rather than normal pacing.)
Guardrails
- Read-only: NEVER modify files, artifacts, or git state based on drift findings
- The CLI caps anchor checks at 50 via
ANCHOR_CAPinspectra_core::driftto bound run-time - If
spectra driftreturns a non-zero exit code (e.g., older binary without the drift subcommand), report the error and stop - Do NOT auto-invoke any follow-up command — recommendations are user-confirmed
- If AskUserQuestion tool is not available, ask the same questions as plain text and wait for the user's response
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.

