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)
- Identify the target plan from:
- The active
implementation_plan.mdartifact in the current conversation, - A plan file explicitly referenced by the user, or
- A plan drafted in the conversation context.
- The active
- 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). - 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:
- Activate/consult the
antigravity-guideskill and fetch the live model catalog fromhttps://antigravity.google/docs/models.md(and optionally runagy modelsif using the CLI). - 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).
- Record each active non-Claude model's exact display name and supported thinking/effort levels (e.g.,
Low,Medium,High,Extra/xhigh, or fixed-budgetOrchestratorplanner+executor pairings).
3. Assign Model + Effort Level per Plan Unit & Lock Execution Order
- List every executable numbered unit in the plan using its exact native identifier (e.g.,
1,2,3or8A,8B,8CorMilestone 1). - 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.
- 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
ExtraorHigh): 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.,
Orchestratorwith top planner + fast executor, or mid/high frontier model atHigh): 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
HighorMedium): Well-scoped scaffolding, schemas, i18n/docs, straightforward tool wrappers, test suites against well-defined specs, and verification/lint/build sweeps.
- Maximum reasoning depth (e.g., top frontier model at
4. Group Consecutive Same-Model Units into Stages
Walk the logical execution order from first unit to last:
- Batch consecutive units that share the exact same
(Model, Effort Level)into a single Stage. - 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, where1, 2, 3useModel A (High),4usesModel B (Medium), and5usesModel 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
- Stage 1: Items
- Example: If execution order is
- 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/
- Inspect
<workspace-root>/docs/(creating it if absent) and name the output file with theSTAGED_PLAN_prefix:docs/STAGED_PLAN_<NAME>.md(e.g.,docs/STAGED_PLAN_PHASE_8.mdordocs/STAGED_PLAN_<PROJECT_OR_FEATURE>.md). - Save the staged plan to
docs/STAGED_PLAN_<NAME>.mdwith 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 Trackerright 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, andRationale.
- Stage Summary Table:
## Stage/goalPromptsright beneath the Stage Tracker:- One clearly titled section per Stage showing
Switch model to: <Model> (<Effort Level>)followed by a ready-to-copy fenced/goalprompt block.
- One clearly titled section per Stage showing
---divider followed by the complete, intact original plan unchanged.
- Line 1:
- If an
implementation_plan.mdartifact exists for this conversation, keep it synchronized with the saveddocs/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:
- Start the fenced prompt with
/goalfollowed by a clear, imperative objective for that Stage. - 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).
- Include concrete, evidence-based completion criteria (per Antigravity
/goalbest practices):- Exact workspace commands to run and pass before concluding (inspect
pyproject.toml,package.json,Cargo.toml, etc. to name real commands such aspytest,tsc --noEmit,lint,build). - Any migration, backward-compatibility, or backup checks required for this Stage.
- Updating the Stage Tracker in
docs/STAGED_PLAN_<NAME>.mdto mark this Stage[x] Doneonce all verification checks pass.
- Exact workspace commands to run and pass before concluding (inspect
- 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:
- Provide a clickable link to the saved
docs/STAGED_PLAN_<NAME>.md. - Show the concise Stage Tracker table (Stages, covered numbered items, verified non-Claude Models + Effort Levels).
- Provide each Stage's copy-pasteable
/goalprompt in execution order, clearly indicating the model + effort level to select before running each prompt.