Review Plan

SkillDev tools

Review an implementation plan through multiple quality lenses and

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Review Plan skill

What this skill tells your AI

The instructions your AI receives, as published by atomicinnovation/accelerator in skills/planning/review-plan/SKILL.md and read by ahel’s review.

!${CLAUDE_PLUGIN_ROOT}/bin/accelerator config context --skill review-plan --fail-safe !${CLAUDE_PLUGIN_ROOT}/bin/accelerator config agents --fail-safe

If no "Agent Names" section appears above, use these defaults: accelerator:reviewer, accelerator:codebase-locator, accelerator:codebase-analyser, accelerator:codebase-pattern-finder, accelerator:documents-locator, accelerator:documents-analyser, accelerator:web-search-researcher.

!${CLAUDE_PLUGIN_ROOT}/bin/accelerator config review plan --fail-safe

Plans directory: !${CLAUDE_PLUGIN_ROOT}/bin/accelerator config path plans --fail-safe Plan reviews directory: !${CLAUDE_PLUGIN_ROOT}/bin/accelerator config path review_plans --fail-safe

Plan Review Template

The template below defines the frontmatter and body structure that every plan review must carry. Read it now — use it to guide what information you record in Steps 3-4 and what shape you persist in Step 4.8.

!${CLAUDE_PLUGIN_ROOT}/bin/accelerator config template plan-review --fail-safe

You are tasked with reviewing an implementation plan through multiple quality lenses and then collaboratively iterating the plan based on findings.

Initial Response

When this command is invoked:

  1. Check if a plan path was provided:
  • If a plan path was provided, read it immediately and FULLY
  • If optional focus arguments were provided (e.g., "security and architecture"), note them for lens selection
  • Begin the review process
  1. If no plan path provided, respond with:
I'll help you review an implementation plan. Please provide:
1. The path to the plan file (e.g., `{plans directory}/2025-01-08-ENG-1478-feature.md`)
2. (Optional) Focus areas to emphasise (e.g., "focus on security and architecture")

Tip: You can invoke this command with arguments:
  `/review-plan {plans directory}/2025-01-08-feature.md`
  `/review-plan {plans directory}/2025-01-08-feature.md focus on security and architecture`

Then wait for the user's input.

Available Review Lenses

LensLens SkillFocus
Architecturearchitecture-lensModularity, coupling, scalability, evolutionary design, tradeoffs
Securitysecurity-lensThreats, missing protections, STRIDE analysis, OWASP coverage
Test Coveragetest-coverage-lensTesting strategy, test pyramid, edge cases, isolation, risk coverage
Code Qualitycode-quality-lensDesign principles, testability, error handling, complexity management
Standardsstandards-lensProject conventions, API standards, accessibility
Usabilityusability-lensDeveloper experience, API ergonomics, configuration, onboarding
Performanceperformance-lensAlgorithmic efficiency, resource usage, concurrency, caching
Documentationdocumentation-lensDocumentation completeness, accuracy, audience fit
Databasedatabase-lensMigration safety, schema design, query correctness, integrity
Correctnesscorrectness-lensLogical validity, boundary conditions, state management, concurrency
Compatibilitycompatibility-lensAPI contracts, cross-platform, protocol compliance, deps
Portabilityportability-lensEnvironment independence, deployment flexibility, vendor lock
Safetysafety-lensData loss prevention, operational safety, protective mechanisms

Process Steps

Step 1: Read and Understand the Plan

  1. Read the plan file FULLY — never use limit/offset
  2. Read any files the plan references — work items, related research, key source files mentioned
  3. Understand the plan's scope:
  • What technologies and layers does it touch?
  • Does it involve APIs, UI, infrastructure, data models?
  • What's the complexity and risk profile?
  • Who are the consumers — other developers, services, end users?
  1. Check for existing reviews: Glob for review documents matching {plan reviews directory}/{plan-stem}-review-*.md. If any are found:

    • Read the most recent review document (highest review number) to understand what was previously reviewed
    • Note the previous verdict, review pass count, and key findings
    • Inform the user: "I found {N} previous review(s) of this plan. The most recent (review {N}, verdict: {verdict}) will be used as context."
    • The agents do NOT receive the previous review — they review the plan fresh. But the aggregation step (Step 4) should reference the previous review when composing cross-cutting themes and the assessment: specifically, note which findings from the previous review recur in the new review and which appear to have been addressed by plan changes.
    • If the prior review file exists but cannot be parsed (e.g., malformed frontmatter from a partial write), warn the user and proceed as if no prior review exists.

    The new review creates a new file with the next review number (e.g., -review-2.md). Previous review files are never modified or deleted — the full review history is preserved on disk.

