Generate-Spec
When triage picks it
Triage selects this archetype when a development ticket implies code work but no formal contract exists yet. The signal is a ticket that describes desired behavior — a feature, a component, an endpoint, a migration — without specifying the exact files, interfaces, or acceptance criteria needed to implement it safely. Triage refuses to send workers into code without a spec.
How it works
A single-phase pipeline runs three agents in sequence:
- spec-refiner (Haiku) scans the ticket and the existing codebase context, then fills out the 20-section spec template section by section, flagging gaps it cannot resolve from available information.
- spec-validator (Sonnet) reviews the draft and returns one of three verdicts:
PASS,WARNINGS, orBLOCK. ABLOCKtriggers thespec_clarification_gate. - On
PASSorWARNINGS, the spec is written to.loop/and handed off as the contract for the subsequentself-healingphase.
The output is a machine-readable spec that worker-dev agents consume directly — no human reformatting required.
Real-world ticket example
do "I want to add a dark mode toggle to the dashboard — it should persist the user's preference across sessions"