Task Planning
Purpose
Generate the implementation plan: dependency-ordered dynamic phases and concrete tasks with acceptance criteria. Implements ../../system/PHASE_GENERATION_RULES.md and TASK_GENERATION_RULES.md. Feeds Gate 4.
When to Use
- After architecture is set, to produce phases and tasks for approval.
- When re-planning because scope, dependencies, or discovered state changed.
- Not for a single obvious task with clear acceptance criteria already agreed.
Inputs
- Architecture + repository layout.
- Selected applications, approved stack, requirement baseline.
- The relevant work-item type planning skill (feature/bug/refactor/migration).
Discovery Questions
- What must exist before what (dependencies)?
- What is the critical path vs deferrable work?
- Which tasks can run in parallel; which touch the same files?
- What are the exit gates per phase?
Responsibilities
- Generate phases dynamically from applications, dependencies, architecture, security, testing, deployment, and existing state.
- Break each phase into tasks: title, context, inputs, outputs, acceptance criteria, required skills, risk.
- Write each task's acceptance criteria as Gherkin scenarios (
../../system/GHERKIN_RULES.md, testing/gherkin-specifications) — one behavior per scenario, observable outcomes. The scenario is the criterion; it is not restated in prose.
- Order tasks by dependency; mark parallel-safe vs same-file tasks.
- Attach an exit gate to each phase.
- Record everything in
../../work-items/ and ../../projects/current/.
Required Workflow
- Read architecture + apps + stack + requirements.
- Derive phases (dependency-ordered, right-sized).
- For each phase, generate tasks with acceptance criteria.
- Mark parallelizable tasks (input to
../../system/MULTI_AGENT_RULES.md).
- Attach testing/security requirements per phase.
- Present for Gate 4; record on approval.
Decision Rules
- No fixed roadmap — phases come from the actual work.
- Foundations (design system, contracts, auth) precede dependent features.
- Every bug work item includes a regression-test task.
- A task is parallel-safe only if its file scope is disjoint from concurrent tasks.
- Right-size: don't 7-phase a one-line change; don't one-phase a marketplace.
Rules
- Every task states how it is verified (command/test/manual, or "unverified until run").
- Keep task notes concise; link, don't duplicate.
- No implementation before Gate 4 approval.
Anti-Patterns
- Reusing one template roadmap for every project.
- Tasks with no acceptance criteria.
- Marking file-conflicting tasks as parallel.
- Over-granular tasks whose coordination cost exceeds the work.
Validation Checklist
Definition of Done
Approved dynamic phases and tasks (with acceptance criteria, dependencies, and gates) recorded in ../../work-items/ and ../../projects/current/, ready for implementation.
Related Skills
architecture-design, feature-planning, bug-investigation, refactor-planning, migration-planning, testing-strategy, security-review, project-orchestrator.
Related Knowledge
../../knowledge/ (architecture/domain).
Related References
None typically.
Context Loading Guidance
- Requires: architecture, apps, stack, requirements.
- Does not require: full source, unrelated references, review skills' bodies.
- May load: the matching work-item planning skill;
testing-strategy for test tasks.
- Stop when: phases + tasks are approved (Gate 4).
Token Efficiency Guidance
Plan from summaries. Keep task records lean — status, criteria, links. Generate the next phase's tasks in detail; keep later phases coarse until reached.
1---2name: task-planning3description: Use to generate dynamic phases and break them into concrete, verifiable tasks with inputs, outputs, acceptance criteria, and dependencies. Produces the implementation plan approved at Gate 4. Phases are derived from real work, never a fixed template.4---56# Task Planning78## Purpose910Generate the implementation plan: dependency-ordered dynamic phases and concrete tasks with acceptance criteria. Implements `../../system/PHASE_GENERATION_RULES.md` and `TASK_GENERATION_RULES.md`. Feeds Gate 4.1112## When to Use1314- After architecture is set, to produce phases and tasks for approval.15- When re-planning because scope, dependencies, or discovered state changed.16- **Not** for a single obvious task with clear acceptance criteria already agreed.1718## Inputs1920- Architecture + repository layout.21- Selected applications, approved stack, requirement baseline.22- The relevant work-item type planning skill (feature/bug/refactor/migration).2324## Discovery Questions2526- What must exist before what (dependencies)?27- What is the critical path vs deferrable work?28- Which tasks can run in parallel; which touch the same files?29- What are the exit gates per phase?3031## Responsibilities3233- **Generate phases dynamically** from applications, dependencies, architecture, security, testing, deployment, and existing state.34- Break each phase into **tasks**: title, context, inputs, outputs, acceptance criteria, required skills, risk.35- Write each task's acceptance criteria as **Gherkin scenarios** (`../../system/GHERKIN_RULES.md`, `testing/gherkin-specifications`) — one behavior per scenario, observable outcomes. The scenario is the criterion; it is not restated in prose.36- Order tasks by dependency; mark **parallel-safe** vs **same-file** tasks.37- Attach an **exit gate** to each phase.38- Record everything in `../../work-items/` and `../../projects/current/`.3940## Required Workflow41421. Read architecture + apps + stack + requirements.432. Derive phases (dependency-ordered, right-sized).443. For each phase, generate tasks with acceptance criteria.454. Mark parallelizable tasks (input to `../../system/MULTI_AGENT_RULES.md`).465. Attach testing/security requirements per phase.476. Present for Gate 4; record on approval.4849## Decision Rules5051- No fixed roadmap — phases come from the actual work.52- Foundations (design system, contracts, auth) precede dependent features.53- Every bug work item includes a regression-test task.54- A task is parallel-safe only if its file scope is disjoint from concurrent tasks.55- Right-size: don't 7-phase a one-line change; don't one-phase a marketplace.5657## Rules5859- Every task states how it is verified (command/test/manual, or "unverified until run").60- Keep task notes concise; link, don't duplicate.61- No implementation before Gate 4 approval.6263## Anti-Patterns6465- Reusing one template roadmap for every project.66- Tasks with no acceptance criteria.67- Marking file-conflicting tasks as parallel.68- Over-granular tasks whose coordination cost exceeds the work.6970## Validation Checklist7172- [ ] Phases derived from real inputs (not a template).73- [ ] Dependency ordering explicit.74- [ ] Each task: inputs, outputs, acceptance criteria, skills, risk.75- [ ] Parallel-safe vs same-file tasks marked.76- [ ] Exit gate per phase.77- [ ] Testing/security requirements attached.78- [ ] Presented for Gate 4.7980## Definition of Done8182Approved dynamic phases and tasks (with acceptance criteria, dependencies, and gates) recorded in `../../work-items/` and `../../projects/current/`, ready for implementation.8384## Related Skills8586`architecture-design`, `feature-planning`, `bug-investigation`, `refactor-planning`, `migration-planning`, `testing-strategy`, `security-review`, `project-orchestrator`.8788## Related Knowledge8990`../../knowledge/` (architecture/domain).9192## Related References9394None typically.9596## Context Loading Guidance9798- **Requires:** architecture, apps, stack, requirements.99- **Does not require:** full source, unrelated references, review skills' bodies.100- **May load:** the matching work-item planning skill; `testing-strategy` for test tasks.101- **Stop when:** phases + tasks are approved (Gate 4).102103## Token Efficiency Guidance104105Plan from summaries. Keep task records lean — status, criteria, links. Generate the next phase's tasks in detail; keep later phases coarse until reached.