implement-spec
Skill8 starsChanged 2 months agoMITView on GitHub
Execute a full specification across task tickets using isolated subagent branches into a unified PR. Use when a specification with associated task-graph tickets is ready to implement across multiple subagents or isolated worktrees, and the goal is a complete pull request on a single branch — even if the user says \"build the whole spec\". Do NOT use for single isolated bug fixes or exploratory coding without tickets.
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 87 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Strict Worktree Isolation: Every implementer subagent executes in its own dedicated, isolated Git worktree and branch to prevent file …
- Very specific: line 18
Unified Code-Review Quality Gate: Run code-review across the unified PR branch before marking it ready for human review, fixing all …
- Distinctive: line 53
Action: Read the specification and associated tickets to compute the initial unblocked frontier.
- Very specific: line 54
Key Point: Create a dedicated PR branch (feat/<spec-slug>) and draft pull request linking all target tickets.
- Distinctive: line 66
Action: When an implementer completes, merge its branch into the PR branch, run the test suite, and delete the worktree.
“Common” is measured: kept by at least 6 in 10 of the 87 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 Spec
Orchestrate the parallel implementation of an approved specification and its DAG task graph across isolated subagent branches, culminating in a single unified, code-reviewed pull request.
Core Invariants
- DAG Frontier Concurrency: Implementer subagents work exclusively on unblocked frontier tickets; merge completions immediately unlock newly unblocked tickets.
- Strict Worktree Isolation: Every implementer subagent executes in its own dedicated, isolated Git worktree and branch to prevent file collision.
- Context Pointers Exclusively: Communicate to subagents strictly via context pointers (spec path, ticket IDs, ADRs); avoid dumping giant walls of text.
- Dedicated Merger Verification: Merging completed worktree branches into the main PR branch is handled by a merger subagent with full test suite verification.
- Unified Code-Review Quality Gate: Run
code-reviewacross the unified PR branch before marking it ready for human review, fixing all findings in a final pass.
Architecture & Map of Content (MOC)
[ Approved Spec & DAG Tickets ] ──► [ Create PR Branch ] ──► [ Parallel Worktree Subagents ]
│
┌────────────────────────────────┴────────────────────────────────┐
▼ ▼
[ Ticket #01 Worktree ] [ Ticket #02 Worktree ]
- Isolated branch - Isolated branch
- Red/Green TDD cycle - Red/Green TDD cycle
│ │
└────────────────────────────────┬────────────────────────────────┘
▼
[ Merge & Verify on PR Branch ]
│
▼
[ Code Review & Worktree Cleanup ]| Role | Responsibility | Execution Mode |
| Exploration Agent | Pre-read external documentation and shared schemas | Background subagent (research) |
| Implementer Agents | Execute single tickets inside isolated worktrees | Parallel subagents (implement) |
| Merger Agent | Merge feature branches into PR branch & verify tests | Serial integration pass |
| Review Gate | Run two-axis code review on final PR branch | skills/code-review/SKILL.md |
Step-by-Step Procedure (TWI)
Step 1: Ingest Task Graph & Initialize PR Branch
- Action: Read the specification and associated tickets to compute the initial unblocked frontier.
- Key Point: Create a dedicated PR branch (
feat/<spec-slug>) and draft pull request linking all target tickets. - Why: Linking tickets upfront ensures automated status tracking and traceability.
Step 2: Dispatch Parallel Implementer Subagents
- Action: For each ticket on the unblocked frontier, spawn an implementer subagent in an isolated worktree (
.worktrees/<ticket-slug>). - Key Point: Pass context pointers to the spec and ticket without duplicating instructions.
- Inline Checklist:
- Worktrees isolated from main repository workspace
- Implementers follow strict TDD red-green cycle
- Each implementer works on a single assigned ticket
Step 3: Merge Completed Tickets & Advance Frontier
- Action: When an implementer completes, merge its branch into the PR branch, run the test suite, and delete the worktree.
- Key Point: Recompute the task graph frontier to launch newly unblocked tickets immediately.
- Why: Continuous merging keeps integration diffs small and surfaces conflicts early.
Step 4: Run Two-Axis Code Review & Cleanup
- Action: Once all tickets are merged, run
code-reviewonfeat/<spec-slug>. - Key Point: Remediate all Standards and Spec findings before marking the PR ready for human review.
- Why: Comprehensive pre-merge review guarantees production-grade architecture and full spec compliance.
Anti-Rationalization Guardrails
| Tempting Rationalization | Binding Rule | Engineering Rationale |
| "Run all implementers in the same shared working tree." | Mandatory isolated git worktrees per subagent. | Shared workspaces cause file lock contention, overwrites, and git index corruption. |
| "Skip code review since all unit tests passed." | Mandatory two-axis code review on the final PR branch. | Passing tests do not catch architectural smells, Fowler anti-patterns, or missed spec clauses. |
| "Implement blocked tickets before their dependencies merge." | Strictly adhere to the DAG frontier. | Implementing blocked tickets prematurely results in massive merge conflicts and rework. |
Other versions94 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 94
- mattpocock/skills★ 309ksame name
- formbricks/formbricks★ 13ksame name
- ArcReel/ArcReel★ 6ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- withcoral/coral★ 4.9ksame name
- dzhng/jevgrep★ 3.1ksame name
- dzhng/skills★ 1.4ksame name
- a16z/jolt★ 1.1ksame name
- cashew-labs/libretto★ 898same name
- saffron-health/libretto★ 883same name
84 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.
Used alongsideProjects with it also use implement-spec-with-codex, close-spec 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.
dzhngSkillimplement-spec-with-codex
Run [implement-spec](../implement-spec/SKILL.md) with Codex doing the implementation passes while you orchestrate, integrate, and review. Use when the user asks to implement a spec with Codex, or to run implement-spec with Codex as the implementer.
Also in 4 projects that use this
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 4 projects that use this
wolverin0Skillaudit-decisions
Standardize remediation decisions, baseline-policy entries, and legal-review banners for accepted, deferred, or policy-blocked audit findings.
Also in 4 projects that use this
saffron-healthSkillget-pr-reviews
Get nicely formatted output of the last review comments on a PR. Used internally by other skills.
Also in 3 projects that use this
saffron-healthSkillpush-everything
Stage ALL changes in the repository (not just session changes), commit, and push. Use when you need to commit all pending changes.
Also in 3 projects that use this
transitive-bullshitSkillcompare-screenshots
Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.
Also in 4 projects that use this
- +5 more from dzhng
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-data-remediationSkill
- ai-engineeringSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- engineering-workflow-guideSkill
- git-safety-guardrailsSkill
- goalSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- improve-codebase-architectureSkill
- j-spaceSkill
- migrate-to-shoehornSkill
- ml-best-practicesSkill
- prototypeSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- scaffold-exercisesSkill
- setup-engineering-workflowsSkill
- setup-pre-commitSkill
- setup-ts-deep-modulesSkill
- skill-conductorSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- workflow-designerSkill
- writing-beatsSkill
- writing-for-agentsSkill
- writing-fragmentsSkill
- writing-shapeSkill
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.

