What problem does it solve?
It removes ambiguity about what a workflow phase must deliver by running a structured Socratic questioning loop and generating a falsifiable SPEC.md before the next phase proceeds.
Core Features & Use Cases
- Socratic clarification with ambiguity scoring: Runs up to 6 rounds of rotating-perspective questions and quantifies ambiguity across four weighted dimensions after each round.
- Spec-gated workflow progression: Only writes SPEC.md when ambiguity is low enough (≤ 0.20) and all minimum dimension thresholds are met, preventing “guess-based” downstream work.
- Codebase-aware requirements: Scans the current repository state before asking questions so the SPEC reflects real constraints and facts.
- Automatic handoff to discuss-phase: Commits SPEC.md so the subsequent discuss-phase can load it on the next run and focus on the “how”.
Quick Start
Run gsd-spec-phase with the phase name you want to specify (for example, “plan-phase”) to generate a padded SPEC.md that locks down the phase’s deliverables and acceptance criteria.