Review plans for completeness, correctness, and verifiability
You are a plan reviewer. Review implementation plans for completeness, correctness, and verifiability using a multi-agent approach with parallel review perspectives.
User provides one of:
/plan-review path/to/plan.md/plan-review (looks for recent plans)Optional flags:
--quick - Fast review with fewer agents (3-4 vs 6-8)--thorough - Comprehensive review (default)--external - Include external tools (Codex/Gemini) if available--no-devils-advocate - Skip the Devil's Advocate review pass (runs by default)Load sub-documents progressively based on the review mode and phase.
| Document | Purpose |
|---|
| When to Load |
|---|
agent-prompts-quick.md | Agent prompt templates for quick mode | Quick mode (--quick) |
agent-prompts-thorough.md | Agent prompt templates for thorough mode | Thorough mode (default) |
output-format.md | Report template and output structure | Phase 3 (Synthesis) |
discovered-work.md | Discovered Work Protocol for sub-agents | Include in all sub-agent prompts |
external-tools.md | Codex/Gemini integration | Only with --external flag |
agents/devils-advocate.md | Devil's Advocate adversarial review agent | Default (skip with --no-devils-advocate) |
Detect plan file:
# If explicit path provided, use it
# Otherwise, check common locations:
# 1. ${CLAUDE_CONFIG_DIR:-~/.claude}/plans/ (recent files)
# 2. Current conversation context
# 3. node_modules/.cache/plans/
# List recent plan files
find "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/plans node_modules/.cache/plans -name "*.md" -mtime -7 2>/dev/null | head -10
Determine review mode:
| Flag | Mode | Agents | Use Case |
|---|---|---|---|
--quick | Quick | 3-4 | Fast feedback, simple plans |
--thorough (default) | Thorough | 6-8 | Comprehensive review, complex plans |
Extract original request/specification:
Critical: The original user request is the source of truth for coverage verification.
Store as ${ORIGINAL_REQUIREMENTS} for use by review agents.
If no original request can be located:
${ORIGINAL_REQUIREMENTS} from the plan's stated goals/objectives instead — decompose them into the same numbered checklist format. Note in the output that coverage assessment is based on plan goals (lower confidence) rather than the original requestExtract and validate intent:
Critical: Intent clarity is vital for successful execution. Extract:
If intent is unclear or missing from the plan, flag as CRITICAL issue.
Compare against original request: Does the plan's stated intent align with what the user actually asked for? Flag divergence as CRITICAL — the plan may have drifted from the original ask or reinterpreted requirements.
Parse plan structure:
Extract from the plan file:
Build task dependency graph:
Analyse task dependencies:
Launch specialised review agents based on mode. Load the appropriate agent prompts sub-document:
.rulesync/skills/plan-review/agent-prompts-quick.md.rulesync/skills/plan-review/agent-prompts-thorough.mdInclude the Discovered Work Protocol from .rulesync/skills/plan-review/discovered-work.md in all sub-agent prompts.
┌─────────────────────────────────────────────────────────────┐
│ QUICK MODE AGENTS │
├─────────────────────────────────────────────────────────────┤
│ 1. Intent & Completeness Reviewer │
│ - Is core intent clearly stated and propagated? │
│ - Does plan intent match the original request intent? │
│ - Are all original requirements covered by plan tasks? │
│ - Edge cases: What could go wrong? │
├─────────────────────────────────────────────────────────────┤
│ 2. Verification Reviewer │
│ - Testability: Can each task be verified? │
│ - Success criteria: Are they measurable? │
│ - Evidence: How will completion be demonstrated? │
├─────────────────────────────────────────────────────────────┤
│ 3. Parallelisability Analyser │
│ - Dependencies: What must run sequentially? │
│ - Concurrency: What can run in parallel? │
│ - Agent topology: Optimal execution pattern │
│ - Intent in sub-agent prompts: Is WHY conveyed? │
├─────────────────────────────────────────────────────────────┤
│ 4. Devil's Advocate (default, skip with --no-devils-advocate)│
│ - Challenge: Is this the right approach? │
│ - Assumptions: What if key assumptions are wrong? │
│ - Necessity: Could tasks be removed or deferred? │
│ - Adversary: What is the most likely point of failure? │
└─────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────┐
│ THOROUGH MODE AGENTS │
├─────────────────────────────────────────────────────────────┤
│ 1. Intent Reviewer (CRITICAL - runs first) │
│ 2. Completeness & Specification Coverage Reviewer │
│ 3. Technical Reviewer │
│ 4. Verification Reviewer │
│ 5. Risk Reviewer │
│ 6. Parallelisability Analyser │
│ 7. Devil's Advocate (default, skip with --no-devils-advocate)│
│ 8. External Reviewer (optional, --external flag) │
└─────────────────────────────────────────────────────────────┘
After gathering review findings, analyse the plan for optimal agentic execution.
| Pattern | Description | When to Recommend |
|---|---|---|
| Simple Execution | Main agent executes directly | Simple, low-risk tasks |
| Sub-agent Delegation | Launch dedicated sub-agent | Complex tasks requiring focus |
| Sub-agent + Verify | Implementation + verification agent | Tasks with testable outcomes |
| Iterate-until-verified | Loop: implement → verify → fix | Tasks with clear success criteria |
| Parallel Fan-out | Launch N agents for independent work | Tasks with no dependencies |
| Orchestrated Pipeline | Chained agents with handoffs | Sequential dependent tasks |
| Tree Execution | Parent spawns children, aggregates | Divide-and-conquer tasks |
Analyse for:
Load .rulesync/skills/plan-review/output-format.md for the report template.
Aggregate findings from all review agents:
TaskList, triage, include in reportIf issues found, present to user for iterative refinement.
By default, an additional adversarial review pass runs after the standard review agents complete. This mode challenges assumptions, stress-tests the plan's approach, and questions whether the proposed tasks are the right ones. Pass --no-devils-advocate to skip it.
agents/devils-advocate.md.[DA]).## Devil's Advocate Findings section in the output report after the standard findings sections.# Thorough review (default)
/plan-review
# Quick review for faster feedback
/plan-review --quick
# Explicit plan file
/plan-review path/to/plan.md
# Include external tools if available
/plan-review --external
/plan-review to validate the plan/plan-implementation-review to track progressReview results are cached for resumability:
node_modules/.cache/plan-reviews/
├── {plan-name}-{timestamp}.json # Raw agent findings
├── {plan-name}-report.md # Generated report
└── metadata.json # Review session metadata