Feature Tasks Skill
You help developers break down technical plans into executable, dependency-ordered tasks. This skill generates a complete tasks.md file with phase-based organization and automatic quality checklists.
⚠️ IMPORTANT: Speckit Replacement
This skill REPLACES the speckit workflow. When executing this skill:
- •✅ Follow ONLY the instructions in this skill prompt
- •❌ DO NOT invoke any speckit bash scripts (in
.specify/scripts/) - •❌ DO NOT suggest speckit slash commands (
/speckit.*) - •❌ DO NOT reference speckit commands in your responses
This is a complete, standalone workflow for task generation.
What This Skill Does
Creates implementation tasks that:
- •Break plan into small, reviewable work items
- •Organize by user story priority (P1 → P2 → P3)
- •Define clear dependencies (sequential vs parallel)
- •Specify exact file paths for each task
- •Auto-generate quality checklists for validation
- •Enable independent testing of each user story
When to Use This Skill
- •After completing
feature-plan(plan.md exists) - •Before implementation begins
- •When you need a clear execution roadmap
- •When organizing work for multiple developers
Prerequisites
- •Completed
plan.mdin feature directory - •Completed
spec.mdin feature directory - •Optional:
data-model.md,contracts/,research.md - •Working in repository root directory
Workflow
Step 1: Load Context
Read Required Files:
- •
<feature-dir>/spec.md:- •User stories with priorities (P1, P2, P3)
- •Functional requirements (FR-NNN)
- •Success criteria
- •
<feature-dir>/plan.md:- •Technology stack (detected by feature-plan)
- •Architecture decisions
- •Project structure section
- •Service changes
Read Optional Files (if they exist):
3. <feature-dir>/data-model.md:
- •Entities and migrations
- •Relationships
- •
<feature-dir>/contracts/:- •GraphQL schema or API contracts
- •
<feature-dir>/research.md:- •Technical decisions
Output: Complete understanding of what to build and how
Step 2: Extract File Paths from Plan
Parse plan.md "Project Structure" section:
Example from plan:
## Project Structure src/ ├── components/notifications/ - New components ├── hooks/ - New hooks ├── services/ - Business logic
Extract paths for task descriptions:
- •Component directory:
src/components/notifications/ - •Hooks directory:
src/hooks/ - •Services directory:
src/services/
If paths not in plan: Use generic placeholders
- •
<component-dir>/ComponentName.tsx - •
<service-dir>/ServiceName.ts - •
<model-dir>/ModelName.py
Step 3: Identify Task Phases
Standard Phase Structure:
- •Phase 1: Setup (Shared Infrastructure)
- •Phase 2: Foundation (Blocking Prerequisites)
- •Phase 3+: User Stories (One phase per story, P1 → P2 → P3)
- •Final Phase: Polish & Cross-Cutting
Step 4: Generate Tasks by Phase
Task Format (STRICT REQUIREMENT):
- [ ] T001 [P?] [Story?] Description with exact file path
Components:
- •
- [ ]- Markdown checkbox (unchecked) - •
T001- Sequential task ID - •
[P]- Optional parallel marker (different files, no dependencies) - •
[US1]- Story label (for user story phases ONLY) - •Description - Clear action with file path from plan.md
Phase 1: Setup Tasks
Purpose: Initialize project infrastructure
Example Tasks:
## Phase 1: Setup (Shared Infrastructure) **Purpose**: Project initialization and basic structure - [ ] T001 Create feature branch per plan.md - [ ] T002 Install dependencies listed in plan.md - [ ] T003 [P] Configure linting/formatting tools
Rules:
- •NO story labels
- •Can have [P] markers for parallel work
- •Keep minimal (only essential setup)
Phase 2: Foundation Tasks
Purpose: Blocking prerequisites for ALL user stories
Map from plan.md:
- •If data-model.md exists → Create migration tasks
- •If contracts/ exists → Create schema/type definition tasks
- •Extract "Foundation" items from plan.md structure
Example Tasks:
## Phase 2: Foundation (Blocking Prerequisites) **Purpose**: Core infrastructure that MUST be complete before ANY user story ⚠️ **CRITICAL**: No user story work can begin until this phase is complete - [ ] T004 Create database migration from data-model.md - [ ] T005 [P] Define types from data-model.md in <types-dir>/ - [ ] T006 [P] Create repository in <repo-dir>/ per plan.md - [ ] T007 Add schema definitions from contracts/ to <schema-dir>/ **Checkpoint**: Foundation ready - user story implementation can now begin
Rules:
- •NO story labels (shared foundation)
- •Use [P] for tasks on different files
- •Must complete before user stories
- •Use paths from plan.md structure
Phase 3+: User Story Tasks
One phase per user story, prioritized P1 → P2 → P3
Map from spec.md + plan.md:
- •User story title and goal from spec.md
- •File paths from plan.md structure
- •Components/services needed from plan architecture
Structure:
## Phase 3: User Story 1 - [Title from spec] (Priority: P1) 🎯 MVP **Goal**: [What this story delivers from spec] **Independent Test**: [How to verify from spec acceptance criteria] ### Implementation for User Story 1 - [ ] T009 [P] [US1] Create [Component] in <path-from-plan>/ComponentName.ext - [ ] T010 [P] [US1] Create [Component2] in <path-from-plan>/Component2.ext - [ ] T011 [US1] Implement [Service] in <path-from-plan>/ServiceName.ext (depends on T009, T010) - [ ] T012 [US1] Integrate [components] in <path-from-plan>/IntegrationPoint.ext **Checkpoint**: User Story 1 should be fully functional and testable independently
Rules:
- •ALL tasks MUST have [US1]/[US2]/[US3] story label
- •Use [P] for tasks on different files with no dependencies
- •Use exact paths from plan.md
- •Order: Components → Services → Integration
Final Phase: Polish Tasks
Purpose: Cross-cutting improvements
Example Tasks:
## Phase N: Polish & Cross-Cutting Concerns **Purpose**: Improvements that affect multiple user stories - [ ] T042 [P] Update project documentation - [ ] T043 Run validation from quickstart.md - [ ] T044 Performance optimization per success criteria - [ ] T045 Security audit per constitution (if exists)
Step 5: Generate Quality Checklists
Auto-generate in <feature-dir>/checklists/
Checklist Generation Strategy:
- •Load constitution (if exists)
- •Search for relevant requirements
- •Generate checklist items from found requirements
- •Reference constitution sections, don't duplicate content
requirements.md (Spec Quality)
Always generate:
# Specification Quality Checklist **Purpose**: Validate spec completeness before implementation **Feature**: [Link to spec.md] ## Content Quality - [ ] No implementation details in spec - [ ] Focused on user value - [ ] Written for non-technical stakeholders - [ ] All mandatory sections completed ## Requirement Completeness - [ ] No [NEEDS CLARIFICATION] markers remain - [ ] Requirements testable and unambiguous - [ ] Success criteria measurable - [ ] All acceptance scenarios defined - [ ] Edge cases identified - [ ] Scope clearly bounded
implementation.md (Code Quality)
Generate from constitution (if exists):
- •
Search constitution for:
- •Code quality requirements (search: "code quality", "TypeScript", "strict mode")
- •Logging requirements (search: "logging", "observability", "console")
- •URL construction (search: "URL", "hardcoded")
- •API patterns (search: "API", "GraphQL", "REST")
- •
Extract requirements and create checklist items
- •
Reference sections, don't copy content
Example output:
# Implementation Quality Checklist **Purpose**: Validate code quality during implementation **Feature**: [Link to tasks.md] [If constitution exists:] ## Code Quality (per constitution) - [ ] [Requirement found in constitution, e.g., "Strict type checking enabled"] - Reference: Constitution § [section found by search] - [ ] [Another requirement] - Reference: Constitution § [section] ## Logging (per constitution) - [ ] Use project logging utilities (not console.*) - Reference: Constitution § [section on logging] - Find utilities: Search codebase for logger imports ## URL Construction (per constitution) - [ ] No hardcoded service URLs - Reference: Constitution § [section on URLs] - Use URL builders from project [If no constitution:] ## Code Quality (Best Practices) - [ ] Consistent with existing code style - [ ] Functions have clear, single purpose - [ ] Error handling implemented - [ ] No hardcoded values
testing.md (Test Quality)
Generate from constitution (if exists):
- •
Search for testing requirements:
- •Test coverage (search: "coverage", "testing", "test")
- •Test quality (search: "test quality", "test structure")
- •Pre-commit (search: "pre-commit", "commit requirements")
- •
Create checklist from findings
Example output:
# Testing Quality Checklist **Purpose**: Validate test coverage and quality **Feature**: [Link to tasks.md] [If constitution has pre-commit requirements:] ## Pre-Commit Requirements (per constitution § X) - [ ] All tests pass - Command: [Extract from constitution or detect from project] - [ ] Builds succeed - Command: [Extract or detect] - [ ] [Other requirements from constitution] [If constitution has coverage requirements:] ## Test Coverage (per constitution § X) - [ ] Coverage ≥ [threshold from constitution] - [ ] [Other coverage requirements] [If no constitution:] ## Testing (Best Practices) - [ ] All tests pass before commit - [ ] New functionality has tests - [ ] Edge cases covered - [ ] Tests are maintainable
Step 6: Constitution Validation
If constitution exists:
- •Load constitution file
- •Validate task format follows any specified standards
- •Check if tasks address constitutional requirements
- •Ensure checklists reference constitution properly
Output:
- •PASS: Tasks well-formed, checklists reference constitution
- •WARN: Missing task types that constitution requires
- •FAIL: Task format violations
If no constitution: Skip validation
Step 7: Generate tasks.md
File: <feature-dir>/tasks.md
Complete Structure:
# Tasks: [FEATURE NAME] **Prerequisites**: plan.md, spec.md [, data-model.md] [, contracts/] ## Format: `[ID] [P?] [Story] Description` - **[P]**: Can run in parallel - **[Story]**: User story (US1, US2, US3) - Include exact file paths from plan.md --- ## Phase 1: Setup [Tasks from Step 4] --- ## Phase 2: Foundation [Tasks from Step 4] **Checkpoint**: Foundation ready --- ## Phase 3: User Story 1 - [Title] (Priority: P1) 🎯 MVP [Tasks from Step 4] **Checkpoint**: US1 complete --- [Additional user story phases...] --- ## Phase N: Polish & Cross-Cutting Concerns [Tasks from Step 4] --- ## Dependencies & Execution Order ### Phase Dependencies - **Setup (Phase 1)**: No dependencies - **Foundation (Phase 2)**: Depends on Setup - BLOCKS all user stories - **User Stories (Phase 3+)**: Depend on Foundation - Can proceed in parallel (if staffed) - Or sequentially by priority (P1 → P2 → P3) - **Polish (Final)**: Depends on desired user stories complete ### User Story Dependencies - **User Story 1 (P1)**: Independent after Foundation - **User Story 2 (P2)**: Independent after Foundation - **User Story 3 (P3)**: Independent after Foundation ### Parallel Opportunities - Tasks marked [P] can run in parallel within each phase - User stories can be worked on in parallel by different developers
Step 8: Report Completion
Output Message:
✓ Task breakdown created: <feature-dir>/ Generated Files: - tasks.md ([N] tasks across [M] phases) - Phase 1: Setup ([N] tasks) - Phase 2: Foundation ([N] tasks) - BLOCKS user stories - Phase 3: User Story 1 - MVP ([N] tasks) [...] - checklists/requirements.md ([N] items) - checklists/implementation.md ([N] items, references constitution) - checklists/testing.md ([N] items, references constitution) Task Statistics: - Total: [N] tasks - Parallel opportunities: [N] tasks marked [P] - User Story 1 (MVP): [N] tasks Constitution Check: [PASS/WARN/SKIPPED] Next Steps: 1. Review tasks.md for completeness 2. Review checklists/ for quality gates 3. When ready to implement, invoke the feature-implement skill To continue: Simply say "use feature-implement skill" or "start implementation"
Handoff Instructions:
- •Tell the user the task breakdown is complete and ready for review
- •Invite them to proceed with the
feature-implementskill when ready - •DO NOT suggest using
/speckit.implementor any other speckit command - •Make it clear they should invoke the feature-implement SKILL, not a slash command
Task Quality Rules
Required Task Elements
Every task MUST have:
- •✅ Checkbox:
- [ ] - •✅ Sequential ID:
T001,T002, etc. - •✅ Story label:
[US1](for user story phases ONLY) - •✅ Parallel marker:
[P](if applicable) - •✅ Description: Action + exact file path from plan.md
Parallel Marker [P] Rules
Use [P] when:
- •✅ Different file than previous task
- •✅ No dependency on incomplete tasks
- •✅ Can run simultaneously with other [P] tasks
Do NOT use [P] when:
- •❌ Same file as previous task
- •❌ Depends on previous task output
- •❌ Must run in specific order
Examples
Example 1: TypeScript React Feature
Input: Plan with React components, spec with 2 user stories
Output:
- •tasks.md with 25 tasks organized by user story
- •Paths use plan.md structure:
src/components/,src/hooks/ - •Checklists reference TypeScript/React best practices
- •If constitution exists: References logging, URL construction requirements
Example 2: Python Django Feature
Input: Plan with Django views, spec with 3 user stories
Output:
- •tasks.md with 35 tasks
- •Paths use plan.md structure:
app/views/,app/models/,app/tests/ - •Checklists reference Django patterns
- •If constitution exists: References testing requirements
Example 3: Rust Microservice
Input: Plan with Axum handlers, spec with 1 user story
Output:
- •tasks.md with 15 tasks
- •Paths:
src/handlers/,src/models/,src/db/ - •Checklists reference Rust idioms
- •Constitution check for error handling, testing
Error Handling
Missing Prerequisites
ERROR: Missing required files Expected: <feature-dir>/plan.md Found: None Please run `feature-plan` skill first to generate technical plan.
Invalid User Stories
ERROR: No user stories found in spec.md Spec must have at least one user story with priority (P1, P2, or P3). Please update spec.md or re-run `feature-spec` skill.
Cannot Extract Paths
WARNING: Could not find "Project Structure" section in plan.md Using generic placeholder paths: - <component-dir>/ - <service-dir>/ - <model-dir>/ Recommendation: Update plan.md with specific paths, then regenerate tasks.
Quality Guidelines
What Makes Good Tasks
✅ Specific: Clear action with exact file path ✅ Testable: Can verify completion ✅ Scoped: One logical change per task ✅ Organized: Grouped by user story ✅ Independent: Stories testable standalone
What to Avoid
❌ Vague: "Implement notifications" (too broad) ❌ No paths: "Create component" (which file?) ❌ Hardcoded paths: Using 206mp paths instead of plan.md paths ❌ Dependent stories: US2 cannot be tested without US1 ❌ Giant tasks: Single task doing 5 things
Configuration
Defaults:
- •Auto-generate checklists: Yes (3 files always created)
- •Constitution validation: Enabled if constitution found
- •Task format enforcement: Strict (checkbox, ID, story label, path)
- •User story organization: Required (tasks grouped by story)
- •Reference constitution: Yes (don't duplicate content)
Next Skill in Workflow
feature-implement - Execute tasks and track progress
- •Input: Reads tasks.md, plan.md, spec.md, checklists/
- •Output: Implemented code + updated tasks.md with [X] checkboxes
- •Purpose: Build the feature phase by phase
Notes
- •This skill generates tasks.md + checklists/
- •All tasks follow strict checkbox format
- •Constitution validation runs if constitution exists
- •Checklists reference constitution, don't duplicate it
- •User stories organized independently (MVP-first delivery)
- •File paths come from plan.md, not hardcoded
- •Works with any language/framework