You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update README with comprehensive SDD workflow documentation
Updated README.md to reflect the complete Spec-Driven Development workflow with:
- New directory structure: docs/specs/[NN]-spec-[feature-name]/
- Three-phase task generation process with parent task review
- Proof artifacts structure and creation requirements
- Enhanced four-stage workflow including validation stage with auto-discovery
- Validation gates and coverage matrix details
- Links to comprehensive SDD Playbook documentation
- Updated mermaid diagram showing all workflow phases and interactions
- Clarified checkpoint modes and structured execution patterns
This commit captures the trimmed-to-prompts workflow with complete stage
descriptions, artifact requirements, and validation processes.
**Want to use the prompts directly?** Copy-paste them into your AI assistant:
30
30
31
-
1.**Generate a spec:** Copy `prompts/generate-spec.md` into your AI chat, provide your idea, answer clarifying questions → Spec created in `tasks/0001-spec-<feature>.md`
31
+
1.**Generate a spec:** Copy `prompts/generate-spec.md` into your AI chat → AI assesses scope, asks structured questions (numbered/lettered options), optionally reviews codebase, generates spec, iterates with you → Spec saved to `docs/specs/01-spec-<feature-name>/01-spec-<feature-name>.md`
32
32
33
-
2.**Generate task list:** Point your AI to the spec and use `prompts/generate-task-list-from-spec.md` → Task list created in `tasks/tasks-0001-spec-<feature>.md`
33
+
2.**Generate task list:** Point AI to spec (or let it auto-discover) and use `prompts/generate-task-list-from-spec.md` → AI analyzes spec, generates parent tasks for review, then after confirmation expands into sub-tasks with "Relevant Files" section → Saved to `docs/specs/01-spec-<feature-name>/01-tasks-<feature-name>.md`
34
34
35
-
3.**Manage tasks:** Use `prompts/manage-tasks.md` while implementing → Execute tasks one-by-one with proof artifacts
35
+
3.**Manage tasks:** Use `prompts/manage-tasks.md` while implementing → Choose checkpoint mode (Continuous/Task/Batch), execute with verification checklists, create proof artifacts**before** commits → Proofs saved to `docs/specs/01-spec-<feature-name>/01-proofs/[NN]-task-[TT]-proofs.md`
36
36
37
-
4.**SHIP IT** 🚢💨
37
+
4.**Validate:** Use `prompts/validate-spec-implementation.md` (or let it auto-discover) → AI verifies proof artifacts, applies validation gates, produces coverage matrix and validation report
38
+
39
+
5.**SHIP IT** 🚢💨
38
40
39
41
## Highlights
40
42
@@ -58,103 +60,167 @@ Spec-Driven Development (SDD) keeps AI collaborators and human developers aligne
58
60
59
61
All prompts live in `prompts/` and are designed for use inside your preferred AI assistant.
60
62
61
-
1.**`generate-spec`** (`prompts/generate-spec.md`): Ask clarifying questions, then author a junior-friendly spec with demoable slices.
62
-
2.**`generate-task-list-from-spec`** (`prompts/generate-task-list-from-spec.md`): Transform the approved spec into actionable parent tasks and sub-tasks with proof artifacts.
63
-
3.**`manage-tasks`** (`prompts/manage-tasks.md`): Coordinate execution, update task status, and record outcomes as you deliver value.
64
-
4.**`validate-spec-implementation`** (`prompts/validate-spec-implementation.md`): Validate that implementation matches the spec requirements.
63
+
1.**`generate-spec`** (`prompts/generate-spec.md`): Assess scope appropriateness, ask structured clarifying questions with numbered/lettered options, optionally review codebase context, then author a junior-friendly spec with demoable slices. Includes review and refinement cycle.
64
+
2.**`generate-task-list-from-spec`** (`prompts/generate-task-list-from-spec.md`): Three-phase process: (1) internal analysis and planning, (2) generate parent tasks for review, (3) after user confirmation, expand into sub-tasks with relevant files section. Auto-discovers spec if not provided.
65
+
3.**`manage-tasks`** (`prompts/manage-tasks.md`): Coordinate execution with checkpoint modes (Continuous/Task/Batch), update task status, create proof artifacts before commits, follow structured verification checklists, and record outcomes as you deliver value.
66
+
4.**`validate-spec-implementation`** (`prompts/validate-spec-implementation.md`): Auto-discovers spec if needed, validates implementation against spec using proof artifacts, applies validation gates, produces coverage matrix, and generates comprehensive validation report.
65
67
66
-
Each prompt writes Markdown outputs into `tasks/`, giving you a lightweight backlog that is easy to review, share, and implement.
68
+
Each prompt writes Markdown outputs into `docs/specs/[NN]-spec-[feature-name]/` (where `[NN]` is a zero-padded 2-digit number: 01, 02, 03, etc.), giving you a lightweight backlog that is easy to review, share, and implement.
67
69
68
70
## How does it work?
69
71
70
72
The workflow is driven by Markdown prompts that function as reusable playbooks for the AI agent. Reference the prompts directly, or install them as slash commands using the [slash-command-manager](https://github.com/liatrio-labs/slash-command-manager), to keep the AI focused on structured outcomes.
71
73
74
+
**📚 For comprehensive documentation, examples, and detailed guides, visit the [SDD Playbook on GitHub Pages](https://liatrio-labs.github.io/spec-driven-workflow/):**
75
+
76
+
-**[SDD Playbook](https://liatrio-labs.github.io/spec-driven-workflow/)** — Complete overview and workflow guide
77
+
-**[Comparison](https://liatrio-labs.github.io/spec-driven-workflow/comparison.html)** — How SDD compares to other structured development tools
78
+
-**[Developer Experience](https://liatrio-labs.github.io/spec-driven-workflow/developer-experience.html)** — Real-world usage examples and patterns
79
+
-**[Common Questions](https://liatrio-labs.github.io/spec-driven-workflow/common-questions.html)** — FAQ and troubleshooting
80
+
-**[Video Overview](https://liatrio-labs.github.io/spec-driven-workflow/video-overview.html)** — Visual walkthrough of the workflow
81
+
-**[Reference Materials](https://liatrio-labs.github.io/spec-driven-workflow/reference-materials.html)** — Additional resources and examples
82
+
72
83
## Workflow Overview
73
84
74
85
Four prompts in `/prompts` define the full lifecycle. Use them sequentially to move from concept to completed work.
75
86
76
87
### Stage 1 — Generate the Spec ([prompts/generate-spec.md](./prompts/generate-spec.md))
77
88
78
-
- Directs the AI assistant to use clarifying questions with the user before writing a Markdown spec.
79
-
- Produces `/tasks/000X-spec-<feature>.md` with goals, demoable units of work, functional/non-goals, metrics, and open questions.
89
+
-**Initial Scope Assessment**: Evaluates if the feature is appropriately sized for this workflow (not too large or too small).
90
+
-**Clarifying Questions**: Asks structured questions with numbered/lettered options to gather detailed requirements, focusing on "what" and "why" rather than "how."
91
+
-**Context Assessment** (optional): Reviews existing codebase for relevant patterns, constraints, and repository standards.
92
+
-**Spec Generation**: Creates a comprehensive specification document with goals, user stories, demoable units, functional requirements, non-goals, design considerations, repository standards, technical considerations, success metrics, and open questions.
93
+
-**Review and Refinement**: Validates completeness and clarity with the user, iterating based on feedback.
94
+
- Produces `docs/specs/[NN]-spec-[feature-name]/[NN]-spec-[feature-name].md` (where `[NN]` is a zero-padded 2-digit number: 01, 02, 03, etc.).
80
95
81
96
### Stage 2 — Generate the Task List ([prompts/generate-task-list-from-spec.md](./prompts/generate-task-list-from-spec.md))
82
97
83
-
- Reads the approved spec, inspects the repo for context, and drafts parent tasks first.
84
-
- On confirmation from the user, expands each parent task into sequenced subtasks with demo criteria, proof artifacts, and relevant files.
85
-
- Outputs `/tasks/tasks-000X-spec-<feature>.md` ready for implementation.
98
+
-**Phase 1: Analysis and Planning** (internal): Receives spec reference (or auto-discovers oldest spec without tasks), analyzes requirements, assesses current codebase state, defines demoable units, and evaluates scope.
99
+
-**Phase 2: Parent Task Generation**: Creates high-level parent tasks (typically 4-6) representing demoable units of work, each with demo criteria and proof artifacts. Saves to task file and presents for user review.
100
+
-**Phase 3: Sub-Task Generation** (after user confirmation): Identifies relevant files, breaks down each parent task into actionable sub-tasks, and updates the task file with complete structure including "Relevant Files" section.
101
+
- Outputs `docs/specs/[NN]-spec-[feature-name]/[NN]-tasks-[feature-name].md` ready for implementation.
- Enforces disciplined execution: mark in-progress immediately, finish one subtask before starting the next, and log artifacts as you go.
90
-
- Bakes in commit hygiene, validation steps, and communication rituals so handoffs stay tight.
105
+
-**Checkpoint Modes**: Presents three execution modes (Continuous/Task/Batch) for user preference, defaulting to Task Mode.
106
+
-**Structured Execution**: Follows a workflow with verification checkpoints:
107
+
- Sub-task execution: Mark in-progress → Implement → Test → Quality check → Mark complete
108
+
- Parent task completion: Run test suite → Quality gates → Create proof artifacts → Verify demo criteria → Git commit → Mark complete
109
+
-**Proof Artifacts**: Creates a single markdown file per parent task in `docs/specs/[NN]-spec-[feature-name]/[NN]-proofs/[NN]-task-[TT]-proofs.md`**before** the commit, containing CLI output, test results, screenshots, configuration examples, and demo validation.
110
+
-**Git Workflow**: One commit per parent task with conventional commit format including task and spec references. Includes blocking verification before proceeding to next task.
111
+
- Enforces disciplined execution with built-in verification checklists and progress tracking.
-**Coverage Matrix**: Produces evidence-based coverage tables for Functional Requirements, Repository Standards, and Proof Artifacts with Verified/Failed/Unknown status.
123
+
-**Output**: Generates a single human-readable Markdown validation report with executive summary, coverage matrix, issues with severity ratings, and evidence appendix.
124
+
- Validates completeness, correctness, and adherence to the original specification.
96
125
97
126
### Detailed SDD Workflow Diagram
98
127
99
128
```mermaid
100
129
sequenceDiagram
101
130
participant U as User
102
131
participant GS as 1. generate-spec
103
-
participant SPEC as 0001-spec-<feature>.md
132
+
participant SPEC as docs/specs/[NN]-spec-[feature]/[NN]-spec-[feature].md
104
133
participant GT as 2. generate-task-list-from-spec
105
-
participant TL as tasks-0001-spec-<feature>.md
134
+
participant TL as docs/specs/[NN]-spec-[feature]/[NN]-tasks-[feature].md
106
135
participant MT as 3. manage-tasks
136
+
participant PROOFS as docs/specs/[NN]-spec-[feature]/[NN]-proofs/
107
137
participant CODE as Code / Docs / Tests
138
+
participant VAL as 4. validate-spec-implementation
U->>VAL: Run Validation<br/>(or auto-discover spec)
187
+
VAL->>SPEC: Read Spec
188
+
VAL->>TL: Read Task List
189
+
VAL->>CODE: Analyze Git Commits
190
+
VAL->>PROOFS: Verify Proof Artifacts
191
+
VAL->>CODE: Check Repository Standards
192
+
VAL->>VAL: Apply Validation Gates<br/>(GATE A-E)
193
+
VAL->>VAL: Generate Coverage Matrix
194
+
VAL->>U: Validation Report<br/>(PASS/FAIL with evidence)
134
195
```
135
196
136
197
## Core Artifacts
137
198
138
-
-**Specs:**`000X-spec-<feature>.md` — canonical requirements, demo slices, and success metrics.
139
-
-**Task Lists:**`tasks-000X-spec-<feature>.md` — parent/subtask checklist with relevant files and proof artifacts.
199
+
-**Specs:**`docs/specs/[NN]-spec-[feature-name]/[NN]-spec-[feature-name].md` — canonical requirements including goals, user stories, demoable units, functional requirements, non-goals, design considerations, repository standards, technical considerations, success metrics, and open questions (where `[NN]` is a zero-padded 2-digit number: 01, 02, 03, etc.).
200
+
-**Task Lists:**`docs/specs/[NN]-spec-[feature-name]/[NN]-tasks-[feature-name].md` — parent/subtask checklist with demo criteria, proof artifacts, and "Relevant Files" section listing all files that will be created or modified.
201
+
-**Proof Artifacts:**`docs/specs/[NN]-spec-[feature-name]/[NN]-proofs/[NN]-task-[TT]-proofs.md` — single markdown file per parent task (created before commit) containing CLI output, test results, screenshots, configuration examples, and demo validation evidence (where `[NN]` is spec number and `[TT]` is task number).
140
202
-**Status Keys:**`[ ]` not started, `[~]` in progress, `[x]` complete, mirroring the manage-tasks guidance.
141
-
-**Proof Artifacts:**URLs, CLI commands, screenshots, or tests captured per task to demonstrate working software.
203
+
-**Validation Reports:**Generated by the validation prompt, includes coverage matrix, validation gates status, and evidence-based verification results.
142
204
143
205
## Usage Options
144
206
145
207
### Option 1: Manual Copy-Paste (No Tooling Required)
146
208
147
-
1.**Kick off a spec:** Copy or reference `prompts/generate-spec.md` inside your preferred AI chat. Provide the feature idea, answer the clarifying questions, and review the generated spec before saving it under `/tasks`.
148
-
2.**Plan the work:** Point the assistant to the new spec and walk through `prompts/generate-task-list-from-spec.md`. Approve parent tasks first, then request the detailed subtasks and relevant files. Commit the result to `/tasks`.
149
-
3.**Execute with discipline:** Follow `prompts/manage-tasks.md` while implementing. Update statuses as you work, attach proof artifacts, and pause for reviews at each demoable slice.
150
-
4.**Validate:** Use `prompts/validate-spec-implementation.md` to ensure the implementation matches the spec.
209
+
1.**Kick off a spec:** Copy or reference `prompts/generate-spec.md` inside your preferred AI chat. The AI will assess scope appropriateness, ask structured clarifying questions (with numbered/lettered options), optionally review your codebase, generate the spec, and iterate with you until it's complete. The spec is saved to `docs/specs/[NN]-spec-[feature-name]/[NN]-spec-[feature-name].md`.
210
+
2.**Plan the work:** Point the assistant to the new spec (or let it auto-discover) and walk through `prompts/generate-task-list-from-spec.md`. The AI will analyze the spec, generate parent tasks for your review (Phase 2), then after you confirm, expand into detailed subtasks with a "Relevant Files" section (Phase 3). The result is saved to `docs/specs/[NN]-spec-[feature-name]/[NN]-tasks-[feature-name].md`.
211
+
3.**Execute with discipline:** Follow `prompts/manage-tasks.md` while implementing. Choose your checkpoint mode (Continuous/Task/Batch), update statuses as you work, create proof artifacts in `docs/specs/[NN]-spec-[feature-name]/[NN]-proofs/[NN]-task-[TT]-proofs.md`**before** each commit, and follow the verification checklists at each step.
212
+
4.**Validate:** Use `prompts/validate-spec-implementation.md`(or let it auto-discover the spec) to ensure the implementation matches the spec. The AI will verify proof artifacts, check coverage, apply validation gates, and produce a comprehensive validation report.
151
213
152
214
### Option 2: Native Slash Commands (Recommended)
153
215
154
216
Install the prompts as native slash commands in your AI assistant using the [slash-command-manager](https://github.com/liatrio-labs/slash-command-manager):
0 commit comments