home / skills / vdustr / vp-claude-code-marketplace / plan-review

This skill reviews, scores, and refines implementation plans with a confidence index and structured pros/cons analysis to guide decisions.

npx playbooks add skill vdustr/vp-claude-code-marketplace --skill plan-review

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
10.5 KB
---
name: plan-review
description: >-
  Review, optimize, and score implementation plans with confidence index
  and pros/cons analysis. Use when asked to "review this plan", "score this plan",
  "how confident in this plan", "write a plan for X", "design an implementation plan",
  "optimize this plan", "refine this plan", "improve this plan",
  "pros and cons of this approach", "reasons for and against",
  "confidence index", "plan quality",
  or when deciding whether to proceed with an implementation approach before writing code.
  Boundary: for reviewing code already written, use review-loop instead.
---

# Plan Review

Review, optimize, and score implementation plans with a confidence index and structured pros/cons analysis. Three built-in passes evaluate plans from different angles, with context-aware suggested passes for deeper coverage. A confidence index quantifies readiness to proceed.

## Quick Start

> Review this plan

> Score my implementation plan

> Pros and cons of this approach

> Write a plan for adding auth, then review it

> How confident should I be in this migration plan?

## When to Use

- Evaluating an implementation plan before writing code
- Deciding between multiple approaches with trade-offs
- User wants a confidence score on a proposed plan
- User wants structured pros/cons analysis for a decision
- Optimizing or refining an existing plan
- Writing a plan from scratch with built-in quality review

**When NOT to use**: For reviewing code that's already written, use `review-loop` instead. This skill evaluates *plans* β€” what you intend to do, not what you've already done.

## Workflow

### Phase 1: Plan Intake

Accept a plan from one of these sources:

| Source | Action |
|--------|--------|
| User provides existing plan | Parse and structure it |
| User describes a goal | Draft a structured plan (Phase 2) |
| Plan file (markdown, text) | Read and parse |
| EnterPlanMode output | Use the plan from plan mode |

If the plan is vague or incomplete, ask clarifying questions before proceeding.

### Phase 2: Plan Drafting (if from goal)

When the user provides a goal instead of a plan, draft one:

1. Research the codebase (read relevant files, understand architecture)
2. Draft a structured plan with:
   - **Objective**: What we're trying to achieve
   - **Steps**: Numbered, actionable steps with file paths
   - **Dependencies**: What must exist before each step
   - **Risks**: Known risks per step
3. Present draft to user for initial feedback
4. Proceed to Phase 3 with the accepted draft

### Phase 3: Plan Review Passes

**Built-in passes** (always run all 3):

| Pass | Focus | What It Catches |
|------|-------|-----------------|
| Feasibility | Can it be done? | Unachievable steps, missing prerequisites, resource gaps, dependency errors |
| Optimality | Is this the best way? | Simpler alternatives, industry patterns, unnecessary complexity, missing quick wins |
| Risk Analysis | What could go wrong? | Hidden assumptions, failure modes, irreversible steps, missing rollback strategies |

See [plan-review-passes.md](references/plan-review-passes.md) for full pass specifications.

**Suggested passes**: After analyzing the plan content, suggest relevant optional passes based on detected signals. See [plan-review-passes.md](references/plan-review-passes.md) for all available suggested passes and their trigger conditions.

| Suggested Pass | Trigger Signals |
|---------------|-----------------|
| Incremental Delivery | 8+ steps, multi-system scope, big-bang deployment strategy |
| Stakeholder Impact | User-facing behavior changes, data migration, cross-team dependencies |
| Maintenance Burden | New infrastructure, external dependencies, custom solutions, ongoing ops work |
| Team Coordination | Multi-codebase changes, shared API contracts, parallel developer work |

Present matching suggestions to the user β€” they choose which to enable:
- **all**: Enable all suggested passes
- **pick**: User selects specific passes from the suggestions
- **none**: Run only the 3 built-in passes

Suggested passes run in parallel alongside built-in passes and follow the same finding format.

Each pass returns findings:

```
| # | Pass | Severity | Plan Step | Issue | Recommendation |
```

### Phase 4: Confidence Index

