spec
Skill17 starsChanged 3 months agoMITView on GitHub
Take a rough intent to a reviewed, implementation-ready OpenSpec change — explore first, generate proposal, design, tasks and delta specs via the OpenSpec CLI, then gate them through an artifact review. Stops at the human checkpoint, having written nothing but specs. Use when starting a new feature, refactor, or bug fix.
96 other projects use a version of this.
Adopted by
Most recently taken up by
- garrytan/gstacktheir own version, first seen Oct 7, 2026
- MagicJosh/rastheir own version, first seen Oct 6, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- heymegabyte/agent-skillstheir own version, first seen Oct 5, 2026
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 4, 2026
- MicTx/spec-harnesstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use tickets, make-pdf and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
toveruxSkilltickets
Break a spec, plan, or the current conversation into tracer-bullet tickets, each declaring its blocking edges.
Also in 3 projects that use this
chloropineSkillmake-pdf
Turn any markdown file into a publication-quality PDF. Proper 1in margins, intelligent page breaks, page numbers, cover pages, running headers, curly quotes and em dashes, clickable TOC, diagonal DRAFT watermark. Not a draft artifact — a finished artifact. Use when asked to "make a PDF", "export to PDF", "turn this markdown into a PDF", or "generate a document". (cgstack) Voice triggers (speech-to-text aliases): "make this a pdf", "make it a pdf", "export to pdf", "turn this into a pdf", "turn this markdown into a pdf", "generate a pdf", "make a pdf from", "pdf this markdown".
Also in 3 projects that use this
anombyte93Skilldiscover
Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.
Also in 5 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 3 projects that use this
chloropineSkillcontext-restore
Restore working context saved earlier by $context-save. Loads the most recent saved state (across all branches by default) so you can pick up where you left off — even across Conductor workspace handoffs. Use when asked to "resume", "restore context", "where was I", or "pick up where I left off". Pair with $context-save. Formerly /checkpoint resume — renamed because Codex treats /checkpoint as a native rewind alias in current environments. (cgstack)
Also in 3 projects that use this
GoogleSkillmetrics
Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.
Also in 3 projects that use this
- +1 more from chloropine
Other versions96 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 96
- garrytan/gstack★ 143ksame name
- getsentry/sentry-react-native★ 1.8ksame name
- JuliusBrussee/cavekit★ 1.1ksame name
- kdlbs/kandev★ 899same name
- getsentry/sentry-dart★ 873same name
- codewithmukesh/dotnet-claude-kit★ 750same name
- Klerith/fernando-skills★ 281same name
- atelier-fashion/adlc-toolkit★ 171same name
- jvm-skills/jvm-skills★ 140same name
- jh941213/my-cc-harness★ 126same name
86 more not listed
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 repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bootstrapSkill
- commitSkill
- dispatchSkill
- docs-digestSkill
- evalsSkill
- explain-codeSkill
- exploreSkill
- fix-testsSkill
- graphSkill
- manual-test-planSkill
- mrSkill
- reportSkill
- review-artifactsSkill
- review-codeSkill
- shipSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. 0 are common, 9 are distinctive, and 11 are very specific to this project.
0
Common
Most of the 79 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
If the request is not clear enough to name a change, ask — open-ended, no preset options:
- Very specific: line 45
bug-fix: when the request matches fix, regression, broken, crash, 500, error, hang, leak, a stack trace, or an issue reference.
- Distinctive: line 47
If bug-fix, gate the proposal on evidence: Before creating any artifact, require both:
- Very specific: line 52
Do not run openspec new change until both exist.
- Very specific: line 80
Prefer a durable handoff over re-deriving discovery from chat.
- Distinctive: line 85
Read the matched brief first: Prefer its recommendations over re-exploring.
- Very specific: line 87
If suggested_change_name is set and the user gave no name, use it.
- Distinctive: line 116
If a change with that name already exists, ask whether to continue it or start a new one.
- Distinctive: line 141
Read completed dependency artifacts before writing a new one.
- Very specific: line 142
Write to resolvedOutputPath, using template as the structure.
- Very specific: line 143
contextandrulesconstrain you; they are not content: Never copy <context>, <rules> or <project_context> blocks into the artifact. - Very specific: line 148
Invariant sweep: If the change touches a shared or derived value, tasks.md must include a task per consumer.
- Distinctive: line 149
Pinned versions: If the design names a dependency without a version, ask for it.
- Distinctive: line 150
Genuine ambiguity: Ask when it blocks a correct proposal.
- Very specific: line 156
Default grouping is the numbered section (1.x share a wave, 2.x share the next).
- Distinctive: line 159
Start a new numbered section only when a later set of tasks needs the previous section's output to already exist.
- Very specific: line 185
Write openspec/changes/<name>/decisions.md.
- Distinctive: line 194
Check the file rather than trusting that you wrote it well:
- Very specific: line 219
Run /interlock:review-artifacts against the change.
- Very specific: line 250
If the user passed --continue, Read ${CLAUDE_SKILL_DIR}/continuity.md and follow it.
“Common” is measured: kept by at least 6 in 10 of the 79 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Turn an intent into a reviewed change that is ready to implement — and then stop.
This skill writes specifications. It does not write code. By default it does not run /interlock:ship either: the gap between this skill and that one is the deliberate human checkpoint, because a spec is the cheapest place to catch a wrong idea, so that is where a person looks. --continue is an opt-in that trades that read for speed on changes a machine can prove are narrow — if passed, Read ${CLAUDE_SKILL_DIR}/continuity.md. Without the flag, nothing here bridges the gap.
This skill composes stock OpenSpec rather than replacing it. Artifact scaffolding, ordering, templates and validation all come from the openspec CLI, which is the stable contract. What this adds is the discipline around it: evidence gates, explore handoff, invariant sweeps, a decision ledger, and a review before anyone writes code.
| Flag | Effect |
--no-explore | Skip the explore phase (intent is already sharp, or a brief exists) |
--brief <path> | Use this explore brief; skip brief matching |
--tdd | Force test-first task shape: tasks.md leads with a failing-test section, later sections make it green |
--no-tdd | Force standard implementation-first shape; no leading red section. Never relaxes a bug fix's repro-first task |
--continue | Advanced. After a clean artifact review, Read ${CLAUDE_SKILL_DIR}/continuity.md — ask interlock ready whether the checkpoint may be skipped, and ship if it says yes |
--continue --force-checkpoint | Opt back out mid-flight. Always stops at the checkpoint, whatever readiness would have said |
1. Establish intent
If the request is not clear enough to name a change, ask — open-ended, no preset options:
"What change do you want to work on? Describe what you want to build or fix."
Derive a kebab-case name from the answer ("add user authentication" → add-user-auth). Do not proceed without understanding what the user wants.
1a. Classify: feature or bug fix
bug-fix when the request matches fix, regression, broken, crash, 500, error, hang, leak, a stack trace, or an issue reference. feature otherwise.
If bug-fix, gate the proposal on evidence. Before creating any artifact, require both:
- Real log output or error message — pasted, or a path to it.
- A reproduction — a failing test path, or a command that triggers the bug.
Do not run openspec new change until both exist. If the user pushes back: "A repro is required so the fix has a pass/fail signal — without it we're fixing a symptom."
A bug-fix tasks.md must:
- Land the failing repro test as its first task.
- Constrain later tasks to the root cause only. No opportunistic renames, refactors or tidy-ups — those are a separate change.
- "Root cause only" excludes unrelated cleanup. It does not exclude other readers of the same invariant. If the root cause is a shared or transformed value — a normalized identity, a cache or dedup key, a canonicalized field — then every consumer still reading the raw form is part of this fix. Enumerate them per
${CLAUDE_PLUGIN_ROOT}/shared/INVARIANT-SWEEP.mdand give each a task. Fixing one call site and leaving its siblings on the raw form is exactly how the original bug survives its own fix.
Decide the task shape
Two shapes exist, and this picks the one §3 writes:
- standard — tests live inside the section that implements the behaviour they cover.
- TDD — a leading section of failing tests, then implementation that makes them pass.
Resolve in this order:
--tddor--no-tddwins. Both passed → ask which one. Do not guess between two explicit instructions that contradict each other.- Neither passed → behaviour-critical work gets TDD, everything else gets standard. Behaviour-critical means the change has a pass/fail core a test can pin before the code exists: a pure function, an algorithm, a parser, a transform, a state machine, or a shared or derived invariant of the kind
${CLAUDE_PLUGIN_ROOT}/shared/INVARIANT-SWEEP.mdsweeps. Plumbing, wiring, config, prose and scaffolding are not — those get standard. When a change is part core and part plumbing, judge the part the change is about, not the part with the most files. - A bug fix is already test-first and stays that way. §1a's repro-first task is not the TDD shape and is not negotiable.
--no-tddsuppresses the leading red section for the rest of the fix and never relaxes the repro;--tddon a bug fix adds nothing the repro rule did not already require.
Announce the call in one line before creating any artifact — the shape, and the reason:
task shape: TDD (pure transform with a pass/fail core) — section 1 is failing tests.
The shape is transient. It is not written into openspec/changes/<name>/ as a field and no later skill reads it back. What survives the run is the shape of tasks.md itself, which is the only thing ship consumes.
1b. Load the explore brief
Prefer a durable handoff over re-deriving discovery from chat. See ${CLAUDE_PLUGIN_ROOT}/shared/EXPLORE-BRIEF.md.
--brief <path>given → read that file, skip matching.- Otherwise:
ls -t .claude/handoff/explore-*.md 2>/dev/null | head -5 - Pick the newest brief whose
## Metatopic, slug, orsuggested_change_nameoverlaps the request (or the newest one if only a single recent brief exists and the topic is vague). - Read the matched brief first. Prefer its recommendations over re-exploring; reopen code only for gaps or contradictions.
- From
## Pending Clarifications, ask only what genuinely blocks a correct proposal. Skip anything already covered by## Assumptions Madethat the user does not contest. - If
suggested_change_nameis set and the user gave no name, use it.
No matching brief is fine — but if none exists and --no-explore was not passed, run /interlock:explore --autonomous now and require a decision-oriented brief: conclusions, a recommended direction, options with a winner, assumptions, pending clarifications, and only cited file:line spans. Do not ask for an inventory of every file touched. Use the brief it writes. A spec built on unexplored ground is the most expensive kind to get wrong.
1c. Check the ground is current
interlock drift --jsonNever blocks, never branches. It exits 0 whatever it finds; read it and move on.
Two findings matter before exploring, because both mean openspec/specs/ describes something other than the code you are about to spec against:
unarchived— changes that finished but were never archived, so the living specs never received their deltas. Name them and the command (openspec archive <name>).stale.broken— a living spec cites a file that no longer exists. Evidence, not inference, and worth one line even when it looks unrelated: a spec pointing at a deleted file is the clearest sign the area you are about to spec has already moved.
Then continue. Do not stop, do not ask, and do not archive on the user's behalf: archiving rewrites the living specs, which is a decision that belongs to whoever merged the change.
stale.aging is inferred from dates and rarely worth interrupting a spec run for — mention it only if it names a spec directly relevant to this change. Orphan detection needs a diff, which this skill does not have; ignore that field here.
2. Create the change
openspec new change "<name>"If a change with that name already exists, ask whether to continue it or start a new one.
3. Generate artifacts, CLI-driven
openspec status --change "<name>" --jsonParse applyRequires (artifacts needed before implementation), artifacts (each with status and dependencies), and the path context — planningHome, changeRoot, artifactPaths, actionContext. Use those paths; never assume repo-relative locations.
Then loop, in dependency order, over every artifact that is ready:
openspec instructions <artifact-id> --change "<name>" --json | python3 -c '
import json,sys
d=json.load(sys.stdin)
keep=("instruction","template","resolvedOutputPath","context","rules")
print(json.dumps({k:d[k] for k in keep if d.get(k)}, separators=(",",":")))
'Filter each ready artifact independently; do not dump the full instructions response or prefetch every artifact. The compact response carries instruction (schema guidance), template (the structure to fill), resolvedOutputPath, and non-empty context / rules.
- Read completed dependency artifacts before writing a new one.
- Write to
resolvedOutputPath, usingtemplateas the structure. contextandrulesconstrain you; they are not content. Never copy<context>,<rules>or<project_context>blocks into the artifact.- Re-run
openspec status --change "<name>" --jsonafter each write; stop when everyapplyRequiresartifact isdone.
Gates while generating
- Invariant sweep. If the change touches a shared or derived value,
tasks.mdmust include a task per consumer. Useinterlock-graph consumers <symbol>for the structural pass, then grep for string-keyed readers. See${CLAUDE_PLUGIN_ROOT}/shared/INVARIANT-SWEEP.md. - Pinned versions. If the design names a dependency without a version, ask for it. Do not gap-fill a version number — a plausible-looking wrong pin is worse than an open question.
- Genuine ambiguity. Ask when it blocks a correct proposal. Otherwise take a reasonable default to keep momentum. Either way, write the row — see below.
Task shape for ship
tasks.md is the wave plan. A numbered ## N. section is one wave. Follow these four rules when writing it:
- Default grouping is the numbered section (
1.xshare a wave,2.xshare the next). - Sequential same-file work is one checkbox — not one checkbox per TDD beat, comment move, or trap on the same production path.
- A task that needs another task's output when the two edit different files is a
dependsOnedge, not a new section. The classifier reads the task text and emits that edge; write the dependency into the task so it can. Incrementing the section to order one cross-file dependency serializes every task in the new section that is independent of it — the edge orders only the dependent task, so its independent siblings keep sharing a batch. - Start a new numbered section only when a later set of tasks needs the previous section's output to already exist. Independent files that do not need each other belong in the same section so they can share a batch.
These rules apply even when openspec instructions tasks injects no rules.tasks. Path collisions inside a section are the planner's problem (paths), and a cross-file dependency is an edge (dependsOn) — neither is a reason to increment the section number.
Never split a section to buy parallelism. The planner packs low-tier siblings in one section into a single lane run by one agent, and a small change may ship solo — the whole change implemented in order by one agent — so a section written wide does not become a spawn per checkbox. Write the sections the work actually has; how many agents run them is the planner's decision, made under caps interlock limits publishes.
Where the tests go
The four rules above are about grouping and hold under either shape. The shape decided in §1a decides only where the tests sit inside that grouping.
- standard — unchanged from the four rules: a test checkbox lives in the section that implements the behaviour it covers.
- TDD —
## 1.is the failing-test wave. Title itFailing tests first, and have each later section that satisfies it say so:(make §1 green). Cover the transform boundary the invariant sweep found, not just the happy path.
Rule 2 still binds inside the red wave: the failing suite is one checkbox, not one checkbox per TDD beat. A leading test section is a wave, not a licence to split. One checkbox per assertion serializes the change and buys nothing — the anti-split rule was never about disliking TDD, it was about the planner packing what you wrote.
The heading is the contract with ship, so write it exactly. /interlock:ship reads Failing tests first off the ## 1. heading and plans that section as a leading red wave: its tests run first instead of deferring to the trailing test wave, in solo mode too. A reworded heading is not a smaller signal, it is no signal — the change plans as an ordinary one, and nothing fails to tell you so except the plan preview, which will not say RED.
Two things follow from how ship treats that wave:
- The red wave's own inter-wave check is skipped, by design. The suite is supposed to be failing there, so checking it would spend the run's fix attempts trying to repair tests that were just written on purpose. The next section's check is the gate: by then the implementation exists, and a still-red suite is a real failure. So the section that makes §1 green must be a section, not a later batch of §1 — which the numbered-section rule already gives you.
- A dependency from an implementation task onto the red wave is now legal, where it used to fail the plan outright. Prefer to leave it out anyway:
## 1.already runs before## 2., so(make §1 green)as prose is enough, and an edge buys ordering the sections had already.
One consequence worth stating at the checkpoint: because the red wave's check is skipped, a run cannot tell a genuinely failing suite from one that already passed. Tests that pass before the implementation exists are not pinning new behaviour — that is a review question, and §6 flags it as one.
3a. The decision ledger
Write openspec/changes/<name>/decisions.md. The format, the two classes, and what makes a row invalid are the contract in ${CLAUDE_PLUGIN_ROOT}/shared/DECISION-LEDGER.md — read it and follow it; do not restate it here or invent a third class.
What this skill owes the ledger:
- Every ambiguity that surfaces mid-flight becomes a row, before it is acted on. Never resolve an ambiguity silently in the design prose. A decision that exists only in chat does not exist.
- Carry forward what explore wrote. Transcribe the rows from the brief's
Pending ClarificationsandAssumptions Made— ids, questions and classes as explore assigned them — as the first write to this file. Do not start a fresh ledger and do not renumber. agent_resolvedis a claim, andinterlock ledgeraudits all three parts of it. It requires a written resolution, evidence a reader can follow, and the row's id appearing indesign.md. Each is checked: an empty resolution, an empty evidence cell, a hedge that asserts nothing (obvious,standard practice,see above— the whole cell, not a word inside a real citation), or an iddesign.mdnever mentions all make the row invalid, and an invalid row blocks exactly likeneeds_human. A missingdesign.mdmakes every reference unresolvable rather than resolving all of them.- When in doubt,
needs_human. A wrongagent_resolvedships an unreviewed product decision; a needlessneeds_humancosts one question.
Check the file rather than trusting that you wrote it well:
interlock ledger "<name>"It exits non-zero when the ledger blocks — a needs_human row remains, a row is invalid, or the ledger is missing entirely. An absent decisions.md is a failure of the audit, not an empty result: "no rows" reads as "nothing needs a human", which is the one conclusion a file that was never written cannot support. The output distinguishes missing from present and empty from unparseable.
A blocking ledger with rows in it is not a failure of this skill: an honest blocking ledger is the correct output for a change that hit a real product question. It is only a failure if the questions never got written down.
4. Validate
openspec validate
interlock validate "<name>"openspec validate checks schema conformance. interlock validate checks the flow's own preconditions — all three artifacts present and non-empty, tasks.md actually containing checkbox tasks — and exits non-zero when the change is not implementable. Fix anything it reports before continuing.
5. Gate: artifact review
Run /interlock:review-artifacts against the change.
- Blockers → HALT. Report them and stop. Do not proceed to ship, and do not "fix and continue" silently: a blocker at this gate means the spec was wrong, and the user should see that.
- Clean → record it and stop at the checkpoint.
# blockers found
interlock autonomy record review-artifacts --blockers <n>
# clean
interlock autonomy clean review-artifacts explore specA clean gate credits explore and spec too; a blocker resets them. That is what stops this skill earning autonomy by emitting shallow specs — the downstream gate blames whoever produced the bad artifact.
Keep the blocker and warning counts. Continuity needs them, and it will not accept a review it cannot see.
6. Hand off to the human
This is where the default run ends. Close with:
- Change name and artifact paths
- What the change does, in two or three lines
- Assumptions made and any pending clarifications
- Task count, and the wave shape if it is obvious
- The task shape, and — when it is TDD — that ship will run section 1's failing tests first and skip that wave's check, so nobody is told whether the suite was genuinely red. Ask the reviewer to confirm the leading tests actually fail against the current code; a test that passes before the implementation exists pins nothing.
- Anything the artifact review flagged below blocker severity
Then say plainly: review the spec, and run /interlock:ship when it looks right.
If the user passed --continue, Read ${CLAUDE_SKILL_DIR}/continuity.md and follow it. Do not print a spec GOAL MET line on that path — if readiness launches ship, finish() prints GOAL MET: interlock ship.
Without --continue, the run ended here. The checkpoint waits for a human, so tell them it is waiting:
interlock notify checkpoint "<change-name>"That is a no-op that prints push: not configured and exits 0 when no topic is set, so run it unconditionally and never branch on the result.
Then print this greppable line so a session /goal can stop instead of wandering into implementation:
GOAL MET: interlock spec stopped at the checkpoint.
Do not run ship. Do not offer to "just start on the first task". The checkpoint is the point. Do not call /goal from this skill — a /goal does not skip the checkpoint and does not start ship. Continuity's only opt-in skip is --continue plus interlock ready.
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.

