--- name: implement description: "Implement a piece of work based on a spec or set of tickets." disable-model-invocation: true --- Implement the work described by the user in the spec or tickets. Record the starting Git revision and existing working-tree changes. Preserve unrelated work. For code-review supply this fixed revision, working-tree mode, relevant task paths including untracked files, and the agreed outcomes and decision sources. Call the Skill tool with "tdd" where possible, at pre-agreed seams. Before final review, invoke `test-audit` (read and follow its SKILL.md if no Skill tool is available) on the change from the recorded starting revision. Resolve blocking audit findings and supply the audit report to code-review. Call the Skill tool with "code-review" on that working-tree change before committing. Resolve findings and verify that the reviewed state still matches the change committed. Use focused tests and typechecking appropriate to the change and satisfy required project gates. Apply verification-before-completion for evidence validity, reruns, and reporting before committing or claiming completion. Commit your work to the current branch.