# Plan Stage

> Stages any implementation plan (multi-phase, mid-phase, milestone, epic, or numbered-step) into model-assigned execution stages with a Stage Tracker at the top,

- Skill: `tger92/plan-stage` (Agent Skill)
- Install (CLI): `npx get-skill add tger92/plan-stage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tger92/plan-stage/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: tger92 (https://skillmd.com/u/tger92)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/tger92/plan-stage

---

---
name: plan-stage
description: >-
  Stages any implementation plan (multi-phase, mid-phase, milestone, epic, or numbered-step)
  into model-assigned execution stages with a Stage Tracker at the top, saves the intact plan
  into the project's docs/ folder for cross-chat and cross-IDE portability, and generates one
  self-contained /goal prompt per stage at every model or effort-level transition. Use when
  the user invokes /plan-stage or asks to divide a plan into staged /goal prompts with
  Antigravity model assignments.
---

# Plan Staging & `/goal` Prompt Generator (`/plan-stage`)

Transform any implementation plan—regardless of whether it is structured as phases, sub-phases, milestones, epics, parts, or numbered steps, and whether it is a greenfield multi-phase project or a mid-project phase—into a portable, staged execution document with model-grouped `/goal` prompts.

---

## 1. Locate & Parse the Source Plan (Terminology-Agnostic)

1. Identify the target plan from:
   - The active `implementation_plan.md` artifact in the current conversation,
   - A plan file explicitly referenced by the user, or
   - A plan drafted in the conversation context.
2. Detect the plan's native structural units without renaming or renumbering them (e.g., `Phase 1..N`, `Sub-Phase 8A..8F`, `Milestone 1..4`, `Step 1..10`, `Section 1..8`).
3. **Intactness rule:** Never delete, compress, summarize away, or renumber the original plan's sections or technical details. All staging metadata is **prepended** cleanly at the top while keeping the full original plan intact beneath it.

---

## 2. Verify Live Antigravity Models & Effort Levels

Before assigning any model, **always verify the current available models and effort levels** in this Antigravity environment rather than relying on memory or obsolete model names:

1. Activate/consult the `antigravity-guide` skill and fetch the live model catalog from `https://antigravity.google/docs/models.md` (and optionally run `agy models` if using the CLI).
2. **Strict exclusions:**
   - **Exclude all Claude models** unless the user explicitly asks to include them.
   - **Exclude deprecated or scheduled-for-removal models** (check deprecation notices/footnotes in `models.md`).
3. Record each active non-Claude model's exact display name and supported thinking/effort levels (e.g., `Low`, `Medium`, `High`, `Extra` / `xhigh`, or fixed-budget `Orchestrator` planner+executor pairings).

---

## 3. Assign Model + Effort Level per Plan Unit & Lock Execution Order

1. List every executable numbered unit in the plan using its **exact native identifier** (e.g., `1`, `2`, `3` or `8A`, `8B`, `8C` or `Milestone 1`).
2. Establish the **logical execution order** based on technical dependencies:
   - Data schema / migrations / shared types & contracts first,
   - Core backend services / algorithms / state machines next,
   - API / integration wiring & frontend components next,
   - Agent/MCP tools, automation, and cross-module glue next,
   - Comprehensive verification, regression tests, and E2E checks last.
   - Keep the plan's original order whenever dependencies already align; if a dependency requires reordering, document the reason briefly.
3. Assign each executable unit an active non-Claude **Model + Effort Level** matched to its cognitive complexity:
   - **Maximum reasoning depth** (e.g., top frontier model at `Extra` or `High`): Complex algorithms, DSP/ML/math pipelines, tricky concurrency or worker state machines, high-risk schema migrations, security/safety boundaries, or subtle cross-cutting architecture.
   - **High-capability planner + fast executor** (e.g., `Orchestrator` with top planner + fast executor, or mid/high frontier model at `High`): Multi-file feature builds spanning backend + frontend UI, interactive visual components, or multi-endpoint integrations with a locked spec.
   - **Fast execution** (e.g., fast frontier model at `High` or `Medium`): Well-scoped scaffolding, schemas, i18n/docs, straightforward tool wrappers, test suites against well-defined specs, and verification/lint/build sweeps.

---

## 4. Group Consecutive Same-Model Units into Stages

