plan-review

plan-review is a command for Claude Code from NikiforovAll/claude-code-rules. It costs 14 tokens per session (1,825 once invoked), scanned A, a copy of plan-review, Apache-2.0.

A command that compares an implementation plan with the current codebase and presents the review as an HTML page.

In plain words
What is it for?
Use it to inspect a plan, check its referenced files, and assess current-versus-planned changes and risks.
Why use it?
It helps reveal gaps between what a plan proposes and what the existing project actually contains.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the handbook-visual-explainer plugin — 1 skill, 7 commands shipped together

Good fit Use it to inspect a plan, check its referenced files, and assess current-versus-planned changes and risks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nikiforovall/claude-code-rules/plan-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/NikiforovAll/claude-code-rules

Made for: Claude Code.

Or install handbook-visual-explainer, the plugin that ships this one along with the rest of its 1 skill, 7 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plan-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/nikiforovall/claude-code-rules/plan-review/github.svg)](https://agentmods.dev/commands/nikiforovall/claude-code-rules/plan-review)
Your own site
<a href="https://agentmods.dev/commands/nikiforovall/claude-code-rules/plan-review"><img src="https://agentmods.dev/badge/commands/nikiforovall/claude-code-rules/plan-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plan-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/nikiforovall/claude-code-rules/plan-review"><img src="https://agentmods.dev/badge/commands/nikiforovall/claude-code-rules/plan-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,825 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.01825
Opus 5 $0.00007 $0.00912
Sonnet 5 $0.00003 $0.00365
Haiku 4.5 $0.00001 $0.00183

Measured yesterday against content hash 5a3523b9c093, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-22, from the pricing page.

Security

Grade A, and why

plan-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to plan-review — 56 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/handbook-visual-explainer/commands/plan-review.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Load the visual-explainer skill, then generate a comprehensive visual plan review as a self-contained HTML page, comparing the current codebase against a proposed implementation plan.

Follow the visual-explainer skill workflow. Read the reference template, CSS patterns, and mermaid theming references before generating. Use a blueprint/editorial aesthetic with current-state vs. planned-state panels, but vary fonts and palette from previous diagrams.

Inputs — read both from the request, ignoring any --flags (those are the skill's, per its Arguments table): $ARGUMENTS

  • Plan file: the first path given (a markdown plan, spec, or RFC document)
  • Codebase: a second path if one is given, otherwise the current working directory

Data gathering phase — read and cross-reference these before generating:

  1. Read the plan file in full. Extract:

    • The problem statement and motivation
    • Each proposed change (files to modify, new files, deletions)
    • Rejected alternatives and their reasoning
    • Any explicit scope boundaries or non-goals
  2. Read every file the plan references. For each file mentioned in the plan, read the current version in full. Also read files that import or depend on those files — the plan may not mention all ripple effects.

  3. Map the blast radius. From the codebase, identify:

    • What imports/requires the files being changed (grep for import paths)
    • What tests exist for the affected files (look for corresponding .test.* / .spec.* files)
    • Config files, types, or schemas that might need updates
    • Public API surface that callers depend on
  4. Cross-reference plan vs. code. For each change the plan proposes, verify:

    • Does the file/function/type the plan references actually exist in the current code?
    • Does the plan's description of current behavior match what the code actually does?
    • Are there implicit assumptions about code structure that don't hold?

Verification checkpoint — before generating HTML, produce a structured fact sheet of every claim you will present in the review:

  • Every quantitative figure: file counts, estimated lines, function counts, test counts
  • Every function, type, and module name you will reference from both the plan and the codebase
  • Every behavior description: what the code currently does vs. what the plan proposes
  • For each, cite the source: the plan section or the file:line where you read it Verify each claim against the code and the plan. If something cannot be verified, mark it as uncertain rather than stating it as fact. This fact sheet is your source of truth during HTML generation — do not deviate from it.

Diagram structure — the page should include:

  1. Plan summary — lead with the intuition: what problem does this plan solve, and what's the core insight behind the approach? Then the scope: how many files touched, estimated scale of changes, new modules or tests planned. A reader who only sees this section should understand the plan's essence. Visual treatment: this is the visual anchor — use hero depth (larger type 20-24px, subtle accent-tinted background, more padding than other sections).

  2. Impact dashboard — files to modify, files to create, files to delete, estimated lines added/removed, new test files planned, dependencies affected. Include a completeness indicator: whether the plan covers tests (green/red), docs updates (green/yellow/red), and migration/rollback (green/grey for N/A).

  3. Current architecture — Mermaid diagram of how the affected subsystem works today. Focus only on the parts the plan touches — don't diagram the entire codebase. Show the data flow, dependencies, and call paths that will change. Wrap in .mermaid-wrap with the standard zoom controls — see "Zoom Controls" in css-patterns.md. Visual treatment: use matching Mermaid layout direction and node names as section 4 so the visual diff is obvious.

  4. Planned architecture — Mermaid diagram of how the subsystem will work after the plan is implemented. Use the same node names and layout direction as the current architecture diagram so the differences are visually obvious. Same zoom controls and click-to-expand as section 3. Highlight new nodes with a glow or accent border, removed nodes with strikethrough or reduced opacity, changed edges with a different stroke color.

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 83 lines · 14 tokens per session scan A 5a3523b9c093

Subscribe to this mod's changes

plan-review is a command published in the GitHub repository NikiforovAll/claude-code-rules (141 stars, last pushed 2d ago), licensed Apache-2.0. It adds 14 tokens to every session and 1,825 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to plan-review, differing in 56 lines, and is treated as a copy.

Related

Other commands, from other repositories

security-audit-static

Static security audit of AI-built code — map trust boundaries, cross-reference documented intent, self-refute every finding, and report only evidence-backed risks.

phuryn/pm-skills · 29 tokens

ship-check

Turn a vibe-coded repo into a reviewer-ready shipping packet — document the app, wire agent context, run correctness, security and performance reviews, add an independent unsteered pass, map test coverage, and compile the results.

phuryn/pm-skills · 44 tokens

analyze-pr

Review PR for quality, security, and coverage (GitHub/GitLab/Forgejo).

sgaunet/claude-plugins · 23 tokens

sm-buff

You usually don't run buff directly — run sm sail. sm sail drives the whole PR to green and calls buff watch / triage for you, stopping only when it needs you to act (see /sm-sail). Reach for sm buff here only for surgical work: inspecting a specific failure, or resolving a single review thread when sail has parked on…

ScienceIsNeato/slop-mop · 0 tokens

code-review-teach

Educational code review that teaches while reviewing. Provides constructive feedback, explains best practices, discusses trade-offs, and helps developers improve their coding skills.

sigistry/marketplace · 28 tokens

ship

Branch, commit, open PR, gather Claude + every enabled AI reviewer (Copilot, CodeRabbit, etc.), fix/justify/resolve every finding, loop until clean, then merge. Run only when implementation is finished AND the owner has said to ship (e.g. "ship it") — never self-invoke just because the work looks done. To design and…

PrabhdeepSingh/claude-plugins · 86 tokens