Step 2: Select Review Lenses

Determine which lenses are relevant based on the plan's scope and any user- provided focus arguments.

If the user provided focus arguments:

  • Map the focus areas to the corresponding lenses
  • Include any additional lenses that are clearly relevant to the plan's scope
  • Briefly explain which lenses you're running and why

If no focus arguments were provided, auto-detect relevance:

Take time to think carefully about which lenses apply based on:

  • Architecture — relevant for most plans; skip only for trivial, single-file changes
  • Code Quality — relevant for most plans; skip only for documentation-only or configuration-only changes
  • Test Coverage — relevant for most plans; skip only for documentation-only, configuration-only, or infrastructure-only changes with no code
  • Security — relevant when the plan involves: authentication/authorisation, user input handling, data storage, external integrations, API endpoints, secrets/credentials, network boundaries
  • Standards — relevant when the plan involves: API changes, UI changes, new file/module creation, changes to public interfaces
  • Usability — relevant when the plan involves: public APIs, CLI interfaces, configuration surfaces, breaking changes, migration paths, developer-facing libraries
  • Performance — relevant when the plan involves: data processing pipelines, high-throughput APIs, concurrent processing resource efficiency, caching strategy, or algorithm-heavy logic. Skip for documentation-only, configuration-only, or trivial changes.
  • Documentation — relevant when the plan involves: new public APIs, new user-facing features, configuration changes, breaking changes, or new system components that will need documentation.
  • Database — relevant when the plan involves: database schema changes, new tables, migrations, query-heavy features, or changes to data access patterns.
  • Correctness — relevant for most plans; skip only for documentation-only or trivial configuration changes.
  • Compatibility — relevant when the plan involves: public API changes, dependency updates, protocol changes, cross-platform considerations, or versioning decisions.
  • Portability — relevant when the plan involves: infrastructure changes, deployment modifications, new cloud service integrations, or environment-specific logic.
  • Safety — relevant when the plan involves: data migration, deletion logic, deployment changes, automated processes, or changes to critical system paths.

Lens selection cap: Select the most relevant lenses for the change under review. If review configuration is provided above, use the configured min_lenses and max_lenses values. Otherwise, use the defaults: {min lenses} to {max lenses} lenses. Apply these prioritisation rules:

Apply this lens selection pipeline in order:

  1. Start with all available lenses: the 13 built-in lenses plus any custom lenses listed in the review configuration above.
  2. Remove disabled lenses: if review configuration specifies disabled_lenses, remove those from the available set. They are never selected regardless of auto-detect criteria.
  3. Mark core lenses: if review configuration specifies core_lenses, use that list. Otherwise, the core lenses are Architecture, Code Quality, Test Coverage, and Correctness. Core lenses are included unless the change is clearly outside their scope.
  4. Auto-detect remaining lenses: use the criteria below (for built-in lenses) and the auto-detect criteria from review configuration (for custom lenses) to identify which non-core lenses are relevant to the change. Custom lenses that provide auto-detect criteria participate in selection like any other non-core lens. Custom lenses without auto-detect criteria (marked "always include" in the configuration) are always selected. Custom lenses use absolute paths instead of the ${CLAUDE_PLUGIN_ROOT} lens path template.
  5. Apply focus arguments: if the user provided focus areas, prioritise the corresponding lenses and fill remaining slots with auto-detected ones.
  6. Cap at max_lenses: if more lenses than the configured maximum pass selection, rank by relevance and drop the least relevant. Prefer lenses whose core responsibilities directly overlap with the change's concerns.
  7. Enforce min_lenses floor: never run fewer than min_lenses unless the change is trivially scoped.

