pr-reviewer

pr-reviewer is an agent for Claude Code from mthines/agent-skills. It costs 255 tokens per session (13,648 once invoked), scanned A, original, MIT.

A code-review agent for GitHub pull requests, which are proposed changes to a shared codebase. It checks whether a change is ready for human review and examines the code across several review areas.

In plain words
What is it for?
Use it to review your own or another contributor's pull request, check CI and documentation, and leave a summary plus focused inline comments.
Why use it?
It catches merge-blocking problems, inaccurate descriptions, unresolved feedback, and code issues before a human reviewer spends time on the request.

Agent for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

Part of the mthines-agent-skills plugin — 54 skills, 3 agents, 2 hooks shipped together

Good fit Use it to review your own or another contributor's pull request, check CI and documentation, and leave a summary plus focused inline comments.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mthines/agent-skills/pr-reviewer
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/mthines/agent-skills

Made for: Claude Code.

Or install mthines-agent-skills, the plugin that ships this one along with the rest of its 54 skills, 3 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/mthines/agent-skills/pr-reviewer/github.svg)](https://agentmods.dev/agents/mthines/agent-skills/pr-reviewer)
Your own site
<a href="https://agentmods.dev/agents/mthines/agent-skills/pr-reviewer"><img src="https://agentmods.dev/badge/agents/mthines/agent-skills/pr-reviewer/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 pr-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/mthines/agent-skills/pr-reviewer"><img src="https://agentmods.dev/badge/agents/mthines/agent-skills/pr-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 255 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 13,648 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.00255 $0.13648
Opus 5.5 $0.00102 $0.05459
Sonnet 5.5 $0.00051 $0.02730
Haiku 4.5 $0.00026 $0.01365

Measured 11d ago against content hash 509428871b60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 11d 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 · 735 lines

How it starts

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

pr-reviewer Agent — Pre-Merge Gate + Thorough Inline Review

You author a consolidated review for a GitHub PR: a sticky report comment rewritten in place on every run, plus short, grounded, confidence-gated inline comments posted append-only on a visible COMMENT review. Run state lives in a per-PR LoreKit record (Step 0.7), never in a comment. Gate side: find every reason this PR should not reach a human reviewer yet. Inline side: find every code-level issue the lenses surface. REVIEW_RELATION (Step 0.5) changes tone only, never the pipeline.

Each step names the rule file that owns its procedure as a backticked path plus when to read it. Read it at that point — a step known only from this summary has not been run.

Locating this agent's own files

This definition is one file plus a support tree beside it (pr-reviewer/{rules,scripts,templates,references,assets}/ and shared/rules/). Every agents/… path below names a file in that tree; it is never a path to read as written — bare, it resolves against the reviewed repository. Resolve the root once, at Step 0, and prefix every such path with it:

resolve() {  # portable readlink -f
  [ -e "$1" ] || return 1
  ( cd "$(dirname "$1")" && t=$(basename "$1")
    while [ -L "$t" ]; do d=$(readlink "$t"); cd "$(dirname "$d")" || return 1; t=$(basename "$d"); done
    printf '%s/%s\n' "$(pwd -P)" "$t" )
}
# Loaded as a plugin, ~/.claude/agents holds no copy: the plugin's bin/agent-skills-root names its root.
AGENT_MD=$(resolve "${CLAUDE_AGENT_FILE:-$HOME/.claude/agents/pr-reviewer.md}" \
  || resolve "$(agent-skills-root 2>/dev/null)/agents/pr-reviewer.md" || echo "")
AGENT_SUPPORT="${AGENT_MD%/pr-reviewer.md}"
echo "AGENT_SUPPORT=$AGENT_SUPPORT"   # print it: later tool calls need the literal string

Shell state does not survive between tool calls: reuse the printed string in later Reads and re-run the block in any later Bash call that needs it.

Never probe the un-resolved install path ($HOME/.claude/agents/pr-reviewer/…); an ENOENT there is not evidence of anything. resolve() is the only admissible test. When AGENT_SUPPORT does not resolve (empty AGENT_MD), announce Support tree unresolved — <what was tried>., name what is lost (Phases A–F run on their rule files; Step 4a hard-stops), and never improvise an artifact the renderer owns. A caller that dispatches this definition by file path (e.g. a Dash0 Agent0 automation) MUST export the anchor before Step 0:

Read the full file on GitHub · 735 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. 11d ago Changed 509428871b60
  2. 15d ago Changed · +2 lines 95ddb76c9a1b
  3. 25d ago Changed · +19 lines 8f98ced4f774
  4. 26d ago Changed · +2 lines d8f7e20fa9e1
  5. 27d ago Changed · +5 lines 7f050974c8bf
  6. 29d ago Changed · +1 lines 6921e0d16e09
  7. 1mo ago Changed · -115 lines 97eaa281ea1a
  8. 1mo ago Changed · +3 lines ee04bcf9d2fa
  9. 1mo ago Changed · +5 lines 463d182eaa44
  10. 1mo ago First seen · 813 lines · 255 tokens per session scan A 0157a1de1b0a

Subscribe to this mod's changes

pr-reviewer is an agent published in the GitHub repository mthines/agent-skills (22 stars, last pushed today), licensed MIT. It adds 255 tokens to every session and 13,648 once invoked, about $0.0010 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.

Related

pr-reviewer compared with agents from other repositories

pr-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-reviewermthines/agent-skillsAgent22todayMITA255Claude Code
scope-guardRune-kit/runeAgent96yesterdayMITA41Claude Code
prior-pr-historyronaknnathani/relayAgent4424d agoMITA65Claude Code
git-historyronaknnathani/relayAgent4424d agoMITA66Claude Code
historical-contextandyzengmath/solitonAgent15mo agoMITA15Claude Code
ralph-reviewerjavi22020/ralphAgent17mo agononeA69Claude Code
component-improverdavila7/claude-code-templatesAgent34ktodayMITA39Claude Code