Calculate a confidence score using 5 domain-agnostic factors. See [confidence-index.md](references/confidence-index.md) for full specification.

| Factor | Weight | How Measured |
|--------|--------|-------------|
| Step validation | 25% | How many steps have been tested, prototyped, or proven in similar contexts |
| Completeness | 20% | Are all necessary steps, prerequisites, and cleanup steps included |
| Risk coverage | 20% | Are failure modes identified with specific mitigation + rollback strategies |
| Evidence quality | 20% | Are claims backed by docs, tests, prior art, or working prototypes |
| Reversibility | 15% | Can changes be rolled back at every step if things go wrong |

**Thresholds**: 🟒 80%+ (safe to proceed) / 🟑 60-79% (review boost options) / πŸ”΄ <60% (strongly recommend boosting)

**Floor rule**: If ANY single factor scores below 40%, overall indicator is forced to πŸ”΄ regardless of weighted average.

### Phase 5: Pros/Cons Analysis

For each major decision in the plan, generate a structured pros/cons analysis. See [pros-cons-analysis.md](references/pros-cons-analysis.md) for the framework.

Format:

```markdown
### Decision: [What's being decided]

**Reasons FOR**:
- [Pro 1] β€” [impact level: high/medium/low]
- [Pro 2] β€” [impact level]

**Reasons AGAINST**:
- [Con 1] β€” [impact level: high/medium/low]
- [Con 2] β€” [impact level]

**Recommendation**: [Proceed / Reconsider / Need more info]
```

### Phase 6: User Decision

Present the full assessment and ask the user:

| Option | What Happens |
|--------|-------------|
| **Proceed** | Accept plan as-is, move to implementation |
| **Boost** | Execute specific boost actions to raise confidence, then re-score |
| **Revise** | Agent suggests revisions based on findings; user approves diff before applying |
| **Abort** | Discard plan, start over or abandon |

### Phase 7: Iterate (if revise/boost)

If user chooses **Revise**:
1. Agent suggests specific changes as a diff
2. User reviews and approves changes
3. Re-run affected review passes (not all 3 unless changes are fundamental)
4. Recalculate confidence index
5. Return to Phase 6

If user chooses **Boost**:
1. Execute the selected boost action(s)
2. Re-score the affected confidence factor(s)
3. Recalculate overall confidence
4. Return to Phase 6

**Max iterations**: 3 revise/boost cycles. After 3, present final state and recommend proceeding or aborting.

## Example Output

```markdown
## Plan Review: Add User Authentication

### Confidence Index: 72% 🟑

| Factor | Score | Reason |
|--------|-------|--------|
| Step validation | 80% | JWT pattern proven in similar projects |
| Completeness | 70% | Missing session cleanup step |
| Risk coverage | 60% | No rollback plan for database migration |
| Evidence quality | 75% | Official docs referenced, no prototype |
| Reversibility | 65% | DB migration is one-way |

### Review Findings

| # | Pass | Severity | Step | Issue | Recommendation |
|---|------|----------|------|-------|----------------|
| 1 | Feasibility | HIGH | 3 | DB migration requires downtime | Add zero-downtime migration strategy |
| 2 | Optimality | MEDIUM | 5 | Custom session store β€” use Redis instead | Switch to Redis session store |
| 3 | Risk Analysis | HIGH | 3 | No rollback plan for schema change | Add reversible migration script |

### Pros/Cons: JWT vs Session-Based Auth

**Reasons FOR JWT**:
- Stateless, scales horizontally β€” high
- No server-side storage needed β€” medium

**Reasons AGAINST JWT**:
- Cannot revoke individual tokens β€” high
- Token size larger than session ID β€” low

**Recommendation**: Proceed with JWT + short expiry + refresh token rotation

### To increase confidence:

- [ ] **+8%** Add reversible DB migration script (Risk coverage, Reversibility)
- [ ] **+5%** Add session cleanup cron job (Completeness)
- [ ] **+4%** Prototype JWT middleware in /tmp (Step validation)
- [ ] **+3%** Test refresh token rotation flow (Evidence quality)

Proceed with current confidence, or boost first? [proceed / boost / revise / abort]
```

## Guidelines

### DO

