implement-specs
Skill18 starsChanged 3 months agoMITView on GitHub
PHASE 2 (Build) of the spec-driven pipeline — runs AFTER specs + ADRs are approved. Loads the finalized OpenSpec change, implements it via the recommended tech-expert skills, runs spec-loop (implement → independent review vs specs → fix → repeat until matched), quality gate, archives, and auto-records context to memory. Use when the user says specs/ADRs are final and wants the code built. Triggers on "implement-specs", "/implement-specs", "specs are final, build it", "implement the change", "build the approved change".
3 other projects use a version of this.
Adopted by
Most recently taken up by
- warpdotdev/common-skillstheir own version, first seen Sep 16, 2026
- zhouycheng/skillstheir own version, first seen Sep 4, 2026
- thesammykins/skillstheir own version, first seen Aug 14, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- warpdotdev/common-skills★ 604same name
- thesammykins/skills★ 2same name
- zhouycheng/skills★ 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.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
If no change exists, or specs are clearly still draft/empty → stop and tell the user to run /make-plan first.
- Distinctive: line 24
If tasks are already partly checked → resume from the unchecked ones (don't redo finished work).
- Very specific: line 27
Use the experts recommended in the change.
- Very specific: line 41
When spec-loop reports success and quality is green, run openspec-archive-change / /opsx:archive to fold the delta specs into …
- Very specific: line 45
Write/update ONE memory file: the logic decision(s) + why (link the ADR), affected flow/files at a high level, gotchas.
- Very specific: line 46
Only what code/git/specs don't already make obvious — reasoning, trade-offs, cross-cutting effects.
- Very specific: line 47
Dedupe: update a related memory instead of duplicating.
- Distinctive: line 48
If stopped early, record what's done, what's left, and the blocker so the next session resumes.
- Distinctive: line 55
Never fake completion: spec-loop's independent reviewer must confirm before any task is checked off.
“Common” is measured: kept by at least 6 in 10 of the 3 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
implement-specs — Phase 2: Build the approved change
Runs after /make-plan (Phase 1) produced specs + ADRs and a human approved them. The invocation itself is the approval signal. This phase turns finalized specs into working code via spec-loop, then archives and records context. It does not re-do planning or invent requirements — the specs/ADRs are the contract.
Sub-skills you compose:
spec-loop— implement → independent fresh-subagent review vs FINAL specs → fix → repeat until matched (cap 6)- the recommended expert skills from the change (e.g.
fullstack-dev-skills:nestjs-expert,:postgres-pro,nextjs-developer,:typescript-pro) openspec-archive-change//opsx:archive— fold deltas intoopenspec/specs/
Step 0 — Read the project CLAUDE.md, then locate & load the change
Always read the project's CLAUDE.md first (the root one, and any nested CLAUDE.md in the directories you'll touch) before writing any code — it is the source of truth for this repo's conventions, flow, commands, and do/don't rules (e.g. enums-not-strings, orgId scoping, "don't run tsc/prisma yourself"). Everything spec-loop implements must follow it. If it conflicts with a spec, surface the conflict instead of silently picking one.
Then locate the change:
openspec list --jsonResolve the active change (if several, ask which). Then load the finalized contract: proposal.md, every delta spec, tasks.md, the ADR(s) (docs/adr/* or the ## Decisions (ADR) section of design.md), and the ## Implementation experts recommendation. Read openspec status --change <name> --json for paths.
- If no change exists, or specs are clearly still draft/empty → stop and tell the user to run
/make-planfirst. - If tasks are already partly checked → resume from the unchecked ones (don't redo finished work).
Step 1 — Confirm experts
Use the experts recommended in the change. If none were recorded, run task-analyzer's Steps 1-4 and pick a primary + ≤2 supporting yourself from the skills available in this environment. Announce them in one line.
Step 2 — Implement via spec-loop (hands-off)
Invoke spec-loop for the change, telling it which expert skills to implement as. Two application modes — pick per task size:
- Load guidance (default, small/medium): invoke the expert skill(s) via the Skill tool so their patterns are in context, then implement following them + the ADRs + the host CLAUDE.md.
- Parallel build (large / disjoint surfaces): the
Agenttool'ssubagent_typemust be a real agent type (general-purpose,Explore, …) — it is NOT a Skill, so passing an expert's name (e.g.fullstack-dev-skills:nestjs-expert) silently no-ops. Instead dispatch onegeneral-purposeagent per disjoint file-set and instruct each agent to (a) load the relevant expert Skill itself via the Skill tool, (b) read the projectCLAUDE.md+ the specs, then (c) build only its assigned, non-overlapping files. Lock any shared contract (a component/interface both depend on) before dispatching, so parallel agents code against it. Integrate the results. spec-loop loops implement → self-verify in order (spec-loop step 1b: e2e tests if any → unit tests → API calls for a backend change → browser + screenshot for a UI change) → independent fresh-context review against the finalized specs and the ADR decisions → fix gaps → repeat (cap 6), then runs the quality gate. Browser verification (spec-loop step 2b) exercises any visible/interactive UI requirement in the user's logged-in browser viabrowser-harness— screenshot + interact → judge the live behavior against the scenario, saved under<project-root>/screenshots/<change>/(git-ignored) and actually read back before the requirement counts as satisfied. The reviewer stays separate from the implementing experts so it never rubber-stamps. Do NOT babysit with check-ins — that's the point.
Honor the ADRs: if implementation reveals an ADR decision is wrong or infeasible, stop and report — do not silently deviate. A changed decision means going back to /make-plan to update the ADR/specs.
Step 3 — Quality gate
spec-loop already ran this gate internally (its step 4) as part of the loop in Step 2 — this is the outer confirmation, not a separate pass. Re-run the project's checks if present (npm run lint, build, tests — detect from package.json / CLAUDE.md) and fix anything red. Respect host CLAUDE.md (e.g. don't run tsc/prisma yourself in this workspace). A passing reviewer with a red quality gate is NOT done — and neither is a UI requirement whose screenshots (under screenshots/<change>/) were captured but never actually reviewed.
Step 4 — Archive
When spec-loop reports success and quality is green, run openspec-archive-change / /opsx:archive to fold the delta specs into openspec/specs/. If spec-loop hit its cap or an ADR/spec conflict, skip archiving and hand back to the user with the blocker.
Step 5 — Capture session context (AUTOMATIC — do not skip)
Record the non-obvious outcome to the project auto-memory (<project>/memory/ + MEMORY.md), following its rules exactly:
- Write/update ONE memory file: the logic decision(s) + why (link the ADR), affected flow/files at a high level, gotchas. Type
project(orfeedbackfor a working-preference correction). Absolute dates. - Only what code/git/specs don't already make obvious — reasoning, trade-offs, cross-cutting effects. No code-structure dumps or git-diff restatements.
- Dedupe: update a related memory instead of duplicating; link with
[[name]]; add a one-line pointer inMEMORY.mdfor new files. - If stopped early, record what's done, what's left, and the blocker so the next session resumes.
Step 6 — Report
Tight summary: change → experts used → specs satisfied (and where) → ADRs honored → dead code pruned (symbols the change orphaned) → quality gate result → archived → memory note written (filename).
Guardrails
- The specs + ADRs are the contract: implement exactly them, no scope creep, no guessing on ambiguity (stop and ask).
- Never fake completion: spec-loop's independent reviewer must confirm before any task is checked off.
- Announce each phase transition in one line.
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.

