/speckit.tasks command transforms your technical plan into a complete, executable task breakdown organized by user stories with clear dependencies and parallelization opportunities.
Purpose
Create implementation-ready task lists:- Organize tasks by user story (independently testable increments)
- Define clear dependencies and execution order
- Identify parallel execution opportunities
- Map tasks to specific file paths
- Enable incremental delivery (MVP first, then enhancements)
- Support Test-Driven Development (optional)
Tasks are organized by user story (not by layer or component) to enable independent implementation and testing of each story as a complete feature slice.
Usage
How It Works
Setup
Runs prerequisite check and parses:
FEATURE_DIR: Current feature directoryAVAILABLE_DOCS: List of available design documents- Validates plan.md and spec.md exist
Load Design Documents
Reads available artifacts:
- Required: plan.md (tech stack, structure), spec.md (user stories with priorities)
- Optional: data-model.md (entities), contracts/ (interfaces), research.md (decisions), quickstart.md (scenarios)
Extract Information
Analyzes design documents:
- User stories from spec.md with priorities (P1, P2, P3)
- Tech stack and project structure from plan.md
- Entities from data-model.md (if exists)
- Interface contracts from contracts/ (if exists)
- Technical decisions from research.md (if exists)
Generate Task Phases
Creates task breakdown:
- Phase 1: Setup (project initialization, structure)
- Phase 2: Foundational (blocking prerequisites for ALL user stories)
- Phase 3+: One phase per user story (in priority order)
- Final Phase: Polish & cross-cutting concerns
- Story goal and independent test criteria
- Tests (if requested) written FIRST
- Implementation tasks (models → services → interfaces)
Define Dependencies
Documents execution order:
- Phase-level dependencies (Setup → Foundational → Stories → Polish)
- Within-story dependencies (Tests → Models → Services → Endpoints)
- Cross-story dependencies (rare - stories should be independent)
Identify Parallelization
Marks tasks with
[P] that can run concurrently:- Different files
- No dependencies on incomplete tasks
- Same layer across different user stories
Format Validation
Ensures ALL tasks follow checklist format:
- [ ]checkbox[TaskID]sequential (T001, T002, etc.)[P]marker if parallelizable[Story]label for user story phases (US1, US2, US3)- Description with exact file path
Generate tasks.md
Writes tasks file using template structure with:
- All phases properly organized
- Dependency graph
- Parallel execution examples
- Implementation strategy (MVP first)
Task Format
Every task MUST follow this strict format:Format Components
[P] Marker (Optional)
Include ONLY if task is parallelizable:
- Different files than other tasks
- No dependencies on incomplete tasks
[Story] Label (Conditional)
Required for user story phases only:
- Format: [US1], [US2], [US3]
- Maps to user stories from spec.md
- Setup/Foundational/Polish: NO story label
Examples
Task Organization
Phase 1: Setup
Project initialization (no story labels):Phase 2: Foundational
Blocking prerequisites that ALL stories need (no story labels):Phase 3+: User Stories
One phase per story, ordered by priority:Final Phase: Polish
Cross-cutting improvements (no story labels):Dependencies & Execution Order
Phase Dependencies
User Story Independence
- User Story 1: Independent after Foundational
- User Story 2: Independent after Foundational (may integrate with US1)
- User Story 3: Independent after Foundational (may integrate with US1/US2)
User stories are designed to be independently testable and deployable. You can ship US1 as MVP without waiting for US2 or US3.
Within Each User Story
If tests included:- Tests FIRST (must FAIL before implementation)
- Models (can run in parallel if marked
[P]) - Services (depend on models)
- Endpoints/Interfaces (depend on services)
- Integration logic
Parallel Opportunities
Tasks marked[P] can run concurrently:
Different user stories can be worked on in parallel by different team members once the Foundational phase completes.
Implementation Strategies
MVP First (Recommended)
Deliver value incrementally:Parallel Team Strategy
With multiple developers:- Team completes Setup + Foundational together
- Once Foundational done:
- Developer A: User Story 1 (P1)
- Developer B: User Story 2 (P2)
- Developer C: User Story 3 (P3)
- Stories complete and integrate independently
Real-World Example
Tests: Optional by Default
Best Practices
Trust the Task Breakdown
The AI:- Maps entities to the stories that need them
- Orders tasks by dependency
- Identifies parallelization opportunities
- Ensures each story is independently testable
Follow TDD If Tests Included
When tests are requested:- Write test (it should FAIL)
- Write implementation (make test PASS)
- Refactor (keep test passing)
Commit Frequently
After each task or logical group:Stop at Checkpoints
After each user story phase:- Run all tests for that story
- Validate independently
- Consider deploying/demoing
- Decide: proceed to next story or polish current one?
Handoffs
After task generation:Analyze For Consistency
Validate consistency across spec, plan, and tasks (optional)
Implement Project
Execute the implementation plan (starts task execution)
File Structure
Next Steps
Implement
Execute the task plan and build the feature