| name | refined-plan-mode |
| description | Use this skill when the user asks to plan, review, revise, continue, checkpoint, handoff, reset, or execute work using Refined Plan Mode. Also use it for legacy /rpm:start, /rpm:advance, /rpm:review, /rpm:feedback, /rpm:checkpoint, and /rpm:handoff prompts. |
Refined Plan Mode
Use this skill when the user asks to plan, review, revise, continue, checkpoint, handoff, reset, or execute work using Refined Plan Mode.
This skill is additive to the agent's current planning guidance. It turns a plan into a versioned Markdown artifact that can be reviewed with line, range, and text-selection comments. The agent remains responsible for reading feedback, revising the plan, and moving only when the user has approved the plan or explicitly asks to proceed.
Core Protocol
Before deciding what to do, inspect the local .plan-review state:
.plan-review/.current-version
.plan-review/approved-plan.md
.plan-review/plans/
.plan-review/feedback/
Then choose the next state transition:
- If
.plan-review/approved-plan.md exists, read it and execute the approved plan carefully.
- If a current version exists and
.plan-review/feedback/plan-vN-feedback.json exists for it, read the current plan and feedback, address every feedback item in a revised next plan version, update .plan-review/.current-version, and stop for review.
- If a current version exists with no feedback and no approval, report that the plan is awaiting review and include the reviewer launch command.
- If no current plan exists, clarify only what is necessary, inspect the repository enough to produce a useful plan, write
.plan-review/plans/plan-v1.md, write v1 to .plan-review/.current-version, and stop for review.
Users can ask for checkpoint, handoff, or reset in natural language:
- For a checkpoint, report the current version, latest plan path, feedback status, approval status, and recommended next action.
- For a handoff, summarize the goal, current plan, feedback status, approval status, important assumptions, unresolved decisions, and recommended next action.
- For a reset, first require explicit confirmation by asking the user to type
RESET or by accepting an explicit --force request. After confirmation, empty only the contents of .plan-review while keeping the .plan-review directory itself. Do not remove source files or any other workspace files.
Task Modes
Treat these legacy /rpm:* prompts as natural-language requests for this skill:
/rpm:start
Start a plan review loop for the user's current task.
- Inspect the repository enough to understand the task and relevant constraints.
- Ask only blocking clarification questions. If reasonable assumptions are available, state them in the plan instead of stopping.
- Create
.plan-review/plans/plan-v1.md with the complete plan.
- Create or update
.plan-review/.current-version with v1.
- Reply with a concise summary and tell the user the plan is ready for review in Refined Plan Mode.
Do not implement the plan yet unless the user explicitly asks you to proceed without review.
/rpm:advance
Continue the loop from the current state.
- Inspect
.plan-review/.current-version, .plan-review/approved-plan.md, available plan files, and available feedback files.
- If an approved plan exists, execute that plan.
- If feedback exists for the current plan version, incorporate it into the next plan version.
- If there is a current plan but no feedback or approval, remind the user that the plan is awaiting review.
- If no plan exists, start with
/rpm:start behavior.
Keep the response focused on the next state transition.
/rpm:review
Audit the latest plan before the user reviews it.
- Read the current plan version.
- Review the plan for missing context, vague steps, untested assumptions, risky sequencing, and weak validation.
- If improvements are needed, write a revised next version and update
.plan-review/.current-version.
- If the plan is already review-ready, leave files unchanged.
- Reply with either the new plan version written or a short explanation that the current plan is ready for review.
This mode reviews plan quality. It does not implement the plan.
/rpm:feedback
Incorporate submitted feedback into the next plan version.
- Read
.plan-review/.current-version to find the current version.
- Read
.plan-review/feedback/plan-vN-feedback.json for that version.
- Read
.plan-review/plans/plan-vN.md.
- Address every feedback item in a revised plan, adding a
Feedback Addressed section that maps comments to changes made.
- Write the revision to
.plan-review/plans/plan-vN+1.md.
- Update
.plan-review/.current-version to the new version.
- Reply with a short note naming the feedback file read and the new plan file written.
If the feedback file is missing, report the exact path expected and stop.
/rpm:checkpoint
Summarize the current review-loop state.
Report:
- Current plan version from
.plan-review/.current-version, if present.
- Latest plan file path.
- Whether feedback exists for the current version.
- Whether
.plan-review/approved-plan.md exists.
- The recommended next action.
Do not modify files unless the user also asks you to advance or revise the plan.
/rpm:handoff
Prepare a compact continuation summary for another agent or a future session.
Include:
- Goal.
- Current plan version and file path.
- Feedback status.
- Approval status.
- Important assumptions or unresolved decisions.
- Recommended next action.
Prefer reading the current plan and feedback files directly instead of relying on chat history.
Reset
Reset the review-loop state only after explicit confirmation:
- If the user did not provide an explicit
--force request, ask them to type RESET.
- Proceed only when the user confirms exactly.
- Empty the contents of
.plan-review, preserving the .plan-review directory itself.
- Do not remove source files or any workspace files outside
.plan-review.
File Convention
.plan-review/
.current-version
plans/
plan-v1.md
plan-v2.md
feedback/
plan-v1-feedback.json
plan-v2-feedback.json
approved-plan.md
Create missing directories when needed. Never summarize or truncate the plan file itself. The file should be self-contained enough for another agent to understand the goal, context, constraints, implementation steps, validation steps, and open questions.
Plan Shape
Prefer this structure unless the task clearly calls for something else:
# Plan vN: Short Title
## Goal
## Current Understanding
## Assumptions
## Open Questions
## Proposed Changes
## Validation
## Risks
## Rollback or Recovery
Keep the plan practical. Include file paths, commands, and decision points when known. Call out assumptions explicitly instead of hiding uncertainty inside confident prose.
Reviewer Launch Command
Whenever you write or advance to a plan version that is ready for user review, include a command the user can run from the Refined Plan Mode project root.
Prefer an absolute path to the target project's .plan-review directory when you know it:
PLAN_REVIEW_DIR=/absolute/path/to/project/.plan-review vp dev --host 127.0.0.1 --port 5173
If only a home-relative path is known, shell expansion is acceptable:
PLAN_REVIEW_DIR=~/dev/target-project/.plan-review vp dev --host 127.0.0.1 --port 5173
Use the toolchain command documented by the Refined Plan Mode project. For the Vite+ project, use vp dev rather than invoking the package manager directly.
Feedback Handling
When feedback exists:
- Read the relevant JSON feedback file before revising.
- Treat every unresolved comment as actionable until clearly addressed.
- Preserve useful parts of the previous plan.
- Add a short
Feedback Addressed section to the revised plan that maps comments to the changes made.
- If feedback conflicts or cannot be satisfied safely, explain that in the revised plan and ask the user for the smallest useful decision.
Execution Gate
Do not begin implementation from an unapproved plan unless the user explicitly asks you to proceed. Once .plan-review/approved-plan.md exists or the user directly approves the plan in conversation, execute the approved plan and keep the normal agent workflow: inspect files, make focused edits, validate, and report the outcome.
User Updates
In conversation, keep updates brief:
- Say which plan version was written.
- Say where feedback should be submitted.
- Include the reviewer launch command when a plan is ready for review.
- Say which feedback file was read when revising.
- Say when the plan is approved and execution is beginning.
The plan file carries the detail; the chat message should help the user orient without duplicating the full artifact.