- **Run all 3 passes** β€” feasibility, optimality, and risk catch different issues
- **Show confidence breakdown** β€” factor-level scores help users understand weaknesses
- **Provide actionable boosts** β€” each boost option must be concrete and executable
- **Get approval for revisions** β€” never silently change the user's plan
- **Structure pros/cons per decision** β€” not one big list for the whole plan

### DON'T

- **Silently modify the plan** β€” always show diff and get approval
- **Skip confidence index** β€” it's the core value proposition
- **Give vague boost options** β€” "do more research" is not actionable
- **Loop indefinitely** β€” max 3 revise/boost cycles
- **Conflate code review with plan review** β€” plans are about approach, not syntax

## Error Handling

| Error | Action |
|-------|--------|
| Plan is too vague to review | Ask user for specifics: scope, constraints, target |
| No measurable steps in plan | Restructure into numbered actionable steps, confirm with user |
| Confidence index is πŸ”΄ | Strongly recommend boosting; list top 3 boost options by impact |
| All passes return zero findings | Confirm plan is solid; still calculate confidence index |
| User provides both code and plan | Ask which to review; suggest review-loop for code |

## Reference Files

- [plan-review-passes.md](references/plan-review-passes.md) β€” Feasibility, Optimality, Risk Analysis pass specifications
- [confidence-index.md](references/confidence-index.md) β€” Generalized confidence index with 5 factors
- [pros-cons-analysis.md](references/pros-cons-analysis.md) β€” Structured pros/cons framework

## Notes

- **Auto-revision**: Agent suggests revisions as diffs; user approves before applying. No silent plan changes.
- **Plan mode integration**: Works with Claude Code's `EnterPlanMode` β€” can review plans generated in plan mode
- **Iterative refinement**: The review β†’ revise β†’ re-review loop is capped at 3 cycles to prevent diminishing returns
- **Suggested passes**: 4 optional passes (Incremental Delivery, Stakeholder Impact, Maintenance Burden, Team Coordination) are suggested based on plan content signals
- **Domain-agnostic**: Confidence factors are designed for any implementation plan, not specific to dependencies or migrations
- **Scope**: This skill reviews plans. For reviewing code already written, use `review-loop` instead

Overview

This skill reviews, optimizes, and scores implementation plans with a confidence index and structured pros/cons analysis. It runs three built-in review passes, suggests optional targeted passes, and produces concrete, actionable recommendations and boost actions. Use it to decide whether to proceed with an approach before writing code.

How this skill works

Accept a plan or a high-level goal, draft a structured plan if needed, and run three mandatory passes: Feasibility, Optimality, and Risk Analysis. After the core passes, suggest optional passes (Incremental Delivery, Stakeholder Impact, Maintenance Burden, Team Coordination) when signals appear; each pass returns findings with severity, affected step, and concrete recommendations. Finally, compute a confidence index from five factors and present per-decision pros/cons and boost options.

When to use it

  • Before writing code: evaluate an implementation plan for readiness
  • Compare multiple approaches and surface trade-offs
  • Get a quantified confidence score on a proposed plan
  • Optimize or refine an existing plan to reduce risk
  • Generate a plan from a goal and validate it before implementation

Best practices

  • Provide a clear objective and numbered actionable steps for best results
  • Include dependencies and known constraints up front to reduce clarifying questions
  • Enable suggested passes when scope involves multiple teams or data migrations
  • Approve any recommended diffsβ€”never accept silent modifications
  • Use boost actions (prototypes, reversible migrations, tests) to raise confidence

Example use cases

  • Score a database migration plan and identify rollback gaps
  • Compare JWT vs session auth with per-decision pros/cons and a recommendation
  • Refine a multi-step deployment into incremental delivery with rollback points
  • Draft an implementation plan from a feature goal and run all review passes
  • Get prioritized, executable boost actions to move a plan from yellow to green

FAQ

What does the confidence index mean?

The index aggregates five factors (step validation, completeness, risk coverage, evidence quality, reversibility) into a single score with thresholds: green 80%+, yellow 60–79%, red <60%. Any factor below 40% forces red.

Can the skill modify my plan automatically?

No. The skill suggests revisions as explicit diffs; you must approve changes before they are applied.