Task Generation
Generate a detailed, step-by-step task list in Markdown format based on an existing Product Requirements Prompt (PRP).
When to Use This Skill
Use this skill when:
-
A PRP exists at .ai/[feature-name]/prp.md
-
You need to break down the feature into implementable tasks
-
Planning how a junior developer will implement the feature
Input
- feature_name
- Locates the PRP at .ai/[feature-name]/prp.md
Process
-
Receive PRP Reference: The user points to a specific PRP file
-
Analyze PRP: Read and analyze the functional requirements, user stories, and other sections
-
Clarify Open Questions: If there are still any open questions, ask the user for clarification and amend the PRP accordingly before proceeding
-
Phase 1: Generate Parent Tasks: Based on the PRP analysis, create the main high-level tasks (3-8 parent tasks). Present these to the user in the specified format (without sub-tasks yet). Inform: "I have generated the high-level tasks. Ready to generate sub-tasks? Respond with 'go' to proceed."
-
Wait for Confirmation: Pause and wait for the user to respond with "go"
-
Phase 2: Generate Sub-Tasks: Once confirmed, break down each parent task into smaller, actionable sub-tasks
-
Identify Relevant Files: Based on tasks and PRP, identify potential files that need creation or modification
-
Generate Final Output: Combine parent tasks, sub-tasks, relevant files, and notes
-
Save Task List: Save to .ai/[feature-name]/tasks.md
-
Commit Task List: Stage and commit the new task list
Commit Message Template
feat: add .ai/[feature-name]/tasks.md
Generate tasks according to .ai/[feature-name]/prp.md
Output Format
The tasks.md file must follow this structure:
Context
See [prp.md][./prp.md] for the corresponding Product Requirements Prompt.
Relevant Files
path/to/file1.ts- Brief description of why this file is relevantpath/to/file1.test.ts- Unit tests forfile1.tspath/to/another/file.tsx- Brief descriptionpath/to/another/file.test.tsx- Unit tests foranother/file.tsxlib/utils/helpers.ts- Utility functions needed for calculationslib/utils/helpers.test.ts- Unit tests for helpers.ts
Tasks
-
1. Parent Task Title
- 1.1. Sub-task description 1.1
- 1.2. Sub-task description 1.2
-
2. Parent Task Title
- 2.1. Sub-task description 2.1
-
3. Parent Task Title (may not require sub-tasks)
Target Audience
Assume the primary reader is a junior developer who will implement the feature. Tasks should be clear, actionable, and provide enough context for someone less familiar with the codebase to complete them.
Interaction Model
The process explicitly requires a pause after generating parent tasks to get user confirmation ("Go") before proceeding to generate detailed sub-tasks. This ensures the high-level plan aligns with user expectations.