review

review is a command for Claude Code from drobins25/craft. It costs 25 tokens per session (3,662 once invoked), scanned A, original, MIT.

A command that reviews code changes like a GitHub pull-request reviewer, either for a branch, a specific story, or a whole project.

In plain words
What is it for?
Use it to review branch differences, story commits, or an entire codebase, with optional focus on security, consistency, performance, or correctness.
Why use it?
It helps find correctness and security problems before changes are merged, without limiting the review to one fixed scope.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the craft plugin — 11 skills, 33 commands, 27 agents, 7 hooks, 1 MCP server shipped together

Good fit Use it to review branch differences, story commits, or an entire codebase, with optional focus on security, consistency, performance, or correctness.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add drobins25/craft
Claude Code
/plugin install craft

Made for: Claude Code.

Or install craft, the plugin that ships this one along with the rest of its 11 skills, 33 commands, 27 agents, 7 hooks, 1 MCP server.

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 review

README.md
[![agentmods](https://agentmods.dev/badge/commands/drobins25/craft/craft-review.svg)](https://agentmods.dev/commands/drobins25/craft/craft-review)
Your own site
<a href="https://agentmods.dev/commands/drobins25/craft/craft-review"><img src="https://agentmods.dev/badge/commands/drobins25/craft/craft-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,662 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 original No closer match found 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.00025 $0.03662
Opus 5 $0.00013 $0.01831
Sonnet 5 $0.00005 $0.00732
Haiku 4.5 $0.00003 $0.00366

Measured 8d ago against content hash 138f30203b10, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

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 8d ago.

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.

commands/craft-review.md · 422 lines

How it starts

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

Review

Run a PR-style code review using the crystallized pr-reviewer-expert agent. Three approaches based on what you want reviewed.

Modes

Mode Trigger What gets reviewed
Branch (default) /craft:review Everything on current branch not on origin/main
Story /craft:review story [name] Commits from a specific story
Project /craft:review project [path] Full codebase or subsystem audit (no diffs)

Optional focus flag: --focus security|consistency|performance|correctness (default: correctness + security)

Optional review strategy: --maze enables perpendicular maze review (architect generates questions, runner answers them). Without --maze, uses the existing single-agent generalist review.

Flow

Step 1: Determine Mode and Scope

Parse args to determine review scope:

  • No args or branchBranch mode
  • story or story <name>Story mode
  • project or project <path>Project mode

Extract --focus flag if present. Default focus is correctness,security.

Step 2: Gather Context

Always pre-load these files (read them, include relevant content in agent prompt):

  1. .craft/design/locked.md - locked decisions the reviewer must respect
  2. .craft/project.md - stack, patterns, conventions
  3. .craft/quality.yaml - quality gates

Step 3: Gather Diff / Scope

Branch mode:

# Detect the default remote branch
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")

# Get the diff
git diff origin/${DEFAULT_BRANCH}...HEAD

# Get changed file list
git diff --name-only origin/${DEFAULT_BRANCH}...HEAD

# Get commit log for the branch
git log --oneline origin/${DEFAULT_BRANCH}..HEAD

If there are no commits ahead of origin, tell the user:

"No commits ahead of origin/${DEFAULT_BRANCH}. Nothing to review."

If diff exceeds ~500 lines, split by directory or subsystem. Run the agent multiple times with scoped diffs rather than one massive prompt. Tell the user:

Read the full file on GitHub · 422 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. 8d ago First seen · 422 lines · 25 tokens per session scan A 138f30203b10

Subscribe to this mod's changes

review is a command published in the GitHub repository drobins25/craft (53 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 3,662 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.