generate-complete-plan
Installation
SKILL.md
Generate Complete Plan
Turn one PRD into a phased implementation plan where every user story is provably covered — visited one-at-a-time via a breadth-first cursor persisted in STATE.md, so an interrupted session resumes exactly where it stopped and no story can be silently skipped. Output is one file at <cwd>/.plans/<feature>/plan.md, sibling of the source prd.md.
Core rules
- One PRD → one plan. One invocation processes exactly one PRD at
<cwd>/.plans/<feature>/prd.md. Never aggregate multiple PRDs. - Every user story maps to ≥1 phase. A rendered
## Coveragetable proves it. A story with no phase assignment is a hard failure. - STATE.md is the source of truth. Per-story decisions, cursor, and run status live in
<cwd>/.plans/<feature>/STATE.md. Mutate only via the CLI; see State files. - Atomic
plan.mdwrite. Draft is held in memory until the final approval gate;plan.mdis created in one shot so downstream parsers never see a partial file. - Ambiguity triggers are deterministic. Auto-assign silently when none fires; ask the user when any one fires. Triggers and rationale in REFERENCE.md.
- Resumable. Re-invoking on an existing topic reads the cursor first; see RESUMING.md.
- No silent overwrite. An existing
plan.mdor finalizedSTATE.mdrequires explicit confirmation.
Workflow
1. Discover the PRD
Glob <cwd>/.plans/*/prd.md. Zero matches → hard-stop with "No PRD found under .plans/<feature>/prd.md.". Multiple matches → ask which one (one PRD per invocation). Read the chosen PRD fully. Capture the <feature> slug from its folder.