create-tasks
Create Tasks
Decompose requirements into detailed, actionable task files with codebase-informed enrichment.
Required Inputs
- Feature name identifying the
tasks/prd-<name>/directory. - At minimum,
_prd.mdor_techspec.mdin that directory.
Workflow
-
Load context.
- Read
_prd.mdand_techspec.mdfromtasks/prd-<name>/. - Read existing ADRs from
tasks/prd-<name>/adrs/to understand the decision context behind requirements and design choices. - Warn the user if
_techspec.mdis missing but continue with available documents. - If both
_prd.mdand_techspec.mdare missing, stop and ask the user to create at least one first. - Spawn an Agent tool call to explore the codebase for files to create or modify, test patterns, and coding conventions.
- Read
-
Break down into tasks.
- Decompose implementation sections from the TechSpec into granular, independently implementable tasks.
- Each task must have: title, domain, type, scope, complexity, and dependencies.
- When a task directly implements or is constrained by a specific ADR, include the ADR reference in the task's "Related ADRs" section under Implementation Details.
- Embed test requirements in every task. Never create separate tasks dedicated solely to testing.
- Follow the structure defined in
references/task-template.md. - Refer to
references/task-context-schema.mdfor metadata field definitions.
-
Present task breakdown for interactive approval.
- Show all tasks with: titles, descriptions, complexity ratings, and dependency chains.
- Wait for user feedback before proceeding.
- If the user requests changes, revise the breakdown and present again.
- Iterate until the user explicitly approves.
-
Generate task files.
- Write
_tasks.mdas the master task list containing all task titles, statuses, and dependencies. - Write individual task files as
task_01.md,task_02.md, throughtask_N.md. - Task files use the
task_prefix without a leading underscore. - Each file must start with
## status: pendingfollowed by the<task_context>metadata block. - Task numbering must be sequential and consistent between
_tasks.mdand individual files.
- Write
-
Enrich each task file.
- For each task file, check whether it already has
## Overview,## Deliverables, and## Testssections. If all three exist, skip enrichment for that file. - Map the task to PRD requirements and TechSpec guidance.
- Spawn an Agent tool call to discover relevant files, dependent files, integration points, and project rules for this specific task.
- Fill all template sections from
references/task-template.md:- Overview: what the task accomplishes and why, in 2-3 sentences.
- Requirements: specific, numbered technical requirements.
- Subtasks: 3-7 checklist items describing WHAT, not HOW.
- Implementation Details: file paths to create or modify, integration points. Reference TechSpec for patterns.
- Relevant Files and Dependent Files: discovered paths from codebase exploration.
- Deliverables: concrete outputs with mandatory test items and at least 80% coverage target.
- Tests: specific test cases as checklists for unit and integration tests.
- Success Criteria: measurable outcomes.
- Reassess complexity based on exploration findings and update if changed.
- Update the task file in place with enriched content.
- If enrichment fails for one task, continue to the next and report all failures at the end.
- For each task file, check whether it already has
Error Handling
- If both
_prd.mdand_techspec.mdare missing, stop and ask the user to create at least one first. - If the user rejects the task breakdown, incorporate all feedback before presenting again.
- If codebase exploration reveals scope that does not match the TechSpec, note the discrepancy and ask the user how to proceed.
- If the target directory does not exist, create it.
- If a task file already exists and is fully enriched, skip it and move to the next.
More from compozy/looper
create-prd
Creates a Product Requirements Document through interactive brainstorming with parallel codebase and web research. Use when starting a new feature or product, building a PRD, or brainstorming requirements. Do not use for technical specifications, task breakdowns, or code implementation.
3execute-prd-task
Executes one PRD task end-to-end using a provided task file, PRD directory, tracking file paths, and auto-commit mode. Use when a prompt includes a task specification that must be implemented, validated, and reflected in task tracking files. Do not use for PR review batches, generic coding tasks without a PRD task file, or standalone verification-only work.
3create-techspec
Creates a Technical Specification by translating PRD business requirements into implementation designs through interactive technical clarification. Use when a PRD exists and needs a technical plan, or when technical architecture decisions need documentation. Do not use for PRD creation, task breakdown, or direct code implementation.
3fix-reviews
Executes provider-agnostic PR review remediation using existing review round files under tasks/prd-<name>/reviews-NNN/. Use when resolving batched review issues, updating issue/grouped markdown files, implementing fixes, and verifying the result. Do not use for PRD task execution, review export/fetch, or generic coding tasks without review issue files.
1