name: task-breakdown description: Break down complex features into atomic, verifiable subtasks with dependency tracking. Use when implementing multi-step workflows, complex features requiring multiple files, or when the user requests task planning. context: fork
Break down this feature into atomic, verifiable subtasks: $ARGUMENTS
Create a structured task breakdown following the JSON schema:
Analyze the feature:
Create task plan:
Generate subtasks:
depends_onCreate JSON files:
.tmp/tasks/{feature}/task.json - Feature metadata.tmp/tasks/{feature}/subtask_01.json - First subtask.tmp/tasks/{feature}/subtask_02.json - Second subtaskValidate structure:
context_files = standards/conventions ONLYreference_files = project source files ONLYparallel: trueUse task-breakdown when:
Return a summary:
## Tasks Created
Location: .tmp/tasks/{feature}/
Files: task.json + {N} subtasks
Subtasks:
- 01: {title} (parallel: {true/false}, agent: {suggested_agent})
- 02: {title} (parallel: {true/false}, agent: {suggested_agent})
...
Next Steps:
- Execute subtasks in order
- Parallel tasks can run simultaneously
- Use task-cli.ts for status tracking
task.json:
{
"id": "jwt-auth",
"name": "JWT Authentication System",
"status": "active",
"objective": "Implement JWT-based authentication with refresh tokens",
"context_files": [
".opencode/context/core/standards/code-quality.md",
".opencode/context/core/standards/security-patterns.md"
],
"reference_files": [
"src/middleware/auth.middleware.ts"
],
"exit_criteria": [
"All tests passing",
"JWT tokens signed with RS256"
],
"subtask_count": 3,
"completed_count": 0,
"created_at": "2026-02-16T02:00:00Z"
}
subtask_01.json:
{
"id": "jwt-auth-01",
"seq": "01",
"title": "Create JWT service with token generation",
"status": "pending",
"depends_on": [],
"parallel": true,
"suggested_agent": "CoderAgent",
"context_files": [
".opencode/context/core/standards/security-patterns.md"
],
"reference_files": [],
"acceptance_criteria": [
"JWT tokens signed with RS256 algorithm",
"Access tokens expire in 15 minutes"
],
"deliverables": [
"src/auth/jwt.service.ts",
"src/auth/jwt.service.test.ts"
]
}
depends_on arrays