← ClaudeAtlas

plan-finalizelisted

Triggered by /plan-finalize <path-to-draft>. Reads the resolved draft produced by /plan-review, writes the final plan to docs/plans/ as a .md file, and deletes the draft. Run in a fresh terminal session after /plan-review completes.
orassayag/agentic-project-workflow · ★ 1 · AI & Automation · score 65
Install: claude install-skill orassayag/agentic-project-workflow
# plan-finalize Skill ## Invocation ``` /plan-finalize docs/pre-plans/<original-filename>.draft.md ``` The argument is the path to the `.draft.md` file written by `/plan-review`. If no argument is provided: stop and tell the developer to provide the draft path. `/plan-review --auto-accept` also executes this skill's steps inline in its own session — in that case the "fresh terminal session" note above does not apply; everything else does. ## Execution mode This skill executes directly. Never enter plan mode, never call ExitPlanMode, and never end with a "Ready to code? / Would you like to proceed?" approval prompt — the skill's job is to write the final plan, delete the draft, and print the session handoff below, nothing more. If the session is currently in plan mode: stop before doing anything and tell the user to switch to normal mode (plan mode blocks the file writes/deletes this skill must perform), then re-run `/plan-finalize`. --- ## Output filename rule Derived from the draft filename using this exact two-step process: 1. **Strip the `.draft.md` suffix** from the draft filename to get the *stem*. - `Calculator-Plan.txt.draft.md` → stem: `Calculator-Plan.txt` - `my-feature.draft.md` → stem: `my-feature` - `feature.v1.draft.md` → stem: `feature.v1` 2. **Strip the final extension of the stem**, but only if it is a recognised plain-text extension (`.txt`, `.md`, `.rst`, `.text`). If the stem has no extension, or its extension is not in that list, do no