SDD-workflow
A structured workflow for transforming product requirements into actionable development tasks.
SDD Workflow
A skill-based workflow built around Specification-Driven Development (SDD). This repository explains how product requirements can be transformed into structured flows, acceptance criteria, task lists, implementation, review, and synced completion status.
This repo is useful if you want to:
- turn natural-language requirements into executable development tasks
- use a structured workflow to constrain AI implementation, keep the process controllable, and continuously align requirements with delivery
- connect specs, implementation, review, testing, and delivery status in one workflow
- practice document as code so that spec documents do not stay as passive documentation, but directly drive development
What This Repo Provides
- a reusable SDD core workflow
- a set of skills mapped to each stage of the workflow
- optional extensions for AC-first, Feature File generation, and React review guidance
Workflow At A Glance
Requirements spec
↓
propose
├─ clarify-flow -> 01-flow.md
├─ export-gherkin -> 02-gherkin.md
└─ 03-tasks.md
↓
apply
├─ implement tasks
└─ code-reviewer
↓
bdd-unit-test (optional, manual)
↓
propose-sync
↓
sync completion status back to the spec
Quick Start
1. Prepare a spec document
Start with a requirement document such as:
## Discount Code Feature
Users can enter a discount code on the checkout page.
The system must validate the code and update the order total.
Codes below the threshold must be rejected, and expired codes must return an error.
2. Run propose
Use the workflow to break the requirement into implementation-ready intermediate documents.
propose docs/spec.md
Expected output:
docs/propose/<feature-name>/
01-flow.md
02-gherkin.md
03-tasks.md
3. Run apply
Implement the generated task list step by step.
apply docs/propose/<feature-name>
4. Add tests or sync completion status
- add post-implementation unit tests with
bdd-unit-test - sync finished work back to the source spec with
propose-sync
Repository Structure
skills/
propose/ entry point for proposal generation
clarify-flow/ convert requirements into structured flow documents
export-gherkin/ convert flows into Gherkin acceptance criteria
apply/ implement generated task lists step by step
code-reviewer/ run spec-aligned code review
bdd-unit-test/ add post-implementation unit tests
propose-sync/ sync completed features back to the spec
export-ac/ extension: generate AC documents first
ac-to-test/ extension: generate red tests from AC
export-feature-file/ extension: output executable .feature files
react-design/ extension: React design and review principles
docs/
document.md workflow overview document
Core Workflow
The core workflow starts from a spec document, generates proposal artifacts, moves into implementation and review, and finally syncs completion status back to the source document.
| Stage | Skill | Output / Task |
|---|---|---|
| 1. Proposal planning | propose | identify features and generate three documents |
| 1a. Structured flow | clarify-flow | 01-flow.md |
| 1b. Acceptance criteria | export-gherkin | 02-gherkin.md |
| 1c. Task list | propose itself | 03-tasks.md |
| 2. Implementation | apply | complete 03-tasks.md step by step |
| 2a. Code review | code-reviewer | review implementation and update [x][cr] |
| 3. Unit tests | bdd-unit-test | generate post-implementation tests |
| 4. Completion sync | propose-sync | write back to the spec's ## Completed section |
Notes On The Core Flow
proposewrites> propose:markers back into the spec so thatpropose-synccan locate related feature folders later.proposecan handle both normal feature requests and items in abug fix listthat require proposal-level treatment.applyonly executes normal tasks automatically; tasks marked as[manual]are left for a new session.code-revieweris part of the core workflow, not an extra optional step.
Extension Skills
If you only want to understand the main flow, you can skip this section first. These skills are not mandatory, but they extend the workflow with stronger acceptance and testing strategies.
| Skill | Role | When To Use It |
|---|---|---|
export-ac | generate an AC.md acceptance-criteria document first | when you want to define completion criteria before implementation |
ac-to-test | turn AC.md into red test skeletons | when you want an AC-first or test-first workflow |
export-feature-file | turn specs or Gherkin into executable .feature files | when integrating with Reqnroll, Cucumber, Behave, or similar BDD frameworks |
react-design | provide React architecture and best-practice guidance | during frontend design discussions or React code review |
Extension Flow Examples
AC-first path
Requirements spec
↓
export-ac -> AC.md
↓
ac-to-test -> test skeletons
↓
propose / apply -> implementation and validation
Executable BDD path
Requirements spec / 01-flow.md
↓
export-gherkin -> 02-gherkin.md
↓
export-feature-file -> .feature
Minimal Example
A typical path looks like this:
- Prepare
docs/spec.md - Run
propose docs/spec.md - Generate
docs/propose/<feature>/01-flow.md - Generate
docs/propose/<feature>/02-gherkin.md - Generate
docs/propose/<feature>/03-tasks.md - Run
apply docs/propose/<feature> - Let
code-reviewerreview the completed implementation - Run
bdd-unit-testorpropose-syncif needed
Who This Is For
- individual developers building stable AI-assisted development workflows
- teams that want specs and implementation artifacts tied together
- developers and non-technical stakeholders trying to reduce the gap between requirement understanding and direct implementation
Related Files
- Workflow overview: docs/document.md
- Skill definitions: skills
- License: LICENSE