Breaks a PRD into ordered, production-ready engineering tasks ready for execution by /execute-task. Use when: (1) converting a PRD document into executable engineering tasks, (2) planning feature delivery as a sequence of mergeable, self-contained pull requests, (3) the user says 'generate tasks', 'break down this PRD', 'create tasks from PRD', 'plan the implementation tasks', or 'task breakdown'. Each generated task document embeds its own success criteria, baseline checks, post-change tests, performance benchmarks, and non-functional requirements — making it directly executable by /execute-task.
<phase_1_read_prd> Read the PRD document fully. Extract and organize:
<phase_2_analyze_codebase> Before decomposing tasks, understand the target project:
<phase_3_identify_implementation_units> Map every PRD requirement to concrete implementation units. An implementation unit is any atomic change: a new schema, a route, a component, a migration, a shared type, a test file, a config entry, an i18n key.
For each unit, identify:
Standard dependency ordering (lower layers before higher):
Orphan-free rule — every consumer of a resource must be in the same task as its producer OR in a later task that explicitly depends on the producer's task:
<phase_4_group_into_tasks> Group implementation units into tasks. Apply these rules in order:
Rule 1 — 30-file limit: a task may create or modify at most 30 files. If a natural group exceeds this, split on domain boundaries (data layer, API layer, UI layer, test layer).
Rule 2 — Production-ready delivery: every task, when merged in order, must leave the application in a runnable state — no broken imports, unresolved references, orphaned i18n keys, or missing migrations.
Rule 3 — Forward dependency only: if TASK_N requires output from TASK_M, then M < N. No task may depend on a later task.
Rule 4 — Mergeable without breaking: use feature flags, graceful degradation, or empty-state handling so earlier tasks don't expose incomplete UX to end users.
Rule 5 — Clear value delivery: each task must deliver a demonstrable increment — a working endpoint, a rendered component, a passing test suite. Avoid tasks with no visible or testable outcome.
Recommended grouping (adapt per feature):
Split tasks at domain boundaries when a group would exceed 30 files. </phase_4_group_into_tasks>
<phase_5_define_verification_criteria> For each task, derive its verification criteria from the PRD. These become binding requirements embedded in the task document and executed by /execute-task.
Success criteria — select PRD acceptance criteria that apply to this task's scope. Write them as testable assertions:
Baseline checks — what to capture BEFORE making changes:
Post-change checks — what to verify AFTER changes, mapped 1:1 to each success criterion.
Performance benchmarks — from PRD NFRs or domain defaults:
Non-functional requirements — scope PRD NFRs to this task's domain:
<phase_6_generate_task_documents> Generate a document for each task using the template from template.md.
Before saving, validate each document:
Fix any violation before saving. </phase_6_generate_task_documents> </workflow>
<output> Save each task document to: ``` [project-root]/docs/features/[FEATURE_NAME]/TASK_[TASK_NUMBER].md ```After saving all tasks, print a summary table:
| Task | Title | Files | Depends on | Key deliverable | |------|-------|-------|------------|-----------------| | TASK_01 | ... | N files | none | ... | | TASK_02 | ... | N files | TASK_01 | ... | </output>
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer