Epic Phase
How to implement an epic β from /task-implement through review and decisions log.
What is the Epic phase?
The Epic phase covers the implementation and review of a single epic, using the three artefacts produced in the Spec phase. No implementation begins without a human-validated spec-epic-N.md.
Full sequence for one epic
spec-epic-N.md approved by human
β
/task-implement (π οΈ Implementer reads spec-epic-N.md + PRD.md)
β
β οΈ Implementer signals ambiguities β human resolves β spec updated if needed
β
Implementation runs
β
Implementer fills checklist in spec-epic-N.md
Implementer updates decisions-log.md
β
/task-tests (π§ͺ QA generates + runs tests)
β
QA gate: if failing β back to Implementer β human decides
β
/task-review (π Reviewer evaluates adherence)
β
HITL β
Human reviews Reviewer output
β
If approved β move to Operations phase
If rejected β update spec or implementation β re-run
/task-implement
/task-implement
The π οΈ Implementer agent:
- Reads
spec-epic-N.mdandPRD.md - Reads
CONTEXT.mdto understand architectural constraints - Summarizes what will be implemented and which files will be affected
- Pauses β the human confirms the plan before any files are changed
- Executes the implementation
- Marks the checklist items in
spec-epic-N.md - Records decisions in
decisions-log.md
If the agent encounters a critical ambiguity, it stops and signals rather than deciding on its own. The correct response is to update spec-epic-N.md and re-run.
:::caution
For frontend tasks, use /task-implement-frontend instead. It injects the frontend-design and web-design-guidelines skills, which enforce accessibility standards, component patterns, and visual quality guidelines.
:::
Decisions log
During implementation, every non-trivial decision that is not fully specified in spec-epic-N.md must be recorded in doc-specs/<N>-epic/decisions-log.md:
| Field | Description |
|---|---|
| Decision | What was decided |
| Context | What situation made this decision necessary |
| Alternatives | What other options were considered |
| Consequences | What this decision implies for future epics |
Entries in decisions-log.md are never deleted β only added or amended.
/task-tests
/task-tests
The π§ͺ QA agent:
- Reads
spec-epic-N.mdandCONTEXT.md - Generates test scenarios based on the technical acceptance criteria
- Describes any synthetic data required
- Executes the project test suite
- Reports results β pass/fail summary with detail on failures
If the QA gate fails, the agent signals the issue and defers to the human. The human decides whether to return to the Implementer for fixes or accept the failure as a known limitation.
/task-review
/task-review
The π Reviewer agent:
- Reads
PRD.md,spec-epic-N.md, and the implementation - Reads
decisions-log.mdto understand deviations that were deliberately made - Produces a structured review output:
| Section | Contents |
|---|---|
| Adherence summary | Overall assessment β compliant / partially compliant / non-compliant |
| Deviations found | Specific places where implementation diverges from spec |
| Risks | Technical or product risks introduced by this implementation |
| Gaps | Things that were specified but not implemented |
| Final recommendation | Approved / Approved with conditions / Rejected |
β HITL (mandatory): The human reviews the Reviewer output and decides:
- Is the delivery approved?
- Are there mandatory corrections before closing?
- Does the spec need to be adjusted?
After the Epic phase
Once the human approves the review, move to the Operations phase.