When presenting the lens selection, clearly indicate which lenses are selected and which are skipped, with a brief reason for each skip.

Present your lens selection to the user before proceeding:

Based on the plan's scope, I'll review through these lenses:
- Architecture: [reason]
- Security: [reason — or "Skipping: no security-sensitive changes identified"]
- Test Coverage: [reason]
- Code Quality: [reason]
- Standards: [reason — or "Skipping: ..."]
- Usability: [reason — or "Skipping: ..."]
- Performance: [reason — or "Skipping: no performance-sensitive changes identified"]
- Documentation: [reason — or "Skipping: ..."]
- Database: [reason — or "Skipping: no database changes identified"]
- Correctness: [reason]
- Compatibility: [reason — or "Skipping: ..."]
- Portability: [reason — or "Skipping: ..."]
- Safety: [reason — or "Skipping: ..."]

Then use the AskUserQuestion tool to ask the user whether to proceed, with two options:

  1. Yes, use the proposed lenses — run the review with the selected lenses
  2. No, specify which lenses to use — adjust the selection before running

Wait for the user's answer before spawning reviewers. If they choose option 2, ask which lenses they want as a plain-text question only — do NOT use AskUserQuestion for this follow-up (the lens list is too large for the 4-option limit). Once confirmed, update the selection and re-present it using the same AskUserQuestion proceed/adjust pattern above.

Step 3: Spawn Review Agents

For each selected lens, spawn the {reviewer agent} agent with a prompt that includes paths to the lens skill and output format files. Do NOT read these files yourself — the agent reads them in its own context.

Compose each agent's prompt following this template:

You are reviewing an implementation plan through the [lens name] lens.

## Context

The implementation plan is at [path]. Read it fully.
Also read any files the plan references for additional context.

## Analysis Strategy

1. Read your lens skill and output format files (see paths below)
2. Read the implementation plan file fully
3. Identify the scope and complexity of the proposed changes
4. Explore the codebase to understand existing patterns and context
5. Evaluate the plan through your lens, applying each key question
6. Reference specific plan sections in your findings using the `location`
   field (e.g., "Phase 2: API Endpoints", "Testing Strategy section")

## Lens

Read the lens skill at the path listed in the Lens Catalogue table in the
review configuration above. If no review configuration is present, use:
${CLAUDE_PLUGIN_ROOT}/skills/review/lenses/[lens]-lens/SKILL.md

## Output Format

Read the output format at: ${CLAUDE_PLUGIN_ROOT}/skills/review/output-formats/plan-review-output-format/SKILL.md

IMPORTANT: Return your analysis as a single JSON code block. Do not include
prose outside the JSON block.

Spawn all selected agents in parallel using the Task tool with subagent_type: "!${CLAUDE_PLUGIN_ROOT}/bin/accelerator config agent reviewer --fail-safe".

IMPORTANT: Wait for ALL review agents to complete before proceeding.

Handling malformed agent output:

If an agent's response is not a clean JSON block, apply this extraction strategy:

  1. Look for a JSON code block fenced with triple backticks (optionally with a json language tag)
  2. If found, extract and parse the content within the fences
  3. If the extracted JSON is valid, use it normally
  4. If no JSON code block is found, or the JSON within it is invalid, apply the fallback: treat the agent's entire output as a single finding with the agent's lens name and "major" severity, and include it in the review summary

When falling back, warn the user that the agent's output could not be parsed and present the raw agent output in a collapsed form so the user can see what the agent actually found.

Step 4: Aggregate and Curate Findings

