implement
Skill187 starsChanged 5 months agoMITView on GitHub
Use to implement a feature from its tasks.json with test-driven development — writes a failing test first, makes it pass, refactors, gates, and commits per task. Triggers on "implement {slug}", "build {slug}", "TDD {slug}", "code up the tasks for {slug}", "/sdd:implement {slug}", "імплементуй {slug}", "реалізуй фічу {slug}", "напиши код за задачами". Reads docs/features/{slug}/tasks.json + the upstream artifacts, detects the repo's test/lint/vet commands stack-agnostically, builds a dependency DAG, and runs one of three modes — sequential single-agent TDD, an agent team (TeamCreate), or a dynamic Workflow — chosen from settings + DAG shape with graceful fallback. Hard-refuses if tasks.json is missing.
191 other projects use a version of this.
Adopted by
Most recently taken up by
- revisit-studies/studytheir own version, first seen Nov 9, 2026
- dz114879/skillstheir own version, first seen Nov 8, 2026
- Dimon94/dveritytheir own version, first seen Nov 8, 2026
- Dimon94/skillstheir own version, first seen Nov 8, 2026
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 2026
- miklschmidt/archboardtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use setup-ts-deep-modules, ask-matt 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.
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 43 projects that use this
GoogleSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 91 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 50 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 88 projects that use this
ryotaroh180105Skillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 42 projects that use this
GoogleSkillto-spec
Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 168 projects that use this
- +3 more from google
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- foambubble/foam★ 17ksame name
- formbricks/formbricks★ 13ksame name
- ArcReel/ArcReel★ 6.3ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- fallow-rs/fallow★ 5.3ksame name
- withcoral/coral★ 4.9ksame name
- bestofjs/bestofjs★ 3.1ksame name
181 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 repository22 other files it gives its agents.
- apiSkill
- clarifySkill
- classify-sizeSkill
- configSkill
- data-modelSkill
- decide-adrSkill
- designSkill
- design-systemSkill
- fixSkill
- glossarySkill
- interviewSkill
- plan-testsSkill
- reviewSkill
- roadmapSkill
- scaffoldSkill
- screensSkill
- sequencesSkill
- shipSkill
- specifySkill
- surveySkill
- tasksSkill
- ux-flowsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 171 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Read for context (the agents read these directly, not via paraphrase): spec.md (AC), data-model.md + the staged migrations under …
- Very specific: line 36
Preconditions: Verify tasks.json exists and parses.
- Distinctive: line 38
Detect commands: Run the stack-agnostic cascade (settings override → Makefile → package scripts → language manifests → Docker probe for the …
- Very specific: line 40
Pick the mode: Run the decision tree (below.
- Very specific: line 66
Every task in tasks.json is either committed (test-first, gate-clean, SDD-Task/SDD-AC trailers) or explicitly reported as dropped/blocked …
- Distinctive: line 75
Weakening a test to make it pass: If the AC is wrong, ask a human and fix the AC.
“Common” is measured: kept by at least 6 in 10 of the 171 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
Skill: implement
The implementation engine. It turns tasks.json into committed, tested code through a strict TDD cycle per task — SELECT → RED → GREEN → REFACTOR → GATE → COMMIT — and orchestrates that cycle in one of three modes (sequential / agent-team / dynamic-workflow) picked by an unambiguous decision tree. Everything is stack-agnostic: the test, lint, and vet commands are detected, never hard-coded.
This file is the spine. Each step delegates to a file in references/.
Owner
Tech Lead drives; the engine runs the cycle. The three subagents ship with the plugin: test-author (RED), implementer (GREEN/REFACTOR/GATE), reviewer (read-only review).
Inputs
<slug>— feature slug.- Gate (hard refuse):
docs/features/<slug>/tasks.json. Missing → «runtasks <slug>first». - Read for context (the agents read these directly, not via paraphrase):
spec.md(AC),data-model.md+ the staged migrations underdocs/features/<slug>/migrations/(alayer: migrationtask promotes these into the livemigrations/tree — see./references/inputs.md),contracts/openapi.yaml,test-plan.md,sad.md, Acceptedadr/. - Settings:
.claude/sdd.local.md— created with documented defaults by whichever of the six creating skills runs first (normallyspecifyat the backbone start;implementcreates it too if you jump straight here) per../_shared/settings-file.md; values are tuned only by../config/SKILL.md. Which keys this engine reads →./references/settings.md.
Protocol
- Preconditions. Verify
tasks.jsonexists and parses; load the upstream artifacts list. Detail →./references/inputs.md. - Ensure the settings file (first thing, after this skill's own gate). If
.claude/sdd.local.mdis absent, create it now from the canonical template — documented defaults + the self-documenting body — and patch.gitignore; if it exists, read it and never overwrite. The one procedure lives in../_shared/settings-file.md. Creating is unconditional; changing values is only ever offered byconfig. Say one line: «.claude/sdd.local.mdcreated with documented defaults —/sdd:configto tune it». Which keys this engine then reads, and how model + effort resolve at dispatch →./references/settings.md. - Detect commands. Run the stack-agnostic cascade (settings override → Makefile → package scripts → language manifests → Docker probe for the integration tier) to resolve unit / integration / lint / vet commands. Print what was detected. →
./references/command-detection.md. - Build the DAG + resume. Parse
tasks.json, validatedepsis acyclic, topologically sort into phases (Kahn). Computetask_count,longest_chain,parallel_width. Mark serialization lanes (layer: migration; tasks with overlappingfiles_hint). Read each task'sstatus(absent =todo):done→ skip;in_progress/review→ reset totodo(never committed);blocked→ ask retry or leave →./references/tdd-loop.md§Status protocol. - Pick the mode. Run the decision tree (below; full form →
./references/decision-tree.md). Apply the guards. - Generate the run-plan. Sequential → an ordered task list. Team → a shared TaskList with the full task text in each body. Workflow → a generated
Workflowscript (DAG → Kahn phases → fan-out pipeline → oneclose-layerwriter per layer). →./references/team-exec.md/./references/workflow-exec.md. When the session hasTaskCreate/TaskUpdate, also create one native task perT<n>— a mirror of the status files, never their source; no such tools → skip silently. - Banner + branch + roadmap. Print the active mode and the settings that drove it:
mode=<…> tdd=<…> isolation=<…> parallel=<n> integration=<…>. The user sees exactly how the engine will behave before it acts. Then settle the branch perbranch_strategy(./references/inputs.md§Repo state). Then, ifdocs/roadmap.mdexists and has a step for this feature, set that step'sStatus: building(unless it already is) and commit it alone per../_shared/write-and-commit.md—implement: <slug> roadmap.md building(honoursauto_commit: offlike every other commit). - Execute in the chosen mode. Every task runs the TDD cycle →
./references/tdd-loop.md, and every transition is written to disk as it happens — status + step in the task file,tasks/tracker.mdandtasks.json(+ the native task list when present), by exactly one writer per mode (engine / lead /close-layer) → §Status protocol there. Alayer: migrationtask first promotes its staged migration(s) (docs/features/<slug>/migrations/<NN>_*) into the livemigrations/tree — assigning the real sequence number / timestamp per the repo's convention, in ordinal order — then applies + reverts them; detail →./references/inputs.md. - Per-task gate + commit. After GREEN+REFACTOR: unit + (integration if available) + lint + vet must be clean, then commit task-scoped with trailers
SDD-Task: <id>andSDD-AC: <id>(one per satisfied AC). Tasks in one compile-coupled lane (shared contract file infiles_hint) pass one shared gate and one commit carrying every task's trailers — the sanctioned exception in./references/tdd-loop.md§COMMIT. The task's status files are set todonebefore the commit and ride in it. Escalation orstop_on_red→blockedwith the reason (dependents too) →./references/escalation.md. - Summary + hand off. Report covered AC, commits made (with
SDD-Tasktrailers), any task dropped/blocked, and the per-task gate results. Then emit the stage-handoff block per../_shared/handoff.md— What I did (covered AC, commits with short SHAs +SDD-Tasktrailers, gate results, tasks leftblockedwith reasons) + Review (the committed diff +tasks/tracker.md) + Run next (/clear, then/sdd:review <slug>— a clean-context pass over the whole diff), then/sdd:ship <slug>. In team mode thereviewermay also run per-task, but the authoritative independent review of the whole change lives in thereviewskill —implementdoes not self-certify.
Decision tree (compact)
parallel_eligible := isolation==worktree AND max_parallel>1 AND parallel_width>=2
AND (size in {M,L,XL} OR task_count>=4)
if team_mode AND parallel_eligible: → AGENT TEAM (TeamCreate) over the DAG
elif workflow_mode=="auto" AND parallel_eligible AND Workflow-available: → DYNAMIC WORKFLOW
else: → SEQUENTIAL single-agent TDD (topo order)Guards (apply before dispatch): team_mode but not eligible → warn + downgrade to the next mode. max_parallel>1 with isolation: inplace → clamp parallel to 1 (no two agents edit one tree). workflow_mode: off → never generate a Workflow. tdd: false → skip RED (warn loudly — you lose the safety net). require_integration: always but Docker absent → BLOCK before dispatch; auto → run unit-only and mark integration NON-red; never → skip the integration tier. Full table → ./references/decision-tree.md. Graceful degrade: if Workflow/TeamCreate is unavailable at runtime, fall through to sequential.
TDD cycle (per task)
SELECT → RED → GREEN → REFACTOR → GATE → COMMIT. The RED step is load-bearing: write the test first, run it, and classify the first run — GOOD red (assertion fails / unimplemented) vs BAD red (the test itself won't compile → fix the test) vs false-pass (green immediately → the test is too weak, strengthen it) vs NON-red (skipped because Docker is absent → governed by require_integration, counts as neither red nor green). Quote the failing line before writing any production code. Escalation on persistent red → ./references/escalation.md: more-capable model → retry → split the task → if the test encodes a wrong AC, ask a human (never weaken the test) → rollback to the last green. stop_on_red decides halt vs drop-and-continue (dependents auto-block).
Definition of Done
- Every task in
tasks.jsonis either committed (test-first, gate-clean,SDD-Task/SDD-ACtrailers) or explicitly reported as dropped/blocked with the reason. - Unit gate green; integration green where available (or NON-red recorded with the policy reason); lint + vet clean per the detected commands.
- The active mode + settings were printed in the banner before execution.
tracker.md, every task file andtasks.jsonreflect the final status + step of every task (they were updated at each transition, not only at the end); the summary reports the gate results and hands off toreview(the independent review gate) —implementdoes not self-certify the whole change.- The per-task GATE (unit + integration + lint + vet) is this skill's structural self-check (
../_shared/self-check.md); its results are reported in the handoff.
Anti-patterns
- Code before the test. RED first, always (unless
tdd: false, which warns). - Weakening a test to make it pass. If the AC is wrong, ask a human and fix the AC; never edit the test to be less strict.
- Skipping the RED classification. A false-pass that looks green hides a useless test.
- Parallel agents editing one working tree. Parallelism requires worktree isolation — the guard clamps it.
- Committing with a red or skipped gate and calling it done. A NON-red integration tier must be labelled, not hidden.
- Spawning a team for <4 tasks — coordination overhead exceeds the gain; the eligibility check forbids it.
- Claiming integration passed when Docker was absent. Report NON-red honestly.
- Status only at the end. A tracker that jumps from
todotodonetells nobody where a crashed run stopped. Write each transition as it happens. - Two writers of the status files. Teammates and parallel workflow stages never write them; the engine / lead /
close-layerdoes.
References & template
inputs.md · settings.md · command-detection.md · decision-tree.md · tdd-loop.md · team-exec.md · workflow-exec.md · escalation.md — all in ./references/.
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.