Walk the logical execution order from first unit to last:

1. **Batch consecutive units that share the exact same `(Model, Effort Level)` into a single Stage.**
2. **Start a new Stage every time the assigned Model OR Effort Level changes** in the execution order.
   - *Example:* If execution order is `Items 1, 2, 3, 4, 5`, where `1, 2, 3` use `Model A (High)`, `4` uses `Model B (Medium)`, and `5` uses `Model A (High)`, then:
     - **Stage 1:** Items `1, 2, 3` — `Model A (High)` → **Prompt 1**
     - **Stage 2:** Item `4` — `Model B (Medium)` → **Prompt 2**
     - **Stage 3:** Item `5` — `Model A (High)` → **Prompt 3**
3. Every single executable unit in the plan must appear in **exactly one Stage** (zero omissions, zero duplicates).

---

## 5. Prepend the Stage Tracker & Save to `docs/`

1. Inspect `<workspace-root>/docs/` (creating it if absent) and name the output file with the `STAGED_PLAN_` prefix: `docs/STAGED_PLAN_<NAME>.md` (e.g., `docs/STAGED_PLAN_PHASE_8.md` or `docs/STAGED_PLAN_<PROJECT_OR_FEATURE>.md`).
2. Save the staged plan to `docs/STAGED_PLAN_<NAME>.md` with this exact top-to-bottom structure:
   - **Line 1:** `[STAGED PLAN]` (visible top badge on the very first line so automated discovery can identify staged plans immediately).
   - **`## Stage Tracker`** right beneath line 1:
     - **Stage Summary Table:** `Stage` | `Plan Items Covered` | `Model` | `Effort Level` | `Depends On` | `Verification Gate` | `Status` (`[ ] Pending` / `[~] In Progress` / `[x] Done`)
     - **Per-Item Model Assignment Table:** Maps every individual numbered item/phase/milestone/step in the original plan to its `Execution Order`, `Stage`, `Model`, `Effort Level`, and `Rationale`.
   - **`## Stage `/goal` Prompts`** right beneath the Stage Tracker:
     - One clearly titled section per Stage showing `Switch model to: <Model> (<Effort Level>)` followed by a ready-to-copy fenced `/goal` prompt block.
   - **`---`** divider followed by the **complete, intact original plan** unchanged.
3. If an `implementation_plan.md` artifact exists for this conversation, keep it synchronized with the saved `docs/` file or link directly to it.

---

## 6. Author High-Reliability `/goal` Prompts (One per Stage)

Each Stage's `/goal` prompt must be completely self-contained so it can be pasted into a fresh chat, another Antigravity session, or another IDE:

1. Start the fenced prompt with `/goal ` followed by a clear, imperative objective for that Stage.
2. Reference the exact plan file path (`docs/STAGED_PLAN_<NAME>.md`) and explicitly list:
   - **In-Scope Items:** Exact native identifiers and titles covered by this Stage.
   - **Out-of-Scope Guardrail:** Explicit instruction NOT to implement later Stages yet (and to annotate any temporary compile-time placeholders for future stages with explicit `// STUB(Stage X / <Item>): <what needs to be built>` comments per workspace rules).
3. Include **concrete, evidence-based completion criteria** (per Antigravity `/goal` best practices):
   - Exact workspace commands to run and pass before concluding (inspect `pyproject.toml`, `package.json`, `Cargo.toml`, etc. to name real commands such as `pytest`, `tsc --noEmit`, `lint`, `build`).
   - Any migration, backward-compatibility, or backup checks required for this Stage.
   - Updating the **Stage Tracker** in `docs/STAGED_PLAN_<NAME>.md` to mark this Stage `[x] Done` once all verification checks pass.
4. Keep each prompt crisp, scannable, and copy-paste ready.

---

## 7. Present the Result to the User

In the chat reply after saving `docs/STAGED_PLAN_<NAME>.md`:
1. Provide a clickable link to the saved `docs/STAGED_PLAN_<NAME>.md`.
2. Show the concise **Stage Tracker table** (Stages, covered numbered items, verified non-Claude Models + Effort Levels).
3. Provide each Stage's copy-pasteable `/goal` prompt in execution order, clearly indicating the model + effort level to select before running each prompt.

