pr-review

pr-review is a skill for Claude Code from ao92265/claude-code-playbook. It costs 124 tokens per session (2,106 once invoked), scanned A, original, MIT.

A pull request review tool for GitHub, where a pull request is a proposed code change awaiting review. It checks the change through several review passes and can post findings as inline comments on the pull request.

In plain words
What is it for?
Use it to review a GitHub pull request for code and security issues, preview the findings, and post one inline-comment review.
Why use it?
It puts review comments on the exact changed lines instead of leaving them in a separate terminal output. It also checks that comments refer to real lines and uses a non-approval review status.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; runs codex exec.

Part of the playbook plugin — 82 skills, 4 commands, 9 agents, 4 hooks shipped together

Good fit Use it to review a GitHub pull request for code and security issues, preview the findings, and post one inline-comment review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ao92265/claude-code-playbook/pr-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 ao92265/claude-code-playbook --skill pr-review
Clone the repo
git clone --depth 1 https://github.com/ao92265/claude-code-playbook

Made for: Claude Code.

Or install playbook, the plugin that ships this one along with the rest of its 82 skills, 4 commands, 9 agents, 4 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-review

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ao92265/claude-code-playbook/pr-review"><img src="https://agentmods.dev/badge/skills/ao92265/claude-code-playbook/pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,106 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.00124 $0.02106
Opus 5.5 $0.00050 $0.00842
Sonnet 5.5 $0.00025 $0.00421
Haiku 4.5 $0.00012 $0.00211

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

Security

Grade A, and why

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

skills/pr-review/SKILL.md · 199 lines

How it starts

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

/pr-review — review a GitHub PR and post inline comments

A terminal review that lands on the pull request, not in a scroll buffer. The review lane is Claude; the posting mechanics live in a deterministic script so the JSON payload is never hand-built.

Non-negotiable guardrails

  1. event: "COMMENT" always. Never APPROVE, never REQUEST_CHANGES. Approval is a human decision (core-rules: no self-approval).
  2. Never dismiss, resolve, or reply to an existing review thread.
  3. Repos the user does not own always get a confirmation before posting, even when --post was passed. Owned = <your-gh-user>. Everything else — <your-org>, <your-org>, <your-org>, any other org — is somebody else's PR.
  4. Never invent a line number. Every inline anchor must exist in the diff. The script enforces this; do not work around it.
  5. Attribution: the PR author's name comes from gh, never from memory.

Step 1 — Resolve the PR

Parse $ARGUMENTS. The first token is the PR ref if it looks like one:

Form Example
bare number 10178 (uses the repo in cwd)
slug + number <your-org>/<repo>#10178
URL https://github.com/<your-org>/<repo>/pull/10178
omitted the open PR for the current branch

Remaining words are focus hints (security, error handling, tests…). Flags --dry-run and --post are consumed here, not passed to the reviewers.

If the ref is omitted and cwd has no PR, list candidates and ask which:

gh search prs --review-requested=@me --state=open --limit 10 \
  --json repository,number,title \
  --jq '.[] | "\(.repository.nameWithOwner)#\(.number)\t\(.title)"'

Then pull metadata:

gh pr view <N> --repo <slug> \
  --json number,title,author,headRefName,baseRefName,url,body,files,additions,deletions

Step 2 — Fetch the diff

gh pr diff <N> --repo <slug> > "$SCRATCH/pr.diff"

Check the size first (wc -l). Rough guide:

  • under ~1500 lines — hand the whole diff to both reviewers.
  • over that — split by file into two roughly equal batches and give each reviewer the batch plus the full file list, so neither claims coverage it does not have. Say in the summary that the diff was split.

Read the full file on GitHub · 199 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 66883832bdf5
  2. 2mo ago First seen · 199 lines · 124 tokens per session scan A 4063f90cd6fe

Subscribe to this mod's changes

pr-review is a skill published in the GitHub repository ao92265/claude-code-playbook (13 stars, last pushed 19d ago), licensed MIT. It adds 124 tokens to every session and 2,106 once invoked, about $0.0005 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-10-06.

Related

pr-review compared with skills from other repositories

pr-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-reviewao92265/claude-code-playbookSkill1319d agoMITA124Claude Code
discount-reviewpromptfoo/promptfooSkill28ktodayMITA18Claude Code, Codex
code-reviewpromptfoo/promptfooSkill28ktodayMITA11Claude Code
deep-reviewAnastasiyaW/codex-claude-code-configSkill218todayMITA180Claude Code
anti-sloproedyrustam/vibes-plugSkill1322d agoMITA41Cursor
living-codebase-ast-graphroedyrustam/vibes-plugSkill1322d agoMITA34Cursor
attestsimota/agent-skillsSkill107todayMITA46Claude Code, Codex