Imported from nmarcofernandess/superflow (
plugins/superflow/skills/plan/SKILL.md). Install upstream withnpx skills add nmarcofernandess/superflow --skill plan. Copyright stays with the author.
Plan
Plan converts the source of truth into ordered executable work. It should be smaller than the PRD and more executable than the blueprint. Build decides the architecture; Plan creates the task catalog.
Procedure
- Read
../../assets/references/execution-contract.md. - Read
../../assets/references/tdd-contract.md(I1 — plan pre-compiles proof). - Read
../../assets/references/status-schema.md. - Read local
PRD.mdfirst. Then readSPEC.md(or legacytechnical_blueprint.md),analysis.md/ANALYSIS-*.md, or repo-native equivalents when present. - Read
../../assets/templates/implementation_plan.jsonbefore writing a local plan. - Write
implementation_plan.jsonas the executable task source. Optionally writeimplementation_plan.mdonly as a human-readable summary. - Update
status.json:phases.plan = "complete",artifacts.plan = "implementation_plan.json", andtask_source.path = "implementation_plan.json". - Create the human-facing task board: copy
../../assets/task-board/board.htmlinto the package and writeboard-data.jsfrom the plan tasks (schema in../../assets/task-board/board-data.example.js). The board is a projection of the plan for the human; it never replacesimplementation_plan.json. Skip it only for trivial direct execution with one or two obvious steps.
Required Plan
- Preconditions.
- Ordered tasks.
- File targets.
- Change per task.
- TDD pre-compile per code task (I1):
behavior,tdd.red.command,tdd.red.expected_failure,tdd.green.command. Prefer real test file and test name when known. - Validation per task (
verificationmay mirrortdd.green). - Done criteria mapped back to PRD acceptance criteria (
acceptance_criteriaon each task). - Owner classification per task:
main_agent,explorer,worker, orreviewer. Areviewertask runs thereviewskill and writesreview_log.json— the role is a phase now, not a label (../../assets/references/review-contract.md). status: "pending"for every task at plan creation. Execution progress goes toimplementation_log.json, not into the plan.
TDD rules (summary)
- Code tasks:
tdd.required: trueby default. Iron law is enforced at Execute. - Docs/chore-only tasks:
tdd.required: falsewith non-emptyskip_reason. - Forbidden: "write tests later", empty RED for production code, TBD verification.
- Full rules:
../../assets/references/tdd-contract.md.
Task Ownership
If implementer agents are used, each one owns one complete plan task or an
explicitly re-planned complete subtask. Do not split one written task into
hidden technical slices across workers. Valid reports are DONE,
DONE_WITH_CONCERNS, BLOCKED, or NEEDS_CONTEXT.
Ready Gate
Plan is not complete if:
- a PRD acceptance criterion has no mapped task or verification;
- a task has no file target, creation target, or explicit discovery target;
- a
tdd.requiredtask is missing RED command, expected failure, or GREEN command; - verification is vague or non-runnable when a runnable check exists;
- architecture choices are still unresolved and should return to Build;
- task boundaries would cause overlapping write ownership.
Mermaid
Use Mermaid for dependency order or execution flow when text would hide
sequencing. Follow ../../assets/references/mermaid-contract.md.