diff-review

diff-review is a command for Claude Code from theclaymethod/artifacture. It costs 12 tokens per session (475 once invoked), scanned A, original, MIT.

A command that creates a visual HTML review of code changes, comparing the architecture before and after a branch, commit, or pull request.

In plain words
What is it for?
Use it for architecture comparisons and code-review analysis, then export the review as a standalone HTML page.
Why use it?
It makes structural changes and reviewer-risk findings easier to inspect than a text-only diff. A diff is the set of changes between two versions of code.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the visual-explainer plugin — 1 skill, 13 commands, 11 agents shipped together

Good fit Use it for architecture comparisons and code-review analysis, then export the review as a standalone HTML page.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/theclaymethod/artifacture/diff-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/theclaymethod/artifacture

Made for: Claude Code.

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

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 diff-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/theclaymethod/artifacture/diff-review/github.svg)](https://agentmods.dev/commands/theclaymethod/artifacture/diff-review)
Your own site
<a href="https://agentmods.dev/commands/theclaymethod/artifacture/diff-review"><img src="https://agentmods.dev/badge/commands/theclaymethod/artifacture/diff-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 diff-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/theclaymethod/artifacture/diff-review"><img src="https://agentmods.dev/badge/commands/theclaymethod/artifacture/diff-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 475 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.00012 $0.00475
Opus 5.5 $0.00005 $0.00190
Sonnet 5.5 $0.00002 $0.00095
Haiku 4.5 $0.00001 $0.00047

Measured 1mo ago against content hash bca2b98d1094, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diff-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 1mo 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.

plugins/visual-explainer/commands/diff-review.md · 40 lines

How it starts

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

Load SKILL.md. Use this command for reviewer findings; use /explain-diff for a teaching walkthrough.

Resolve the diff

$1 Scope
Branch Working tree compared with that branch
Commit git show <commit>
HEAD Unstaged and staged changes
PR number gh pr diff <number>
Range git diff <range>
Omitted Working tree compared with main; resolve the repository's default branch if absent

Gather evidence

  1. Read the diff, --stat, and --name-status, then the changed functions and surrounding callers needed to establish behavior.
  2. Inspect affected public APIs, tests, configuration, documentation, and migrations.
  3. Read commit/PR descriptions, relevant plans, and available conversation history for recorded rationale. Separate observed behavior from inference; do not invent rejected alternatives.
  4. Keep a fact sheet mapping each displayed claim and quantity to command output or file:line. Mark unresolved claims as uncertain.

Compose the review

Lead with the concrete behavior change and its consequence. Give findings priority: each names a trigger, impact, source location, and possible correction. Report material uncertainty and validation gaps. Omit empty categories and generic praise.

Add only sections that help a reviewer:

  • Matching before/after examples or diagrams for changed behavior. Preserve node names and layout direction between versions.
  • A compact file/change table when scope needs explanation.
  • Validation evidence describing exercised behavior and gaps, rather than test-count tiles.
  • Recorded decisions, required migrations, and non-obvious contracts needed for follow-up work.

Use DiagramCanvas for supported layouts and follow cards/web-diagram.md for specialized diagrams. Keep before/after labels explicit; color may reinforce them. Default to the Lieflat-inspired preset, with open sections, readable snippets, and ruled tables. Do not add a KPI dashboard, housekeeping badges, or confidence meters.

Read the full file on GitHub · 40 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. 1mo ago Changed · -39 lines · -4 tokens per session bca2b98d1094
  2. 1mo ago First seen · 79 lines · 16 tokens per session scan A 9f4d33e4606f

Subscribe to this mod's changes

diff-review is a command published in the GitHub repository theclaymethod/artifacture (3 stars, last pushed 5d ago), licensed MIT. It adds 12 tokens to every session and 475 once invoked, about $0.0000 per session on Opus 5.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-31.