05. Handling work split into multiple Tasks (general cycle - medium/large)
If any of the following applies, ywc-plan routes to this path.
Choose by scale
05. Handling work split into multiple Tasks (general cycle - medium/large)
When to use this flow
If any of the following applies, ywc-plan routes to this path.
- The change is hard to fit into a single reviewable PR (multiple screens, multiple APIs, multiple subsystems)
- It includes a DB migration (always this path regardless of scale - Safety Invariant)
- It introduces a new Library/Framework (also always this path)
Overall flow
ywc-plan -> ywc-spec-ready -> ywc-task-generator -> ywc-sequential-executor --review or ywc-parallel-executor --review| Step | Skill | Role |
|---|---|---|
| 1 | ywc-plan | Analyze the request and create a docs/ywc-plans/<slug>.md spec |
| 2 | ywc-spec-ready | Automatically repeat ywc-plan --update-spec and ywc-spec-validate until the spec is DONE |
| 3 | ywc-task-generator | Decompose the DONE spec into dependency-safe Tasks (tasks/<phase>-<sequence>-<slug>/) |
| 4 | ywc-sequential-executor or ywc-parallel-executor | Actually implement Tasks -> PR -> Merge |
How to choose Sequential vs Parallel
| Situation | Choice |
|---|---|
| Task order matters, or Tasks depend on one another's outputs | ywc-sequential-executor |
Tasks are independent and grouped into parallelizable waves in dependency-graph.md | ywc-parallel-executor (isolated with Git Worktrees) |
Example run
ywc-plan Users need a settings screen and API to turn notification types on/off individually. Support email/push/in-app, 3 channelsywc-plan Users need a settings screen and API to turn notification types on/off individually. Support email/push/in-app, 3 channelsywc-spec-ready --spec docs/ywc-plans/notification-settings.mdywc-spec-ready --spec docs/ywc-plans/notification-settings.mdywc-task-generator --lang koywc-task-generator --lang koThe execution commands after this have many options, so they are covered on a separate page: 16. Executor / Code-gen Prompt patterns. The simplest starting point is:
ywc-sequential-executor --reviewywc-sequential-executor --reviewIf you omit the task, it automatically finds the next executable Task from dependency-graph.md.
Always include --review
Both executors use the --review flag to automatically run /ywc-impl-review before PR creation/merge for each Task. Running without this flag is equivalent to completely skipping the review step in the small cycle from 04. There is no good reason to omit it. (If a Task has Criticality: critical, review is forced regardless of the flag.)
When you get blocked at each step
| Situation | Action |
|---|---|
ywc-spec-ready reaches the iteration limit | A fundamental spec issue is preventing automatic convergence - read the partial report and edit the spec directly |
ywc-task-generator tries to create 20 or more Tasks | This signals that the spec itself is too large - consider splitting the spec first |
| A dependency is not completed during Task execution | The executor stops automatically and reports which Task must precede the current one |
Previous: 04. Handling a small change - Next: 06. Finish automatically from one goal