3.4 KiB
3.4 KiB
| name | description |
|---|---|
| generate-plan | Generate the implementation plan from architecture and code design. Produces the single strict output file with task breakdown, dependency graph, execution order, milestones, deliverables, and traceability. |
This skill produces the complete planning document for a feature.
Announce at start: "I'm using the generate-plan skill to produce the implementation plan."
Primary Input
docs/architecture/{feature}.mddocs/code-design/{feature}.md
Primary Output (STRICT PATH)
docs/plan/{feature}.md
This is the only file artifact produced by the planning pipeline.
Hard Gate
Do NOT start this skill if the architecture or code design documents contain unresolved ambiguities that block task sequencing.
Process
You MUST complete these steps in order:
- Read the architecture document end-to-end
- Read the code design document end-to-end
- Apply internal analysis from
analyze-design-inputs - Determine the smallest meaningful execution units without drifting into implementation detail
- Group related work into milestones
- Define all task dependencies
- Define which tasks can run in parallel
- Define concrete deliverables and completion criteria for every task
- Build a design traceability matrix from upstream design artifacts to tasks
- Write the plan document to
docs/plan/{feature}.md
Planning Rules
- Tasks must be implementation-ready, not vague
- Tasks must be grounded in upstream design documents
- Do not collapse unrelated work into one oversized task
- Do not split work so finely that the plan becomes mechanical noise
- Include migration, rollout, config, and operational tasks when the upstream design requires them
- Keep QA responsibilities out of the plan, but provide enough completion criteria for QA to build tests later
Plan Document Template
# Plan: {Feature Name}
## Overview
Summary of the implementation objective and the scope of planned work.
## Inputs
- Architecture: `docs/architecture/{date}-{feature}.md`
- Code Design: `docs/code-design/{date}-{feature}.md`
## Planning Assumptions
- Assumption 1
- Assumption 2
## Task Breakdown
### Task P1: {Task Name}
- Objective: ...
- Inputs Used: ...
- Design References: ...
- Dependencies: None / P0 / ...
- Deliverables: ...
- Completion Criteria: ...
- Suggested Owner Type: ...
## Dependency Graph
```mermaid
graph TD
P1 --> P2
P1 --> P3
Execution Order
- Phase 1: ...
- Phase 2: ...
Milestones
Milestone M1: {Name}
- Included Tasks: P1, P2
- Exit Criteria: ...
- Rationale: ...
Deliverables
| Task | Deliverable | Source Design Reference |
|---|---|---|
| P1 | ... | ... |
Design Traceability
| Upstream Design Element | Planned Task(s) |
|---|---|
| Architecture: ... | P1, P2 |
| Code Design: ... | P3 |
Risks And Sequencing Notes
- Risk 1: ...
- Risk 2: ...
Planning Review
(Populated by challenge-plan)
Open Questions
- ...
- ...
## Guardrails
Do:
- Use both architecture and code design as authoritative inputs
- Keep tasks concrete and traceable
- Include dependencies and completion criteria for every task
Do not:
- Change design decisions
- Add QA test cases
- Add implementation code
- Produce any file artifact other than `docs/plan/{feature}.md`
## Transition
After generating the plan, invoke `challenge-plan` to audit and refine it.