/plan:plan-critiquefrom Plan & Critique
Adversarially reviews an execution plan from plan.md, producing a critique.md with verified findings, confidence grades, and evidence. Use when iterating on a plan before implementation.
Ships in Plan & Critique. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
On Codex, invoke skills with $skill-name (for example, $plan-create). Use that form when giving Codex
commands; other clients use /skill-name.
This skill helps the user perform an iterative review of the execution plan. Critique the plan, code, architecture, system design, and design patterns.
Read the working agreement at working-agreement.md before step 1 and follow it for the whole run. If it cannot be found, tell the user it is missing and apply the rules listed below.
file:line reference, a command output, or a failing test. Never assert
a plausible but unverified conclusion, and never present a guess as a fact.plan.md line numbers only from the copy you read in this run. Re-read plan.md before writing the
critique and check that each line reference points at the text you describe. Merging a critique into the plan
shifts every line below the merge point, so numbers carried over from an earlier iteration are wrong.plan.md during this phase. This phase writes critique.md only. The user
decides what moves into the plan.Grade each finding from 1 to 10 across six aspects:
| Factor | 1-3 (Low) | 4-7 (Medium) | 8-10 (High) |
|---|---|---|---|
| Confidence | Weak guess; re-review required | Plausible, unverified; re-review | Verified (file:line / output) |
| Priority | Cosmetic or minor cleanup | Causes rework if deferred | Fix at start of execution |
| Complexity | Fast model, low effort | Standard model, moderate effort | Max model/effort; split task |
| Blast radius | Single file or local function | Multiple modules or callers | Cross-cutting, API, or schema |
| Ambiguity | Deterministic from codebase | Minor edge-case choice | Requires user design decision |
| Verification | Existing unit test covers it | Needs new test or mock setup | Hard to test or manual check |
Grading rules:
CONFIRMED / UNVERIFIED label.Resolve plansFolder from config:
Check the active agent's config file first (.codex/plan-critique-config.json for Codex,
.claude/plan-critique-config.json for Claude Code,
.gemini/plan-critique-config.json for Agy/Gemini, or .copilot/plan-critique-config.json for Copilot CLI),
falling back to reading the other agent configs. If no config exists or plansFolder is not set or is empty:
Respond with "No plans folder configured. Run /plan-create first to set up."
Get the active session id:
COPILOT_AGENT_SESSION_ID is set): read COPILOT_AGENT_SESSION_ID via
echo $COPILOT_AGENT_SESSION_ID (macOS/Linux) or $env:COPILOT_AGENT_SESSION_ID (Windows); if empty, use the
literal value default. Store as sessionId.echo $PPID and store as sessionId.Clean up stale sessions in [plansFolder]/.sessions/ (non-blocking, never abort because of cleanup):
kill -0 [PID] 2>/dev/null and delete if the process is no longer running.default or UUIDs), delete files not modified in the last 7 days.Read the current session's plan from [plansFolder]/.sessions/[sessionId] if it exists. Store as sessionPlan.
Scan [plansFolder]/ for subdirectories (each subdirectory is a plan). Exclude archived/ and .sessions/
folders and any files, only list plan directories.
If no plan folders exist: Respond with "No plans found. Create one with /plan-create".
Select the plan to critique:
sessionPlan exists and matches a plan folder, auto-select it. Inform the user:
"Using current session plan: [sessionPlan]"Available plans:
1. add-user-authentication
2. refactor-database-layer
3. implement-caching
Which plan would you like to critique? [1-3]
Update the session file [plansFolder]/.sessions/[sessionId] with the selected plan slug (create if needed).
Read the plan file at [plansFolder]/[selected-plan]/plan.md
Resolve project instructions and check for errors:
AGENTS.md for Codex, GEMINI.md for Agy,
.github/copilot-instructions.md for Copilot, CLAUDE.md for Claude Code), falling back to AGENTS.md then
CLAUDE.md.plan.md is empty: Respond with "Plan file is empty. Edit [plansFolder]/[selected-plan]/plan.md"AGENTS.md, CLAUDE.md, GEMINI.md, or
.github/copilot-instructions.md) in the root of your project."Detect project languages and verify LSP / language server availability:
tsconfig.json, *.ts, or *.tsx for TypeScript,
composer.json or *.php for PHP, go.mod, pyproject.toml, pom.xml, etc.LSP tool or active language server./plugins -> typescript-lsp or php-lsp), configure
a language server with /lsp, or use https://github.com/github/awesome-copilot/tree/main/skills/lsp-setup."Read the existing "Iteration: [number]" at [plansFolder]/[selected-plan]/critique.md (if it exists) and
determine the current iteration number. If no critique exists, this is iteration 1.
If the plan references files that are in the [plansFolder]/[selected-plan]/ folder, review those as well and
add them to the context of the critique.
Perform a thorough critique of the plan considering:
Evaluate whether the plan can be split into independent tasks. If the plan contains multiple features or changes that can be executed separately, strongly recommend splitting it into separate plans. Why this matters:
Example: A plan with "Add user authentication", "Refactor database layer", and "Add caching" should be split into three separate plans if these can be implemented independently.
When suggesting a split, be specific about which sections should become their own plan.
Write the critique to [plansFolder]/[selected-plan]/critique.md.
When writing the critique, follow the original chapters from plan.md.
The goal is to be able to easily override plan.md if the user chooses to merge critique.md with plan.md.
Use the format in critique-format.md.
Notes:
README.md file, dependencies (package.json, requirements.txt, etc.), git state if
relevant, whether referenced files/APIs actually exist, and supporting files in the plan folder.plan.md
and reference them so that the user can easily find what text to replace or update.class, interface, type, or
struct definitionsfunction/def/fn
declarations in the target filemcp__ide__getDiagnostics when available, otherwise use LSP / language server
hover/diagnostics for files referenced in the planmodel frontmatter, select a high-capability model with /model.critique.md as a Table of contents.plan.md as a structure for critique.critique.md file.plan.md, do not include it.plan.md.plan.md chapters, add them as
new chapters at the bottom of the critique.What SKILL.md sets; muted values are Claude Code's defaults
opushighnpx claudepluginhub serbanghita/plan-critique-skills --plugin plan5 skills in this plugin
/plan-archiveArchive a completed or abandoned plan for future reference. Use when the user runs /plan-archive or asks to archive a finished plan./plan-createCreate a new plan folder with a plan.md template. Use when the user asks to start, create or open a new plan, or runs /plan-create./plan-cycleDraft, critique and merge a plan in one loop, then stop for approval. Use when the user runs /plan-cycle or asks to run the full create-and-critique planning loop./plan-executeExecute the user's plan that has been iteratively refined, step by step, with resume on failure. Use when the user runs /plan-execute or asks to execute an existing plan.Other plugins' skills for the same job