Review implementation plans for substance, feasibility, and architectural fitness. Use when user asks to review a plan, says "is this plan good", "check my plan", "review this plan", mentions plan review, or references a plan file and asks for feedback. Also trigger when user finishes /shape-plan and wants validation before starting /shape-implement.
Ships in product-shaping. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Catch substance problems in an implementation plan before a line of code is written. A flawed plan costs hours — a flawed review costs minutes.
Where /shape-impl-review asks "did we build what we planned?", this asks "will this plan actually work?"
Two modes:
<!-- PLAN-REVIEW-REPORT -->) → resume triage (skip to Step 6)<change-id> and context/changes/<change-id>/plan.md exists → review that plan@context/changes/<change-id>/plan.md) → use itcontext/changes/*/plan.md (newest by change.md.updated) via AskUserQuestion--quick flag → document-only mode (skip Step 3)If the resolved plan path starts with context/archive/, refuse to write a review: print "This change is archived. Reviews are not appended to archived plans." and STOP.
Read the plan file fully. Also read the sibling plan-brief.md in the same change folder if it exists. Read context/foundation/lessons.md if present and use accepted rules as priors when scanning for substance / feasibility / contract-break issues — a finding that restates a known recurring rule should weigh more, not less. Extract:
## Progress block at the bottom of the plan (see references/progress-format.md)Before any code verification, check the plan against itself. These three scans often catch the highest-value issues — problems the plan author discovered but didn't fully follow through on:
docs/reference/contract-surfaces.md exists in the project, read it and extract the list of H2 headings as surface names. Run grep -F against the plan text with one -e <surface name> per heading. For each hit, read the relevant H2 section of contract-surfaces.md and verify (a) the plan accurately reports the current shape of the surface, and (b) any rename or schema change is flagged as breaking with a migration story for downstream consumers. If the file does not exist, skip this check silently — it's an opt-in convention self-bootstrapped on first use by /shape-contract or /shape-impl-review's triage branch. The H2-derived grep list means: when a consumer adds a new surface to their file, the next plan-review picks it up automatically — no SKILL.md edit needed.references/progress-format.md):
## Progress heading at the bottom of plan.md.## Phase N: <name> in the plan body has a matching ### Phase N: <name> in Progress.#### Automated Verification: / #### Manual Verification:) in a Phase block has a matching - [ ] N.M <title> (or - [x]) in the corresponding Progress subsection.- bullets only — no - [ ] or - [x] outside the Progress section.
Treat any of these as a CRITICAL finding under Plan Completeness — /shape-implement will fail to parse a malformed Progress section.Quick, no sub-agents:
ls -l on ≥5 file paths the plan claims to modify. Non-existent paths are critical.Report inline: Grounding: 5/5 paths ✓, 3/3 symbols ✓, brief↔plan ✓. Only escalate to a finding on failure.
Skip if --quick.
From Steps 1–2, identify the 3–5 riskiest claims in the plan — things that, if wrong, force significant rework. Launch one sub-agent (subagent_type: "general-purpose") with three combined tasks:
Give the sub-agent targeted questions with relevant file paths — don't dump the full plan. A focused prompt finds more than a broad sweep because the agent knows what to look for.
Analyze the plan against five dimensions. Only produce findings for real issues — don't pad with "no issues found".
Walking phases sequentially, does the system reach the stated end state? Could all success criteria pass while the goal remains unmet? Any "last mile" gap where the plan does 90% and stops short?
For each phase: "if I removed this, would the end state still be achievable?" Watch for premature abstraction, "while we're here" additions, framework-where-a-function-would-do, scope contradictions ("not doing" items appearing in phases).
Does this fit the existing system? New patterns where existing ones would work (pattern proliferation). Clean module boundaries and correct dependency direction. High-blast-radius changes — phases touching many files across modules, changes to shared utilities. Vague "refactor as needed" or "update accordingly" that will spiral.
What didn't the plan consider? Error paths (only happy path described?), rollback story (phase 3 fails — can we revert?), resource/cost impact (API calls, computational work — what does this cost at expected usage?), default value changes (a default that triples cost or time should be called out), testing gaps, security boundaries.
Is the document actionable? File paths specific (not "somewhere in src/")? Changes at function/method level? Success criteria with runnable commands? TBDs, TODOs, or placeholder sections?
Each finding has:
Orthogonal to severity. A CRITICAL with LOW impact (obvious fix) is cheap to resolve; a WARNING with HIGH impact (unclear tradeoffs, wide blast) deserves careful thought.
| Impact | Meaning |
|---|---|
| 🏃 LOW | Quick decision. Fix is obvious and narrowly scoped. Safe to batch. |
| 🔎 MEDIUM | Worth pausing. Real tradeoff or non-trivial edit — think before deciding. |
| 🔬 HIGH | Architectural stakes. Wide blast radius, strategic implications, or unclear best path. |
Default to one fix. Only present two when there's a genuine tradeoff a smart reviewer would want to weigh — not every finding has alternatives worth manufacturing.
When to offer two fixes: when approach A and approach B each have a real upside the other lacks (e.g., "minimal edit that patches the symptom" vs. "refactor that removes the class of problem"). If you find yourself inventing a weak second option to satisfy a template, don't — present one fix and move on.
LOW-impact findings: skip the decomposition — just Fix: [one line]. Noise isn't helpful when the answer is obvious.
MEDIUM/HIGH-impact findings: each option gets:
[1-sentence approach] · Strength: [advantage, ideally grounded in plan/codebase evidence] · Tradeoff: [cost or risk] · Confidence: HIGH|MED|LOW — [1-line why] · Blind spot: [what we haven't verified, or "None significant"]
When offering two options, mark exactly one ⭐ Recommended.
Each dimension: PASS / WARNING / FAIL.
Sort findings by severity: CRITICAL → WARNING → OBSERVATION. Cap at 10 — consolidate related findings if you have more.
Plain text, box-drawing. Findings grouped by severity; omit empty groups. PASS dimensions appear only in the verdicts table, never as findings.
═══════════════════════════════════════════════════════════
PLAN REVIEW: [Plan Title]
Mode: Deep / Quick | Date: YYYY-MM-DD
Findings: [N critical] [N warnings] [N observations]
═══════════════════════════════════════════════════════════
End-State Alignment PASS ✅
Lean Execution WARNING ⚠️ (1 finding)
Architectural Fitness PASS ✅
Blind Spots FAIL ❌ (1 finding)
Plan Completeness WARNING ⚠️ (1 finding)
Grounding: 5/5 paths ✓, 3/3 symbols ✓, brief↔plan ✓
► Overall: REVISE
═══════════════════════════════════════════════════════════
CRITICAL FINDINGS ❌
═══════════════════════════════════════════════════════════
F1 — No rollback for 50M-row backfill
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
Severity: ❌ CRITICAL
Impact: 🔬 HIGH — architectural stakes; think carefully before deciding
Dimension: Blind Spots
Location: Phase 3 — Database Changes
Detail:
Plan adds a NOT NULL column to users (50M rows) but no phase
covers rollback if the backfill fails mid-way. Partial backfill
leaves the table in an inconsistent state.
Fix A ⭐ Recommended: Make column nullable + separate restartable backfill
Strength: Restartable; partial progress isn't destructive; matches
the pattern used for users.email_verified_at last quarter.
Tradeoff: Two deploys (add nullable → backfill → enforce NOT NULL).
Confidence: HIGH — this exact approach shipped cleanly 3 months ago.
Blind spot: Enforce step still needs its own rollback note.
Fix B: Add explicit rollback phase with full table snapshot
Strength: Single deploy; rollback is atomic.
Tradeoff: 50M-row snapshot is expensive in disk and lock time.
Confidence: MEDIUM — haven't measured snapshot cost on a table this size.
Blind spot: Replication lag during snapshot is unverified.
═══════════════════════════════════════════════════════════
WARNING FINDINGS ⚠️
═══════════════════════════════════════════════════════════
F2 — Provider pattern for 2 config sources
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
Severity: ⚠️ WARNING
Impact: 🔎 MEDIUM — real tradeoff; pause to reason through it
Dimension: Lean Execution
Location: Phase 1 — Config Refactor
Detail:
Plan builds a full provider-pattern config system for only two
sources (env + file). A direct dict merge achieves the same end
state with ~1/3 the code.
Fix: Replace config provider abstraction with direct dict merge in
load_config(). Introduce the provider pattern only when a third
source appears.
Strength: Less code, fewer concepts to maintain.
Tradeoff: If a third source ships soon, we refactor twice.
Confidence: HIGH — the existing codebase follows this "add abstraction
when needed" pattern everywhere else.
Blind spot: Plans for additional config sources not surveyed.
···
F3 — Vague "refactor utils as needed"
╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
Severity: ⚠️ WARNING
Impact: 🏃 LOW — quick decision; fix is obvious and narrowly scoped
Dimension: Plan Completeness
Location: Phase 2
Detail:
"Refactor format_output as needed" — format_output is imported by
12 files across 4 modules. Implementer has no guidance.
Fix: Specify exact signature changes and list callers needing updates.
═══════════════════════════════════════════════════════════
❌ CRITICAL, not just ❌. This keeps the report readable when skimming and doesn't force the user to memorize what each icon means.Detail: label so it can wrap naturally.Then ask:
question: "Plan review complete. How would you like to proceed?"
header: "Plan Review — [N] findings"
options:
- label: "Triage findings"
description: "Walk through each finding and decide."
- label: "Save report & triage later"
description: "Save the full report. Resume with /shape-plan-review <report-path>."
- label: "Save report only"
description: "Save and finish — I'll handle the findings myself."
multiSelect: false
Save to context/changes/<change-id>/reviews/plan-review.md (one plan-review per change folder; rerunning overwrites). Update change.md: status: plan_reviewed, updated: <today>.
<!-- PLAN-REVIEW-REPORT -->
# Plan Review: [Plan Title]
- **Plan**: [plan file path]
- **Mode**: Deep / Quick
- **Date**: YYYY-MM-DD
- **Verdict**: [SOUND/REVISE/RETHINK]
- **Findings**: [N critical] [N warnings] [N observations]
## Verdicts
| Dimension | Verdict |
|-----------|---------|
| End-State Alignment | PASS/WARNING/FAIL |
| Lean Execution | PASS/WARNING/FAIL |
| Architectural Fitness | PASS/WARNING/FAIL |
| Blind Spots | PASS/WARNING/FAIL |
| Plan Completeness | PASS/WARNING/FAIL |
## Grounding
[grounding line]
## Findings
### F1 — No rollback for 50M-row backfill
- **Severity**: ❌ CRITICAL
- **Impact**: 🔬 HIGH — architectural stakes; think carefully before deciding
- **Dimension**: Blind Spots
- **Location**: Phase 3 — Database Changes
- **Detail**: Plan adds a NOT NULL column to users (50M rows) but no phase covers rollback if the backfill fails mid-way.
- **Fix A ⭐ Recommended**: Make column nullable + separate restartable backfill
- Strength: Restartable; partial progress isn't destructive.
- Tradeoff: Two deploys.
- Confidence: HIGH — this approach shipped cleanly last quarter.
- Blind spot: Enforce step still needs its own rollback note.
- **Fix B**: Add explicit rollback phase with full table snapshot
- Strength: Single deploy; rollback is atomic.
- Tradeoff: 50M-row snapshot is expensive in disk and lock time.
- Confidence: MEDIUM — snapshot cost unverified at this size.
- Blind spot: Replication lag during snapshot is unverified.
- **Decision**: PENDING
### F3 — Vague "refactor utils as needed"
- **Severity**: ⚠️ WARNING
- **Impact**: 🏃 LOW — quick decision; fix is obvious and narrowly scoped
- **Dimension**: Plan Completeness
- **Location**: Phase 2
- **Detail**: "Refactor format_output as needed" — imported by 12 files across 4 modules.
- **Fix**: Specify exact signature changes and list callers needing updates.
- **Decision**: PENDING
The <!-- PLAN-REVIEW-REPORT --> marker and Decision: PENDING fields enable resume mode.
"Save & triage later" → save, print the path, remind them to run /shape-plan-review <saved-report-path>.
"Triage" → proceed to Step 7.
If entered via saved file: read it, parse ### F headers, filter to Decision: PENDING. If none, say "All findings triaged" and stop.
Walk findings in severity order (CRITICAL → WARNING → OBSERVATION). For each:
With 2 fix options:
question: "F[N] — [title]\n\nSeverity: [sev icon] [SEV]\nImpact: [impact icon] [LEVEL] — [meaning]\nDimension: [dim]\nLocation: [loc]\n\nDetail: [detail]\n\n[Fix A block]\n\n[Fix B block]"
header: "Finding [current] of [total remaining]"
options:
- label: "Apply Fix A ⭐"
description: "[Fix A one-liner]"
- label: "Apply Fix B"
description: "[Fix B one-liner]"
- label: "Fix differently"
description: "Different approach — let's discuss."
- label: "Skip"
description: "Not worth addressing now."
- label: "Accept risk"
description: "Understood — I'll handle during implementation."
- label: "Disagree"
description: "Not actually an issue — dismiss."
multiSelect: false
With 1 fix option: same options, but replace "Apply Fix A/B" with a single "Fix in plan".
Handling responses:
After each decision, if working from a saved file, update its Decision: field.
═══════════════════════════════════════════════════════════
TRIAGE COMPLETE
═══════════════════════════════════════════════════════════
Fixed: F1 (Fix A), F3 (2)
Skipped: F4 (1)
Accepted: F2 (1)
Dismissed: F5 (1)
► Verdict after fixes: [updated if fixes changed it, e.g. REVISE → SOUND]
═══════════════════════════════════════════════════════════
src/core/events.ts" — not "architecture might have issues".What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/product-shaping:shape-plan-reviewfrom product-shaping
npx claudepluginhub patrykkopycinski/patryks-treadmill-claude-plugins --plugin product-shaping30 skills in this plugin
/shape-agents-mdGenerate an AGENTS.md onboarding document for AI coding agents working in this repository. Inspects the repo (package manifest, README, scripts, lint/test config, layout, commit history) and writes a concise contributor guide titled "Repository Guidelines". Use when the user invokes /shape-agents-md, asks to "create AGENTS.md", "write an agent onboarding doc", "generate contributor guide for agents", or similar. The output is optimized to be small, precise, reference-heavy, and ordered with critical rules at the top — so a future agent reads it once and stays unblocked.
/shape-archiveArchive a completed change by moving its folder into context/archive/ and stamping change.md with archived status/shape-