v1.0.1 β BDD/ATDD Extension for Spec-Kit
spec-kit-bdd v1.0.1
Adds Behavior-Driven Development (BDD) and Acceptance Test-Driven Development (ATDD)
to the spec-kit workflow. Write acceptance tests before code β then verify every
requirement is covered before you ship.
Commands
| Command | What it does |
|---|---|
/speckit.bdd.scenarios |
Converts your spec-kit specification into Gherkin .feature files (Given/When/Then) |
/speckit.bdd.scaffold |
Generates step definition stubs from your feature files, ready to implement |
/speckit.bdd.verify |
Produces a traceability matrix mapping spec requirements β scenarios with coverage % |
ATDD workflow
/speckit.specify
β
/speckit.bdd.scenarios β acceptance tests written (RED)
β
/speckit.plan + /speckit.tasks
β
/speckit.bdd.scaffold β step stubs runnable before any code exists
β
/speckit.implement β code until tests go GREEN
β
/speckit.bdd.verify β confirm 100% spec coverage
Supported step definition frameworks
Python (pytest-bdd Β· behave) Β· JavaScript (@cucumber/cucumber) Β·
Ruby (cucumber) Β· Java (io.cucumber) Β· C# (SpecFlow)
Lifecycle hooks
after_specifyβ optionally generates Gherkin scenarios immediately after writing your specbefore_implementβ optionally scaffolds step stubs before starting implementation
Both hooks are optional and prompt for confirmation before running.
Requirements
- spec-kit
>=0.2.0