Once all reviews are complete:

  1. Parse agent outputs: Extract the JSON block from each agent's response (see the extraction strategy in Step 3). Collect the summary, strengths, and findings arrays from each.

  2. Aggregate across agents:

    • Combine all findings arrays into a single list
    • Combine all strengths arrays into a single list
    • Collect all summary strings
  3. Deduplicate findings: Where multiple agents flag overlapping plan sections with similar concerns, consider merging — but only when the findings address the same underlying concern from different lens perspectives. Location proximity alone is not sufficient; the findings must be semantically related.

    When merging:

    • Combine the bodies, attributing each part to its lens
    • Use the highest severity among the merged findings
    • Use the highest confidence among the merged findings
    • Note all contributing lenses in the title

    When in doubt, keep findings separate — distinct findings are easier to address individually than a merged finding covering multiple concerns.

  4. Prioritise findings:

    • Sort by severity: critical > major > minor > suggestion
    • Within the same severity, sort by confidence: high > medium > low
  5. Determine suggested verdict:

    If review configuration provides verdict overrides above, apply those thresholds instead of the defaults below:

    • If plan_revise_severity is none, skip the severity-based REVISE rule (major count rule still applies independently)
    • If any findings at or above the plan revise severity ({plan revise severity}) exist → suggest REVISE
    • If {plan revise major count} or more "major" findings exist → suggest REVISE
    • If fewer major findings than the threshold, or only minor/suggestion → suggest COMMENT
    • If no findings at all (only strengths) → suggest APPROVE

    Verdict meanings:

    • APPROVE — plan is sound and ready for implementation
    • REVISE — plan needs changes before implementation
    • COMMENT — observations only, plan is acceptable as-is

    When presenting a COMMENT verdict with major findings, note: "Plan is acceptable but could be improved — see major findings below."

  6. Identify cross-cutting themes: Look for findings that appear across multiple lenses — issues flagged by 2+ agents reinforce each other and should be highlighted in the summary. Also identify tradeoffs where different lenses conflict (e.g., security wants more validation, usability wants less friction).

  7. Compose the review summary:

    ## Plan Review: [Plan Name]
    
    **Verdict:** [APPROVE | REVISE | COMMENT]
    
    [Combined assessment: take each agent's summary and synthesise into 2-3
    sentences covering the overall quality of the plan across all lenses]
    
    ### Cross-Cutting Themes
    [Issues that multiple lenses identified — these deserve the most attention]
    - **[Theme]** (flagged by: [lenses]) — [description]
    
    ### Tradeoff Analysis
    [Where different lenses disagree, present both perspectives]
    - **[Quality A] vs [Quality B]**: [description and recommendation]
    
    [Omit either section if there are no cross-cutting themes or tradeoffs]
    
    ### Findings
    
    #### Critical
    - 🔴 **[Lens]**: [title]
      **Location**: [plan section]
      [First 1-2 sentences of body as summary]
    
    #### Major
    - 🟡 **[Lens]**: [title]
      **Location**: [plan section]
      [First 1-2 sentences of body as summary]
    
    #### Minor
    - 🔵 **[Lens]**: [title]
      **Location**: [plan section]
      [First 1-2 sentences of body as summary]
    
    #### Suggestions
    - 🔵 **[Lens]**: [title]
      **Location**: [plan section]
      [First 1-2 sentences of body as summary]
    
    ### Strengths
    - ✅ [Aggregated and deduplicated strengths from all agents]
    
    ### Recommended Changes
    [Ordered list of specific, actionable changes to the plan, prioritised by
    impact. Each should reference the finding(s) it addresses.]
    
    1. **[Change description]** (addresses: [finding titles])
       [Specific guidance on what to modify in the plan]
    
    ---
    *Review generated by /review-plan*
    
  8. Write the review artifact to {plan reviews directory}/:

    Derive the review filename using the plan stem and the next available review number. The plan stem is the basename of the plan path without the .md extension. For example, if the plan is {plans directory}/2026-03-22-improve-error-handling.md and no prior reviews exist, the review filename is {plan reviews directory}/2026-03-22-improve-error-handling-review-1.md.

    To determine the next review number:

    mkdir -p {plan reviews directory}
    # Glob for existing reviews of this plan
    ls {plan reviews directory}/{plan-stem}-review-*.md 2>/dev/null
    # Extract the highest number, increment by 1. If none exist, use 1.
    
Populate frontmatter

The target: field is filled automatically from the $ARGUMENTS plan reference — this is what makes the review traceable back to the plan it covers. Per ADR-0034, the typed-linkage form is "plan:<plan-id>".

