skills/cy-create-tasks/SKILL.md
Decomposes PRDs and TechSpecs into robust, independently implementable task files, assigning every test case from _tests.md to exactly one task and enriching tasks 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.
npx skillsauth add compozy/compozy cy-create-tasksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Decompose requirements into robust, independently implementable task files with codebase-informed enrichment.
Every task becomes one full agent run: a fresh context that re-reads the spec corpus, re-explores the codebase, and rebuilds its model of the system from zero before the first edit. That ramp-up is the expensive part of a run — many small tasks pay it over and over and discard the accumulated reasoning at every boundary, while a robust task keeps it working.
_tasks.md edges..compozy/tasks/<name>/ directory._prd.md or _techspec.md in that directory._tests.md (test contract) and _user_stories.md (story catalog).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, _techspec.md, _user_stories.md, and _tests.md from .compozy/tasks/<name>/..compozy/tasks/<name>/adrs/ to understand the decision context behind requirements and design choices._techspec.md is missing:
_user_stories.md catalog instead of TechSpec implementation sections.## 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.
_tasks.md graph edges are met. No task may require undeclared work from another task. If two tasks share a tight coupling, merge them — or extract the shared piece into a dependency task only when a real boundary separates it.low: contained change on well-trodden patterns, low regression risk.medium: new interfaces or integration points, moderate coordination.high: new subsystem, concurrency, or a broad integration surface.critical: cross-cutting change with high regression risk, requires coordination with other tasks.references/task-template.md and the metadata definitions in references/task-context-schema.md.Assign the test contract.
UT-, IT-, and E2E- ID from _tests.md to exactly one task — the task that implements the behavior the case verifies. Integration and E2E cases go to the task that completes the flow they exercise._tests.md appears in exactly one task's planned ## Tests section: no orphan IDs, no duplicates._tests.md is missing: warn the user, then write concrete inline cases per task instead — each naming the exact input, condition, and expected result (e.g., "POST /job/done with unknown job ID returns 404"), never a vague "test the happy path".Present the task breakdown for interactive approval.
Generate task files.
_tasks.md as the canonical task graph manifest. It MUST start with this YAML frontmatter shape:
---
schema_version: "compozy.tasks/v2"
workflow: [feature-name]
graph:
nodes:
- id: task_01
file: task_01.md
edges:
- from: task_01
to: task_02
---
# [Feature Name] Task List
_tasks.md is the only place dependency relationships are stored. Each edge means from must finish before to can start.graph.nodes, using canonical sequential ids (task_01, task_02, ...) and matching files (task_01.md, task_02.md, ...).edges: [] when there are no dependencies.task_01.md through task_N.md (the task_ prefix has no leading underscore).status, title, type, and complexity. Dependency information lives only in _tasks.md._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 slice of the system the task delivers and why, in 2-3 sentences.<critical> block: the standard critical reminders block from the template.<requirements> block: specific, numbered technical requirements using MUST/SHOULD language.## Subtasks: checklist items describing WHAT, not HOW — one per coherent unit of work, typically 5-12 for a robust task.## 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 the subsection if none apply.## Deliverables: concrete outputs, including every assigned test case implemented and passing.## Tests: the assigned test-case IDs grouped by level with the behavior they cover; full case definitions stay in _tests.md.## Success Criteria: measurable outcomes including "Every assigned test case implemented and passing".Validate.
compozy tasks validate --name <feature>. If it exits non-zero, fix the reported issues and re-run; do not finish until it exits 0._tests.md appears in exactly one task file's ## Tests section. Fix any orphan or duplicate and re-audit._prd.md and _techspec.md are missing, stop and ask the user to create at least one first._tests.md fits no task, the breakdown is missing a slice — fix the breakdown rather than dropping the case.development
Expands a raw idea into a structured, research-backed spec in .compozy/tasks/<slug>/_idea.md through interactive brainstorming, web research, business analysis, and multi-advisor debate. Use when the user has a feature idea and wants to explore and structure it before creating a PRD. Do not use for PRD creation, technical specifications, task breakdown, or code implementation.
testing
Reconciles a finished workflow's planned decisions (its Accepted ADRs) against the settled reality (git diff, review issues, and task status), then promotes the proven, cross-feature-durable ones into a durable project decision log at .compozy/DECISIONS.md plus .compozy/decisions/AD-NNN.md. Use when a workflow has finished its full pipeline (review round, reviews fix, and final verify) and you want to capture its durable decisions as the final step, or when re-running capture to refresh the log after further changes. Do not use for capturing decisions mid-implementation before review remediation, for PRD or TechSpec authoring, for PR review remediation, or for generic note-taking.
development
Performs a comprehensive code review of a PRD implementation and generates a review round directory with issue files compatible with cy-fix-reviews. Use when reviewing implemented PRD tasks, creating a manual review round without an external provider, or performing a quality audit of code changes. Do not use for fetching reviews from external providers, fixing existing review issues, executing PRD tasks, or editing source code.
development
Enforces fresh verification evidence before any completion, fix, or passing claim, and before commits or PR creation. Use when an agent is about to report success, hand off work, or commit code. Do not use for early planning, brainstorming, or tasks that have not yet reached a concrete verification step.