Execution: Implement & Review
The daily development loop — implement stories through TDD task cycles, then review and merge.
Execution is the daily development loop. You pick up a refined story, implement it task by task, create a PR, and get it reviewed and merged.
Step 8: Implement
Develop a user story by working through its tasks sequentially.
| Skill (recommended) | /pair-process-implement |
| How-to guide | 10 — How to Implement a Task |
| Input | Story issue with tasks (status: Refined) |
| Output | Feature branch, commits, pull request |
The Implementation Cycle
For each task, the skill follows a strict 5-step cycle:
TDD Discipline (Development Tasks)
The AI follows strict TDD — tests and implementation never change in the same session:
- RED — write a failing test that defines the expected behavior
- GREEN — write the minimal code to make the test pass
- REFACTOR — improve structure without changing behavior
Every new module file must have a corresponding unit test file (1:1 mapping). Mocks are avoided in favor of in-memory test doubles.
Commit Strategies
| Strategy | When | Flow |
|---|---|---|
| Commit per task | Multi-task stories (recommended) | Implement → confirm with dev → commit → next task |
| Commit per story | Single-task stories or continuous flow | Implement all → confirm with dev → commit all |
With commit-per-task, the developer gets a checkpoint between every task — the AI presents a summary and waits for confirmation before committing.
PR Creation
After all tasks are complete, the skill:
- Pushes the feature branch
- Creates a PR following the team's PR template
- Links the PR to the story issue
- Marks the PR as ready for review
Step 9: Code Review
Review a pull request through a structured 6-phase process.
| Skill (recommended) | /pair-process-review |
| How-to guide | 11 — How to Code Review |
| Input | Pull request |
| Output | Review decision: approve, request changes, or reject |
The Review Phases
ADR Enforcement
If the review detects a new library not listed in tech-stack.md or an architecture pattern not recorded in architecture.md, it blocks and requests an Architecture Decision Record before approval. This ensures every technical choice is deliberate and documented.
Parent Cascade
After merge, the skill updates the status hierarchy:
- Story → Done
- If all stories in the epic are Done → Epic → Done
- If all epics in the initiative are Done → Initiative → Done
The Complete Loop
This loop repeats for every story. /pair-next always knows what comes next.
Reference
- Skills Catalog — all 31 skills with commands and composition
- Guidelines & How-To Catalog — all 9 guideline categories and 11 how-to guides
- Adopt a Knowledge Base — set up pair if you haven't already