Interactive discovery interview → structured product spec. Triggers: spec, PRD, requirements, scoping, brainstorming, new project. Uses AskUserQuestion; WebSearch/WebFetch when user wants research. Outputs user stories, acceptance criteria, constraints.
99
100%
Does it follow best practices?
Impact
96%
2.28xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Turn vague ideas into an implementable spec through ordered phases and targeted questions.
Run all 7 phases in order below. Do not jump to the spec early.
Minimum 10–15 questions across categories for any real project. Never treat 3–5 questions as enough.
Every AskUserQuestion must include an option for uncertainty (e.g. "I'm not sure" / "Research this").
Example AskUserQuestion call:
AskUserQuestion(
question: "Which database are you planning to use?",
options: ["PostgreSQL", "MySQL", "MongoDB", "I'm not sure", "Research this for me"]
)At least one research loop for any non-trivial project (user accepts research → WebSearch/WebFetch or agent, then follow-up questions).
Example research loop: User selects "Research this for me" on a scaling question → WebSearch("serverless vs container hosting cost comparison 2024") + WebFetch(top result) → follow-up: "Based on the research, AWS Lambda looks cost-effective at your expected traffic. Does that align with your budget?"
Completeness check (Phase 5) must pass before writing the spec. If anything is missing, ask more; do not write the spec yet.
Summarize your understanding and get user confirmation before generating the spec file.
Write the spec to docs/specs/YYYY-MM-DD-<name>.md using SPEC_TEMPLATE.md. Create docs/specs/ if it does not exist.
Execute phases in order. Detailed steps live in companion rules:
| Phase | Focus | Rules |
|---|---|---|
| 1 | Initial orientation | orientation-and-deep-dive |
| 2 | Category deep dive | orientation-and-deep-dive |
| 3 | Research loops | research-and-conflict-resolution |
| 4 | Conflict resolution | research-and-conflict-resolution |
| 5 | Completeness check | completeness-spec-and-handoff |
| 6 | Spec generation | completeness-spec-and-handoff |
| 7 | Implementation handoff | completeness-spec-and-handoff |
Orientation → deep dive categories for the project type → if unsure on stack/approach, research loop → if two goals conflict, conflict resolution → completeness table green → confirm summary → write spec file → handoff question.