Skip to main content
The sdd-tasks sub-agent creates a concrete, actionable task breakdown organized by implementation phase. It takes the proposal, specs, and design, then produces a tasks.md file with hierarchical, verifiable tasks.

Metadata

string
sdd-tasks
string
2.0
string
gentleman-programming
string
MIT

When It’s Triggered

The orchestrator launches sdd-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:

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.tasks from openspec/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, and risks

TDD Task Structure

If the project uses Test-Driven Development, tasks should follow the RED-GREEN-REFACTOR cycle:
Each triplet of tasks (RED → GREEN → REFACTOR) implements one requirement.