tasks.md file with hierarchical, verifiable tasks.
Metadata
sdd-tasks2.0gentleman-programmingMITWhen It’s Triggered
The orchestrator launchessdd-tasks when:
- User runs
/sdd-new <change-name>(after design) - User wants to create or update the task breakdown
- Design is complete and ready for implementation planning
What It Does
Step 1: Analyze the Design
From the design document, identifies:- All files that need to be created/modified/deleted
- The dependency order (what must come first)
- Testing requirements per component
Step 2: Write tasks.md
Creates the task file:Task File Format
Task Writing Rules
Each task MUST be:| Criteria | Example ✅ | Anti-example ❌ |
|---|---|---|
| Specific | ”Create internal/auth/middleware.go with JWT validation" | "Add auth” |
| Actionable | ”Add ValidateToken() method to AuthService" | "Handle tokens” |
| Verifiable | ”Test: POST /login returns 401 without token" | "Make sure it works” |
| Small | One file or one logical unit of work | ”Implement the feature” |
Phase Organization Guidelines
Example: Dark Mode Tasks
Result Envelope Example
Rules
- ALWAYS reference concrete file paths in tasks
- Tasks MUST be ordered by dependency — Phase 1 tasks shouldn’t depend on Phase 2
- Testing tasks should reference specific scenarios from the specs
- Each task should be completable in ONE session (if a task feels too big, split it)
- Use hierarchical numbering: 1.1, 1.2, 2.1, 2.2, etc.
- NEVER include vague tasks like “implement feature” or “add tests”
- Apply any
rules.tasksfromopenspec/config.yaml - If the project uses TDD, integrate test-first tasks: RED task (write failing test) → GREEN task (make it pass) → REFACTOR task (clean up)
- Return a structured envelope with:
status,executive_summary,detailed_report,artifacts,next_recommended, andrisks
TDD Task Structure
If the project uses Test-Driven Development, tasks should follow the RED-GREEN-REFACTOR cycle:Related
- Designer — Provides the design that informs task breakdown
- Implementer — Executes tasks and marks them complete
- OpenSpec Convention