Spec-driven development methodology that transforms feature requests into structured documentation before coding...
Transform high-level goals into structured, traceable documentation before writing code.
Feature Request → Requirements → Design → Tasks → Implementation
↓ ↓ ↓
requirements.md design.md tasks.md
Convert goals into user stories with EARS acceptance criteria.
Output: requirements.md
Create architecture based on approved requirements.
Output: design.md
Generate ordered, dependency-aware tasks linked to requirements.
Output: tasks.md
| Type | Pattern | Example |
|---|---|---|
| Ubiquitous | The system SHALL... | The system SHALL encrypt all data at rest |
| Event-Driven | WHEN [trigger], THEN... | WHEN user clicks Save, THEN system SHALL persist data |
| State-Driven | WHILE [state], the system SHALL... | WHILE in offline mode, the system SHALL queue requests |
| Optional | IF [condition], THEN... | IF user has premium, THEN system SHALL enable feature X |
| Unwanted | IF [condition], THEN... SHALL NOT | IF input invalid, THEN system SHALL NOT proceed |
Detailed templates for each document:
references/requirements-template.md - Full requirements structurereferences/design-template.md - Architecture and API patternsreferences/tasks-template.md - Task breakdown formatWhen user requests a new feature/project:
references/requirements-template.mdreferences/design-template.mdreferences/tasks-template.md