Decomposes PRDs and TechSpecs into detailed, independently implementable task files with enrichment from codebase exploration. Use when a PRD or TechSpec exists and needs to be broken down into executable tasks, or when task files need enrichment with implementation context. Do not use for PRD creation, TechSpec generation, or direct task execution.
Decompose requirements into detailed, actionable task files with codebase-informed enrichment.
.compozy/tasks/<name>/ directory._prd.md or _techspec.md in that directory.Load type registry.
.compozy/config.toml.[tasks].types, use that list as the allowed type values.frontend, backend, docs, test, infra, refactor, chore, bugfix.Load context.
_prd.md and from ._techspec.md.compozy/tasks/<name>/.compozy/tasks/<name>/adrs/ to understand the decision context behind requirements and design choices._techspec.md is missing:
## Implementation Details, ### Relevant Files, and ### Dependent Files.<requirements> with PRD-derived behavioral requirements instead of TechSpec-derived technical requirements._prd.md and _techspec.md are missing, stop and ask the user to create at least one first.Break down into tasks.
low: Single file change, no new interfaces, no concurrency, straightforward logic.medium: 2-4 files, may introduce a new interface or struct, limited integration points.high: 5+ files, new subsystem or significant refactor, multiple integration points, concurrency involved.critical: Cross-cutting change affecting many packages, high risk of regression, requires coordination with other tasks.references/task-template.md.references/task-context-schema.md for metadata field definitions.Present task breakdown for interactive approval.
Generate task files.
_tasks.md as the master task list using this exact markdown table format:
# [Feature Name] — Task List
## Tasks
| # | Title | Status | Complexity | Dependencies |
|---|-------|--------|------------|--------------|
| 01 | [Task title] | pending | [low/medium/high/critical] | [task_NN, ... or —] |
task_01.md, task_02.md, through task_N.md.task_ prefix without a leading underscore.status, title, type, complexity, and dependencies. Use dependencies: [] when there are no dependencies — do not omit the field._tasks.md and individual files.Enrich each task file.
## Overview, ## Deliverables, and ## Tests sections. If all three exist, skip enrichment for that file.references/task-template.md. Every task file MUST contain each of the following sections — omitting any is a failure:
## Overview: what the task accomplishes and why, in 2-3 sentences.<critical> block: the standard critical reminders block (read PRD/TechSpec, reference TechSpec, focus on WHAT, minimize code, tests required).<requirements> block: specific, numbered technical requirements using MUST/SHOULD language.## 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: discovered paths from codebase exploration with brief reasons.### Dependent Files: files that will be affected by this task with brief reasons.### Related ADRs: links to relevant ADRs if any exist, or omit subsection if no ADRs apply.## Deliverables: concrete outputs with mandatory test items and at least 80% coverage target.## Tests: specific test cases as checklists, split into unit tests and integration tests categories.## Success Criteria: measurable outcomes including "All tests passing" and "Test coverage >=80%".Run validate-tasks.
compozy validate-tasks --name <feature>.Do NOT produce tasks with these defects:
_prd.md and _techspec.md are missing, stop and ask the user to create at least one first.PyTorch深度学习模式与最佳实践,用于构建稳健、高效且可复现的训练流程、模型架构和数据加载。