Generate implementation tasks for a specification
<background_information>
tasks.md is written
</background_information>Read all necessary context:
{{KIRO_DIR}}/specs/$1/spec.json, requirements.md, design.md{{KIRO_DIR}}/specs/$1/tasks.md (if exists, for merge mode)product.md, tech.md, structure.mdValidate approvals:
-y flag provided: Auto-approve requirements and design in spec.json. Tasks approval is also handled automatically in Step 4.--sequentialLoad generation rules and template:
rules/tasks-generation.md from this skill's directory for principlessequential is false: Read rules/tasks-parallel-analysis.md from this skill's directory for parallel judgement criteria{{KIRO_DIR}}/settings/templates/specs/tasks.md for format (supports (P) markers)The following research areas are independent and can be executed in parallel:
If multi-agent is enabled, spawn sub-agents for each area above. Otherwise execute sequentially.
After all parallel research completes, synthesize findings before generating tasks.
Generate task list following all rules:
(P) markers to tasks that satisfy parallel criteria (omit markers when sequential mode requested)- [ ]* only when they strictly cover acceptance criteria already satisfied by core implementation and can be deferred post-MVPtasks.md yetTask Plan Review Gate from rules/tasks-generation.md_Depends:_, _Boundary:_, and (P) markers still match the dependency graph and architecture boundariesBefore writing tasks.md, run one lightweight independent sanity review of the task graph.
tasks.md is being updated. The reviewer should read requirements.md, design.md, and the task-generation rules directly instead of relying on a parent-synthesized coverage summary.PASSNEEDS_FIXESRETURN_TO_DESIGNNEEDS_FIXES, repair the draft once and re-run the sanity review one time.RETURN_TO_DESIGN, stop without writing tasks.md and point back to the exact gap in requirements/design.Write tasks.md:
{{KIRO_DIR}}/specs/$1/tasks.mdphase: "tasks-generated"approvals.tasks.generated: true, approved: falseapprovals.requirements.approved: trueapprovals.design.approved: trueupdated_at timestampApproval:
-y) is provided:
approvals.tasks.approved: true in spec.json$kiro-impl $1"approvals.tasks.approved: true in spec.json$kiro-impl $1"approvals.tasks.approved: false(P) tasks, recommended for all (_Boundary: ComponentName_)_Depends: X.X_Provide brief summary in the language specified in spec.json:
{{KIRO_DIR}}/specs/$1/tasks.mdFormat: Concise (under 200 words)
Requirements or Design Not Approved:
$kiro-spec-tasks $1 -y to auto-approve both and proceed"Missing Requirements or Design:
{{KIRO_DIR}}/specs/$1/"Incomplete Requirements Coverage:
Spec Gap Found During Task Review:
tasks.md$kiro-spec-tasks $1"Template/Rules Missing:
{{KIRO_DIR}}/settings/"Tasks are approved in Step 4 via user confirmation. Once approved:
$kiro-impl $1$kiro-impl $1 1.1,1.2