Before writing the plan review file, capture metadata and substitute the unified base fields and per-type extras into the template's frontmatter block:

  1. Invoke ${CLAUDE_PLUGIN_ROOT}/bin/accelerator corpus metadata derive to obtain Current Date/Time (UTC):.
  2. Substitute every field below with the indicated value:
    • type:plan-review
    • id: ← the review filename stem (without .md), always quoted as a YAML string
    • title:Plan Review: {plan title}
    • date: ← the Current Date/Time (UTC): value
    • author: ← the author value resolved per create-work-item/SKILL.md:578-580
    • producer:review-plan
    • status:complete
    • last_updated: ← the same Current Date/Time (UTC): value
    • last_updated_by: ← the same value resolved for author
    • schema_version:1 (bare integer, not quoted)
    • parent: ← typed-linkage ref to the parent plan ("plan:NNNN"). Fill when the review names a parent plan; otherwise omit the key.
    • target:"plan:<plan-id>" where <plan-id> is the plan filename stem (e.g. "plan:2026-05-30-0065-update-artifact-templates-to-unified-schema"); the typed-linkage ref to the plan under review, per ADR-0034. Always fill — every review has a target.
    • relates_to: ← list of typed-linkage refs to related reviews or artifacts (["plan-review:NNNN", ...]). Fill when prior reviews are explicit; otherwise omit the key.
    • reviewer: ← the reviewer value resolved per create-work-item/SKILL.md:578-580
    • verdict: ← the verdict from Step 4.5 (APPROVE | REVISE | COMMENT)
    • lenses: ← the list of lens names used (from Step 2)
    • review_number:N (the next available review number from the glob above)
    • review_pass:1 (initial-write pass count; re-reviews bump per the Step 7 flow)
  3. Write the file with the substituted frontmatter block, followed by the review summary composed in Step 4.7 and the per-lens results as a final section:
{The full review summary from Step 4.7}

## Per-Lens Results

### {Lens 1 Name}

**Summary**: {agent summary}

**Strengths**:
{agent strengths}

**Findings**:
{agent findings — each with severity, confidence, location, and body}

### {Lens 2 Name}

...

The per-lens results section contains the full content from each agent's JSON output, converted to readable markdown. This preserves the complete analysis for future reference while keeping it human-readable.

Validate the frontmatter: after writing the review, run

${CLAUDE_PLUGIN_ROOT}/bin/accelerator corpus frontmatter validate --file <path>

If it exits non-zero, the review document violates the canonical frontmatter standard; report the emitted violation and fix the frontmatter before completing.

Step 5: Present the Review

Present the composed review summary from Step 4.7 to the user.

After presenting, offer the user control before proceeding to iteration:

The review is complete. Verdict: [verdict]

Would you like to:
1. Proceed to address findings? (I'll help edit the plan)
2. Change the verdict? (currently: [verdict])
3. Discuss any specific findings in more detail?
4. Re-run specific lenses with adjusted focus?

Step 6: Collaborative Plan Iteration

After presenting the review:

  1. Discuss findings with the user:
  • Ask which recommendations they want to address
  • Discuss any tradeoffs where they need to make a judgment call
  • Clarify any findings that need more context
  1. Edit the plan based on agreed changes:
  • Use the Edit tool to modify the plan file directly
  • Make changes incrementally — one finding at a time or in logical groups
  • Preserve the plan's existing structure and conventions
  • Don't rewrite sections unnecessarily — make targeted edits
  1. Summarise changes made:
    I've made the following changes to the plan:
    - [Change 1] — addressing [finding]
    - [Change 2] — addressing [finding]
    - [Skipped] — [finding you discussed and decided not to address, with reason]
    

Step 7: Offer Re-Review

After edits are complete:

The plan has been updated. Would you like me to run another review pass to
verify the changes address the findings? This will re-run the relevant lenses
to check for any remaining issues or new concerns introduced by the edits.

If the user accepts:

Shortened here. Read the whole file on GitHub.

Signals

GitHub stars
31
Forks
1
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
review-plan-atomicinnovation
Source
github.com/atomicinnovation/accelerator