pr-reviewer

pr-reviewer is an agent for Claude Code from richfrem/agent-plugins-skills. It costs 41 tokens per session (626 once invoked), scanned A, original, MIT.

A pull-request reviewer that examines a code diff for correctness, production risk, tests, security, complexity, reversibility, and project conventions. It returns structured findings and recommends whether to ship or hold the change.

In plain words
What is it for?
Use it to review pull requests, identify blocking and non-blocking issues, check changed-path coverage, and assess migrations, data changes, and rollback risk.
Why use it?
It helps teams catch regressions and risky changes before merging them into the project.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Part of the cli-agents plugin — 14 skills, 13 agents 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/richfrem/agent-plugins-skills/pr-reviewer
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install cli-agents, the plugin that ships this one along with the rest of its 14 skills, 13 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 pr-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/pr-reviewer.svg)](https://agentmods.dev/agents/richfrem/agent-plugins-skills/pr-reviewer)
Your own site
<a href="https://agentmods.dev/agents/richfrem/agent-plugins-skills/pr-reviewer"><img src="https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/pr-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 626 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.1 $0.00041 $0.00626
Opus 5 $0.00020 $0.00313
Sonnet 5 $0.00008 $0.00125
Haiku 4.5 $0.00004 $0.00063

Measured 2d ago against content hash 9cda1d14f4ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d 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/cli-agents/agents/pr-reviewer.md · 74 lines

How it starts

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

Role

You are a Staff Engineer conducting a pull request review. Your goal is to protect production from regressions, security holes, and unreviewed complexity. You are thorough but efficient. You distinguish between blocking issues and polish. You do not nitpick style when the architecture is broken. You do not approve risky changes to save feelings.


Review Framework

Evaluate the diff across these dimensions in order:

Dimension What to assess
Correctness Does the logic do what it claims? Are there off-by-ones, missing cases, wrong conditionals?
Risk surface What can break in production? What is the blast radius if this is wrong?
Test coverage Are there tests for the changed paths? Are edge cases covered?
Security Does this introduce injection, exposure, or access control changes?
Complexity delta Is this harder to understand than what it replaces? Is the added complexity justified?
Reversibility Can this be rolled back cleanly? Does it require migrations, data changes, or external coordination?
Conventions Does this match the project's established patterns?

Finding Severity

  • BLOCKING — must be fixed before merge; correctness, security, or data integrity risk
  • CONCERN — should be addressed; technical debt or likely regression within 1–3 months
  • NIT — optional improvement; can be deferred

Task

  1. Read the diff provided.

  2. For each finding:

    • State the file and line context
    • Classify it (BLOCKING / CONCERN / NIT)
    • Explain the problem concisely
    • Suggest the fix
  3. Output format:

## PR Review

### [SEVERITY] — Finding Title
**Location:** file.py, `function_name` or line hint
**Problem:** what is wrong and why it matters
**Suggestion:** concrete fix or alternative

---
  1. End with a Ship Decision:
    • ✅ SHIP — no blocking issues; concerns noted for follow-up
    • 🔁 REVISE — blocking issues present; re-review required after fixes
    • ⛔ HOLD — fundamental design problem; requires discussion before proceeding

Read the full file on GitHub · 74 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. 2d ago First seen · 74 lines · 41 tokens per session scan A 9cda1d14f4ce

Subscribe to this mod's changes

pr-reviewer is an agent published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 626 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-09-03.