Implement from a spec
One acceptance item per round: failing test, code, checks, commit. Self-review, then open the PR.
SKILL.mdmarkdown · 31 lines
---
name: implement
description: >
Build the feature described by a spec or a ticket: small steps, verified each time, self-reviewed before the PR.
Use when the user says "implement this spec", "do this issue", or "go ahead and build it".
If there's no spec and the request is still vague, use the spec skill first.
---
# Implement from a spec
## Before you start
1. Read the spec's Acceptance and Out of scope. Read the code you'll change and its tests.
2. Branch from the latest [main].
3. Order the acceptance items. Start with the smallest one that runs end to end.
## The loop: one acceptance item per round
1. Write a test that fails. Run it and confirm it fails (details in the tdd skill).
2. Write just enough code to make it pass.
3. Run [check command]. If it's red, fix it before moving on.
4. Commit. One acceptance item, one commit.
## Wrapping up
1. Run the full [check command].
2. Run the review skill and deal with what it finds.
3. Open the PR with Validation, Risk, and Rollback. List any decisions open to veto.
4. Put anything unfinished or noticed along the way in [docs/ledger/].
## Don't
- Don't change things the spec didn't name. Note out-of-scope problems and report them.
- Don't edit a test's assertions to make it pass.
- Don't merge your own PR.