Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Execute an implementation plan task-by-task using test-driven development and delegate detail work to subagents. Produce an IMPLEMENTATION.md that records what was built, every deviation from the plan with rationale, and the final test-suite state. Use when asked to implement a plan, execute implementation steps, turn a plan into working code, or produce an IMPLEMENTATION.md.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 67% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 318% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 268% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-22 | ✗→✓ | ▲ Improved | 107% | 0% |
Produce working code that satisfies an implementation plan, plus an IMPLEMENTATION.md that serves as the post-implementation record of what actually happened — every task completed, every test run, every deviation from the plan, and every issue encountered. The document must let a downstream agent (reviewer, verifier, next work unit) pick up without re-reading the diff: it states the final test-suite state, the interfaces that were stabilised, and the gotchas discovered along the way.
The defining discipline — and the commonest violation — is tests first, green before next task, deviations from the plan documented with rationale: every task starts by writing tests that fail for the right reason, every task ends with the full suite green, and every divergence from the plan is captured in the output with a one-sentence why. The commonest failure is moving on to the next task while a test is still red — or silently making a design change that the plan did not call for and leaving the deviation undocumented. Both of those break the chain that downstream review and verification depend on.
PLAN.md in the repo; may also be a document or direct user input. Task ordering, verification criteria, and interface definitions come from here.u<NN> the plan belongs to, if the project organises work in units/<area>/u<NN>/. Auto-discovered from the plan's frontmatter or from the unit folder path. Used in the output frontmatter's unit field.DOMAIN.md, INTERFACES.md, BEHAVIOR.md, or sibling SPEC.mds referenced by the plan. Read on demand when the plan cites them; do not pre-load everything.Implementation proceeds in four phases: task creation, iterative TDD implementation, verification, and documentation.
Read the plan and break it into trackable tasks. Use your judgment on how to split them — the plan's structure is a guide, not a mandate. Each task should be a meaningful, completable unit of work.
Work through tasks following the plan's ordering. For each task, the recommended approach is test-driven development:
Mark each task as completed before moving to the next.
Use subagents to implement tasks. This preserves the main agent's context for orchestration and decision-making while subagents focus on the detail work of editing files and running tests. Give each subagent the relevant plan context and the TDD approach above.
Not every task benefits from writing tests first — configuration files, empty stubs, module wiring, and scaffolding can just be created and verified through compilation. Use judgment.
After all tasks are complete:
After everything passes, write an IMPLEMENTATION.md. This is a post-implementation record — it captures what actually happened, not what was supposed to happen.
When implementation is re-entered after CODE_REVIEW, VERIFICATION, or user-instructed adjustments, append a new ## Round N fixes section to the existing IMPLEMENTATION.md rather than rewriting earlier sections. Each round restates: what was built, deviations, test results, deferred items, and downstream notes scoped to that round only. The original section stays as the record of the first pass.
The output file starts with a single YAML frontmatter block. There is only ever one frontmatter block — do not split fields across multiple YAML blocks. Every count in the frontmatter (tasks_total, tasks_completed, tests_total, tests_passing, tests_failing, deviations_from_plan, commits, open_questions) must match what the body reports. status is complete if every task is completed and tests_failing == 0; otherwise it is has_open_questions (if the body has unresolved questions but work is otherwise finished) or blocked (if a task could not be completed).
markdown--- skill: IMPLEMENTATION.md date: {YYYY-MM-DD} status: {complete | has_open_questions | blocked} unit: {U-NN} tasks_total: {N} tasks_completed: {N} tests_total: {N} tests_passing: {N} tests_failing: {N} deviations_from_plan: {N} commits: {N} open_questions: {N} --- # IMPLEMENTATION: {Name} ## Summary One paragraph: what was built, what it delivers, and its current state (compiling, tests passing, etc.). ## What Was Built Organise this section along the same axis the plan was organised along — phases, streams, or files. Each entry must name its files and describe the change concretely. Cite stable IDs from PLAN/SPEC (e.g., `P0`, `A.1`, `B.3`) where they exist so deviations, tests, and downstream notes can reference them. ## Deviations from Plan Numbered list. Each item: what changed, why, whether it affects downstream work or interfaces. Other sections may cite deviations by number. If no deviations: "Implementation followed the plan exactly." ## Test Results - Total tests: N - Passing: N - Failing: N (with brief explanation if any) For each test command: the exact invocation, the exact pass/fail counts and timing from its output, and the delta versus baseline with each new or changed test named. When mutation verification (Phase 2 step 6) was performed, include a mutation table with columns `Test | Mutation | Observed failure`. ## Issues Encountered Problems hit during implementation and how they were resolved. When an issue requires non-obvious diagnosis, write it as its own sub-section with: symptoms, why it manifested where it did, the diagnosis, the minimum-change fix, and the regression backstop. If none: "No issues encountered." ## Deferred Items intentionally not addressed this round. Each entry: what was deferred, why, where it should be picked up (next round, separate unit, roadmap entry). If none: "Nothing deferred." ## Hand-off State State of the working tree at completion: - Baseline commit (SHA the implementation builds on) - Files staged but not committed - Files committed and the commit SHA - Untracked files - Anything the orchestrator must do next (commit, tag, push) ## Notes for Downstream Work The contract handed to the next unit, the reviewer, and any future reader. Cover: - Patterns established that subsequent work should follow - Gotchas discovered during implementation - Interfaces stabilised and how they should be consumed - Things subsequent agents must know to avoid breaking established invariants If none: "No special notes."
These are recommendations, not rigid rules. Adapt based on the project, language, and complexity.
Before considering the implementation complete, verify:
skill, date, status, unit, tasks_total, tasks_completed, tests_total, tests_passing, tests_failing, deviations_from_plan, commits, open_questions)status is complete if every task is completed and tests_failing == 0; otherwise has_open_questions or blockedOther measured skills in the registry, with their headline benchmark lift.