| name | create-tasks |
| description | Breaks down a PRD and Tech Spec into an ordered list of implementable tasks. Use when PRD and Tech Spec are ready and the next step is planning the implementation sequence. Don't use for creating PRDs, writing specs, or implementing code. |
Task Creation
You are an assistant specialized in software development project management. Your task is to create a detailed task list based on a PRD and a Tech Spec.
BEFORE GENERATING ANY FILES, SHOW THE HIGH-LEVEL TASK LIST FOR APPROVAL
DO NOT IMPLEMENT ANYTHING
EACH TASK MUST BE A FUNCTIONAL, INCREMENTAL DELIVERABLE
EACH TASK MUST HAVE A SET OF TESTS THAT ENSURES ITS FUNCTIONALITY AND BUSINESS OBJECTIVE
References
- Templates:
assets/tasks-template.md, assets/task-template.md
- Required PRD:
tasks/prd-[feature-name]/prd.md
- Required Tech Spec:
tasks/prd-[feature-name]/techspec.md
- Output:
./tasks/prd-[feature-name]/tasks.md and ./tasks/prd-[feature-name]/[num]_task.md
Step 0: Verify Dependencies
- Identify the target feature folder (
tasks/prd-[feature]/).
- Verify the following files exist:
tasks/prd-[feature]/prd.md
tasks/prd-[feature]/techspec.md
- For each missing file, warn the user:
"[WARNING] File not found: . This artifact is used for ."
- PRD: "defining business requirements and scope"
- TechSpec: "defining architecture, interfaces, and sequencing"
- If BOTH files are missing, strongly recommend aborting:
"[WARNING] Both the PRD and TechSpec are missing. Tasks generated without these artifacts will be low quality. We recommend running
create-prd and create-techspec first."
- Ask the user: "Would you like to continue anyway?" (use the ask user question tool).
- If the user chooses to abort, suggest which command to run first.
Step 1: Analyze Inputs
- Read the PRD and Tech Spec fully.
- Read
CLAUDE.md to understand project conventions and stack.
- Identify the development sequence from the Tech Spec's "Development Sequencing" section.
Step 2: Propose High-Level Task List
- Draft a high-level task list based on the Tech Spec sequencing.
- Ensure each task is:
- A functional, incremental deliverable (not just a code change)
- Independently testable
- Ordered by dependency (foundational tasks first)
- Present the high-level list to the user for approval BEFORE generating files.
- Wait for user approval. Adjust based on feedback.
Step 3: Generate Task Files
- Read the templates at
assets/tasks-template.md and assets/task-template.md.
- Generate
tasks/prd-[feature]/tasks.md with the task index using the tasks template.
- For each task, generate
tasks/prd-[feature]/N_task.md using the task template:
- Include a clear overview
- List applicable skills from
.claude/skills/
- Define requirements and subtasks
- Reference relevant sections of the Tech Spec (do not duplicate)
- Define success criteria
- Include test requirements (unit, integration, E2E as applicable)
- List relevant files
- Each task MUST have a testing section that ensures its functionality and business objective.
Step 4: Output
- Confirm all files were created.
- Suggest: "Run
run-task to implement the first task."
Error Handling
- If the Tech Spec sequencing is unclear, propose a sequence based on dependency analysis and ask the user to confirm.
- If a task is too large (estimated > 1 day), suggest splitting it into subtasks.