code-review

code-review is a skill for Claude Code from lttr/claude-marketplace. It costs 70 tokens per session (967 once invoked), scanned A, original, MIT.

A read-only workflow for reviewing code changes from a branch, staged changes, an Azure DevOps pull request, a Git reference, or a local diff file. It first identifies the requested change set and then runs the review process.

In plain words
What is it for?
Reviewing the current branch against its base branch, staged changes, Azure DevOps pull requests, branch or commit differences, and .diff or .patch files.
Why use it?
It gathers changes from several common sources in a consistent way and prevents the review tool from posting comments or modifying the repository.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Reviewing the current branch against its base branch, staged changes, Azure DevOps pull requests, branch or commit differences, and .diff or .patch files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lttr/claude-marketplace/code-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.

Any agent
npx skills add lttr/claude-marketplace --skill code-review
Clone the repo
git clone --depth 1 https://github.com/lttr/claude-marketplace

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lttr/claude-marketplace/code-review/github.svg)](https://agentmods.dev/skills/lttr/claude-marketplace/code-review)
Your own site
<a href="https://agentmods.dev/skills/lttr/claude-marketplace/code-review"><img src="https://agentmods.dev/badge/skills/lttr/claude-marketplace/code-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 code-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/lttr/claude-marketplace/code-review"><img src="https://agentmods.dev/badge/skills/lttr/claude-marketplace/code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 967 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.00070 $0.00967
Opus 5 $0.00035 $0.00483
Sonnet 5 $0.00014 $0.00193
Haiku 4.5 $0.00007 $0.00097

Measured 9d ago against content hash 4f6e9ec25d53, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

code-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 9d 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.

.aiwork/2026-05-21_code-review-v4-snapshot/plugins/dev-flow/skills/code-review/SKILL.md · 112 lines

How it starts

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

Code Review

Single entry point. Detect input source, produce a diff file, then run the review pipeline.

Input Detection

Argument is $ARGUMENTS (may be empty).

Form Source
empty current branch vs base (master/main)
staged git diff --staged
numeric (12345) Azure DevOps PR id
URL containing _git/.../pullrequest/<id> Azure DevOps PR URL
URL containing _workitems/edit/<id> or ticket id mapped to PR resolve work item → PR via az boards
path ending .diff or .patch local diff file
anything else treat as git ref (branch / sha / tag)

Ambiguous → ask user. Do NOT guess.

Workflow

1. Resolve input → diff file path + metadata

empty
base=$(git rev-parse --verify master 2>/dev/null && echo master || echo main)
cur=$(git branch --show-current)
[ "$cur" = "$base" ] && abort "On base branch ($base). Switch to a feature branch."
git diff "$base"...HEAD > "/tmp/review-diff-$(date +%s).diff"
files=$(git diff --name-only "$base"...HEAD)
title="$cur"
staged
git diff --staged > "/tmp/review-diff-staged-$(date +%s).diff"
files=$(git diff --staged --name-only)
title="staged changes"
PR id / PR URL

Extract numeric id from URL if needed. Then:

az repos pr show --id <id> --output json
az repos pr diff --id <id> > "/tmp/review-diff-pr-<id>.diff"

Title/description/author/targetRefName from pr show output. Skip if status completed/abandoned, title has [WIP]/[Draft], author is bot, or only auto-generated files changed.

Read the full file on GitHub · 112 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 112 lines · 70 tokens per session scan A 4f6e9ec25d53

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository lttr/claude-marketplace (2 stars, last pushed 2d ago), licensed MIT. It adds 70 tokens to every session and 967 once invoked, about $0.0003 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-31.