Implement Skill
Purpose
Implement using specs/{feature}/plan.md as the single progress source.
Iron Law: No completion claims without fresh verification evidence. If you haven't run the command in this step, you cannot claim it passes.
Input
- Existing
specs/constitution.mdwhen present specs/{feature}/spec.mdandspecs/{feature}/plan.md
Output
- Implemented code with passing tests
- Updated
specs/{feature}/plan.md(andspec.mdif findings require it) - Progress log entries with verification evidence
Steps
- Resolve
languageand shared rules fromspecs/constitution.mdwhen present; otherwise infer from workflow documents and the user's message. Ask only if still unclear. - Confirm spec/plan approval state — both must be
approvedbefore work begins — and critically review the plan for gaps, contradictions, or unclear verification before implementing. - Process open tasks from top to bottom. Set
plan.mdtoin-progresswhen work starts. - Implementation loop for each task:
- Implement the smallest coherent slice
- When testing is required to prove the task is complete, make the test change, verification command, and expected outcome explicit before claiming success
- For bug fixes, test failures, or unexpected behavior, reproduce and identify root cause before changing implementation; create the failing check first when practical
- Classify findings:
local-only(continue),plan-impacting(update plan, realign),spec-impacting(stop, return upstream) - Delegate deep investigation to
spec-researchwhen needed - Self-validate (tests, type checks, static analysis, security checks)
- Fix until green
- Run the actual verification command and read the output before claiming pass; never trust "should pass" or stale results
- Update
plan.mdafter each successful task:- Map the task or phase DoD to the fresh evidence that proves it; passing commands are not enough if they do not cover the requirement
- Mark task complete, keep
status: in-progressuntil all tasks and phase DoD items finish - Append under
## Progress Log(create if missing):- Task: [TASK_ID] | Change: [SUMMARY] | Doc Impact: [local-only|plan-impacting|spec-impacting]
- Coverage: [US/FR/DoD proven]
- Validation: [PASS/FAIL + evidence] | Next: [NEXT_TASK]
- Escalate exception cases: conflicting requirements, high-risk changes, unresolvable validation failures.
- Stop-the-line backflow when findings change approved documents:
plan-impacting: updateplan.md, realign before resumingspec-impacting: updatespec.md, reset todraft, stop until re-approved
- Confirm DoD completion per phase. Set
plan.mdtodonewhen all tasks and DoD items pass. - If documents are updated, review and keep within 150 lines.
- Suggest next step: continue
spec-implementor final completion report.
Success Criteria
plan.mdprogress matches actual implementation state- Every task has fresh verification evidence (not stale or assumed)
- Completion is backed by requirement-to-evidence mapping, not proxy green status alone
- Findings that affect plan/spec trigger document realignment before continuing
- Phase DoD items are satisfied
- Non-exception issues resolved inside the self-validation loop
Completion Guidance
- Next recommended step: continue
spec-implementor close implementation - Include completed tasks, remaining tasks, and the next task in the response