Chart Tasks
Decompose an approved spec into an ordered list of small, independently executable tasks. Each task must be specific enough that an agent with no project context can execute it, and must include verification criteria so completion is provable.
Process Flow
digraph chart_tasks {
"Read approved spec" [shape=box];
"Identify components" [shape=box];
"Map dependencies" [shape=box];
"Break into tasks" [shape=box];
"Add verification to each" [shape=box];
"Order by dependencies" [shape=box];
"Self-review plan" [shape=box];
"Write plan to file" [shape=box];
"Present plan to user" [shape=box];
"User approves plan?" [shape=diamond];
"Revise plan" [shape=box];
"Invoke drive-execution" [shape=doublecircle];
"Read approved spec" -> "Identify components";
"Identify components" -> "Map dependencies";
"Map dependencies" -> "Break into tasks";
"Break into tasks" -> "Add verification to each";
"Add verification to each" -> "Order by dependencies";
"Order by dependencies" -> "Self-review plan";
"Self-review plan" -> "Write plan to file";
"Write plan to file" -> "Present plan to user";
"Present plan to user" -> "User approves plan?";
"User approves plan?" -> "Invoke drive-execution" [label="yes"];
"User approves plan?" -> "Revise plan" [label="no"];
"Revise plan" -> "Write plan to file";
}
Checklist
- Read the approved spec thoroughly. Understand every requirement, constraint, and edge case.
- Deploy the task-decomposer agent to analyze the spec and produce an initial task breakdown. Review the agent's output and refine as needed.
- Identify components -- what distinct pieces of work exist? Group by module, layer, or feature area.
- Map dependencies -- which components depend on which? What must be built first?
- Break into tasks -- each task should be completable in 2-5 minutes as a single atomic action by a focused agent. If a task feels like it would take longer, break it further. Each TDD sequence is 5 separate steps: write test, run test (RED), write implementation, run test (GREEN), commit. Each task includes:
- Task number and title
- Description (specific enough for an agent with no context)
- File paths to create or modify
- Dependencies (which tasks must complete first)
- Verification command or criteria
- Identify parallel opportunities -- which tasks are independent and can run concurrently?
- Self-review the plan checking:
- Does every spec requirement map to at least one task?
- Does every task have verification criteria?
- Are dependencies correctly ordered (no circular dependencies)?
- Are types, method signatures, and names consistent across tasks?
- Placeholder scan: search the plan for TBD, TODO, 'similar to', 'see the spec', 'add appropriate'. Fix all instances.
- Write plan to file at
docs/forge/plans/YYYY-MM-DD-<topic>-plan.md
- Present the plan to the user for review. Summarize: total tasks, dependency order, estimated parallelism, and any assumptions made during decomposition. The plan is the contract for what gets built. Do not proceed without explicit user approval.
- If the user requests changes, revise the plan and present again. Repeat until approved.
Task Template
### Task N: [Title]
**Description**: [What to do, specifically]
**Files**: [Paths to create/modify]
**Depends on**: [Task numbers, or "none"]
**Parallel**: [Can run with tasks X, Y]
**Verification**: [Command to run or condition to check]
Anti-Patterns
"This task is: implement the authentication system"
Too large. Break it down. "Create the User model with email and hashed_password fields" is a task. "Implement authentication" is a project.
"Verification: it works"
Not a criterion. "Run npm test -- --grep auth and all tests pass" is verification. "It works" is a wish.
"I'll figure out the order during execution"
Dependencies discovered during execution cause rework. Map them now when the cost of changing course is zero.
Evidence Requirements
- Plan file exists at the documented path
- Every task has a description, file paths, and verification criteria
- Self-review confirms no spec requirements are missed
- User has reviewed and approved the plan
Transition
When the plan is complete and the user has approved it, invoke drive-execution to begin task implementation.
1---2name: chart-tasks3description: Use when an approved spec exists and needs to be decomposed into executable tasks with verification criteria. Phase: PLANNING.4---56# Chart Tasks78Decompose an approved spec into an ordered list of small, independently executable tasks. Each task must be specific enough that an agent with no project context can execute it, and must include verification criteria so completion is provable.910<HARD-GATE>11Every task in the plan MUST have:121. A clear description of what to do (not vague like "implement the feature")132. Specific file paths that will be created or modified143. Verification criteria (how to prove the task is done -- a test command, a build check, etc.)154. No placeholders. Every step must include complete code or commands. See `placeholder-rules.md` for forbidden patterns.16A plan with any task missing verification criteria is not complete and cannot be executed.17</HARD-GATE>1819## Process Flow2021```dot22digraph chart_tasks {23 "Read approved spec" [shape=box];24 "Identify components" [shape=box];25 "Map dependencies" [shape=box];26 "Break into tasks" [shape=box];27 "Add verification to each" [shape=box];28 "Order by dependencies" [shape=box];29 "Self-review plan" [shape=box];30 "Write plan to file" [shape=box];31 "Present plan to user" [shape=box];32 "User approves plan?" [shape=diamond];33 "Revise plan" [shape=box];34 "Invoke drive-execution" [shape=doublecircle];3536 "Read approved spec" -> "Identify components";37 "Identify components" -> "Map dependencies";38 "Map dependencies" -> "Break into tasks";39 "Break into tasks" -> "Add verification to each";40 "Add verification to each" -> "Order by dependencies";41 "Order by dependencies" -> "Self-review plan";42 "Self-review plan" -> "Write plan to file";43 "Write plan to file" -> "Present plan to user";44 "Present plan to user" -> "User approves plan?";45 "User approves plan?" -> "Invoke drive-execution" [label="yes"];46 "User approves plan?" -> "Revise plan" [label="no"];47 "Revise plan" -> "Write plan to file";48}49```5051## Checklist52531. **Read the approved spec** thoroughly. Understand every requirement, constraint, and edge case.542. **Deploy the task-decomposer agent** to analyze the spec and produce an initial task breakdown. Review the agent's output and refine as needed.553. **Identify components** -- what distinct pieces of work exist? Group by module, layer, or feature area.564. **Map dependencies** -- which components depend on which? What must be built first?575. **Break into tasks** -- each task should be completable in 2-5 minutes as a single atomic action by a focused agent. If a task feels like it would take longer, break it further. Each TDD sequence is 5 separate steps: write test, run test (RED), write implementation, run test (GREEN), commit. Each task includes:58 - Task number and title59 - Description (specific enough for an agent with no context)60 - File paths to create or modify61 - Dependencies (which tasks must complete first)62 - Verification command or criteria636. **Identify parallel opportunities** -- which tasks are independent and can run concurrently?647. **Self-review the plan** checking:65 - Does every spec requirement map to at least one task?66 - Does every task have verification criteria?67 - Are dependencies correctly ordered (no circular dependencies)?68 - Are types, method signatures, and names consistent across tasks?69 - Placeholder scan: search the plan for TBD, TODO, 'similar to', 'see the spec', 'add appropriate'. Fix all instances.708. **Write plan to file** at `docs/forge/plans/YYYY-MM-DD-<topic>-plan.md`719. **Present the plan to the user** for review. Summarize: total tasks, dependency order, estimated parallelism, and any assumptions made during decomposition. The plan is the contract for what gets built. Do not proceed without explicit user approval.7210. **If the user requests changes**, revise the plan and present again. Repeat until approved.7374## Task Template7576```markdown77### Task N: [Title]7879**Description**: [What to do, specifically]80**Files**: [Paths to create/modify]81**Depends on**: [Task numbers, or "none"]82**Parallel**: [Can run with tasks X, Y]83**Verification**: [Command to run or condition to check]84```8586## Anti-Patterns8788**"This task is: implement the authentication system"**89Too large. Break it down. "Create the User model with email and hashed_password fields" is a task. "Implement authentication" is a project.9091**"Verification: it works"**92Not a criterion. "Run `npm test -- --grep auth` and all tests pass" is verification. "It works" is a wish.9394**"I'll figure out the order during execution"**95Dependencies discovered during execution cause rework. Map them now when the cost of changing course is zero.9697## Evidence Requirements9899- Plan file exists at the documented path100- Every task has a description, file paths, and verification criteria101- Self-review confirms no spec requirements are missed102- User has reviewed and approved the plan103104## Transition105106When the plan is complete and the user has approved it, invoke **drive-execution** to begin task implementation.