Spec Developer
Overview
Create a high-quality SPEC.md by starting from a minimal shell, then driving repeated in-depth interviews via $ask-user-question until the spec is complete and implementation-ready.
Workflow
- •Bootstrap
SPEC.md - •Analyze gaps and risk
- •Run iterative interview rounds
- •Update
SPEC.mdafter every round - •Finalize when completeness gate passes
Step 1: Bootstrap SPEC.md
If SPEC.md does not exist:
- •Prompt for baseline inputs:
- •Problem statement
- •Target users
- •Primary goals
- •Non-goals
- •Constraints (time, budget, tech, compliance)
- •Expected delivery horizon
- •Create
SPEC.mdusingreferences/spec-template.md. - •Mark unknown items as
TBDwith explicit questions.
If SPEC.md exists:
- •Read it fully and continue from Step 2.
Step 2: Gap and Risk Scan
Compare SPEC.md against references/spec-completeness-checklist.md.
- •Mark each section as:
complete,weak, ormissing. - •Prioritize interview targets by risk:
- •Decisions that affect architecture/data contracts
- •Decisions that affect safety/compliance/security
- •Decisions that affect user experience and rollout risk
Step 3: Interview in Rounds (Use $ask-user-question)
For each round:
- •Invoke
$ask-user-questionwith current spec context and unresolved high-risk topics. - •Require non-obvious questions (failure modes, tradeoffs, operational realities, edge cases).
- •Ask only 3-5 questions per round.
- •Capture answers as concrete decisions.
Keep interviewing continuously until completion criteria pass. Do not stop after one round.
Step 4: Update SPEC.md Continuously
After each interview round:
- •Write new decisions directly into
SPEC.md. - •Move resolved
TBDitems to final statements. - •Keep a short "Open Questions" section for unresolved items.
- •Add a "Decision Log" entry with rationale for major tradeoffs.
Step 5: Completeness Gate
Finalize only when all are true:
- •All checklist sections are
completeor explicitly deferred. - •No unresolved high-risk questions remain.
- •Technical approach, UX behavior, and rollout plan are implementable without guesswork.
- •Success metrics and acceptance criteria are testable.
If any gate fails, continue interviews.
Output Rules
- •Keep
SPEC.mdconcrete and implementation-oriented. - •Prefer explicit thresholds, limits, and behavioral rules over generic language.
- •Record rejected alternatives for major decisions.