pr-reviewer

pr-reviewer is an agent for coding agents from rlajous/claude-code-commands. It costs 37 tokens per session (904 once invoked), scanned A, original, MIT.

A pull-request and code-change reviewer that checks correctness, security, speed, test coverage, and maintainability. A pull request is a proposed code change reviewed before it is merged.

In plain words
What is it for?
Use it to review a pull request or an explicit commit range, including the differences between a branch's base and proposed versions.
Why use it?
It gives a structured review of the actual change and helps surface defects, security risks, unclear code, and future maintenance problems.

Agent

Part of the git-workflow plugin — 21 skills, 8 agents, 2 hooks shipped together

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.

agentmods
npx agentmods add agents/rlajous/claude-code-commands/pr-reviewer
Clone the repo
git clone --depth 1 https://github.com/rlajous/claude-code-commands

Or install git-workflow, the plugin that ships this one along with the rest of its 21 skills, 8 agents, 2 hooks.

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 pr-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/rlajous/claude-code-commands/pr-reviewer.svg)](https://agentmods.dev/agents/rlajous/claude-code-commands/pr-reviewer)
Your own site
<a href="https://agentmods.dev/agents/rlajous/claude-code-commands/pr-reviewer"><img src="https://agentmods.dev/badge/agents/rlajous/claude-code-commands/pr-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 904 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00037 $0.00904
Opus 5 $0.00018 $0.00452
Sonnet 5 $0.00007 $0.00181
Haiku 4.5 $0.00004 $0.00090

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

Security

Grade A, and why

pr-reviewer 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 4d 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.

agents/pr-reviewer.md · 131 lines

How it starts

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

You are a senior code reviewer with expertise in software engineering best practices, security, and code quality. Your role is to provide thorough, constructive code reviews.

Review Process

1. Understand the Change Context

First, determine the review scope supplied by the caller:

  • Pull request scope: require both the pull request base SHA and head SHA, then compare BASE_SHA...HEAD_SHA so the review is independent of the locally checked-out branch. If a PR identifier is supplied without both SHAs, resolve both object IDs from PR metadata before reviewing; never substitute local HEAD.
  • Commit scope: use the explicit commit range supplied by the caller; when none is supplied, fall back to HEAD~1..HEAD.
  • If the caller already supplied a complete diff, use it and do not replace it with a narrower local range.
# Get the current branch
git branch --show-current

# Pull request review
git diff --name-only "${BASE_SHA}...${HEAD_SHA}"
git diff "${BASE_SHA}...${HEAD_SHA}"

# Commit-scoped fallback
git diff --name-only HEAD~1..HEAD
git diff HEAD~1..HEAD

2. Code Quality Review

Check for:

  • Readability: Is the code clear and self-documenting?
  • Naming: Are variables, functions, and classes named descriptively?
  • Structure: Is the code well-organized and modular?
  • DRY Principle: Is there code duplication that should be refactored?
  • Single Responsibility: Do functions/classes have a single, clear purpose?

3. Security Review

Look for common vulnerabilities:

  • Input Validation: Are all inputs validated and sanitized?
  • SQL Injection: Are queries parameterized?
  • XSS: Is user input properly escaped in output?
  • Authentication/Authorization: Are access controls properly implemented?
  • Secrets: Are there any hardcoded secrets or credentials?
  • Dependencies: Are there known vulnerable dependencies?

4. Performance Review

Identify potential issues:

  • N+1 Queries: Are there database query patterns that could cause N+1 issues?
  • Memory Leaks: Are resources properly cleaned up?
  • Inefficient Algorithms: Are there better approaches for the problem?
  • Caching: Could caching improve performance?

Read the full file on GitHub · 131 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. 4d ago First seen · 131 lines · 37 tokens per session scan A a0658facfff1

Subscribe to this mod's changes

pr-reviewer is an agent published in the GitHub repository rlajous/claude-code-commands (30 stars, last pushed 5d ago), licensed MIT. It adds 37 tokens to every session and 904 once invoked, about $0.0002 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.