pr-review

pr-review is a skill for Claude Code from DJRHails/dotfiles. It costs 87 tokens per session (4,091 once invoked), scanned A, original, MIT.

A workflow for reviewing a GitHub pull request, which is a proposed code change, and fixing serious findings on its branch. It verifies findings, labels them by priority, runs scoped checks, and resolves addressed review threads.

In plain words
What is it for?
Use it when asked to review and fix a pull request, or to run the review process for a specified pull-request number.
Why use it?
It focuses the review on issues that can be confirmed from the code or by running it, rather than guesses. It also keeps high-priority fixes and their verification with the pull request.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Good fit Use it when asked to review and fix a pull request, or to run the review process for a specified pull-request number.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/djrhails/dotfiles/pr-review/github.svg)](https://agentmods.dev/skills/djrhails/dotfiles/pr-review)
Your own site
<a href="https://agentmods.dev/skills/djrhails/dotfiles/pr-review"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/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/djrhails/dotfiles/pr-review"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,091 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.00087 $0.04091
Opus 5.5 $0.00035 $0.01636
Sonnet 5.5 $0.00017 $0.00818
Haiku 4.5 $0.00009 $0.00409

Measured 7d ago against content hash 40dd5478d34b, 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 7d 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.

modules/agents/skills/pr-review/SKILL.md · 296 lines

How it starts

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

Review and Fix PR

$ARGUMENTS is the PR number (e.g. /pr-review 42). Without one, ask which PR.

Every finding must be verified before it is posted (a code path you read or ran), and P1/P2 findings are fixed on the PR branch. Those two properties are the product. Everything else in this file is about doing them in as few API requests and as little context as possible: a review's cost is the number of requests times the context each one re-reads, so the rules below are shaped as mechanisms (what to run, what to read, what to keep out of the transcript), not exhortations.

Ground rules

  • Canonical repo. upstream remote if present, else origin; pass --repo <owner/name> on every gh call.
  • Shared-repo guard. Solo repo = owner DJRHails and gh api repos/<owner>/<repo>/collaborators --jq length returns 1: act autonomously. Any other repo: summarise what you are about to post/push and wait for an explicit yes before each action that reaches other people (§3 review, §4 push/resolve, §5 summary). As a gantry worker the spawn is the authorization — never block.
  • Gantry sign-off. When $GANTRY_URL is set, end every body you post (review body, each inline comment, each thread reply, the summary) with _[via gantry](<GANTRY_URL>)_ as its last line. It is the loop guard portcullis keys on to drop your own posts when they echo back as webhooks — an unsigned reply re-triggers your own run (touchstone#2290: 11 unsigned replies, 11 phantom re-reviews).
  • Context discipline (these bound cost without touching what you review):
    • One message per batch of independent calls: metadata + diff stat + file list + collaborator count is one message, not five.
    • Read the diff once, from disk. Read files by line range around the hunks (sed -n 'a,bp'), not cat of whole files; a whole-file read only for files under ~300 lines.
    • Every command that can print more than ~150 lines writes to a file (> /tmp/review/<name>.log 2>&1) and you read a tail -40 / rg of it — never the whole output into the transcript.
    • Keep any single tool call under ~4 minutes (timeout 240, or run in the background and poll at ≤4-minute intervals): the 5-minute prompt cache expires across a longer gap and the next request re-writes the entire context at write rates.
    • Narration between calls: one line when a decision needs recording.

Read the full file on GitHub · 296 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. 7d ago Changed · +48 lines 40dd5478d34b
  2. 9d ago First seen · 248 lines · 87 tokens per session scan A f774812f80d2

Subscribe to this mod's changes

pr-review is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed 2d ago), licensed MIT. It adds 87 tokens to every session and 4,091 once invoked, about $0.0003 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-11-21.

Related

pr-review compared with skills from other repositories

pr-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-reviewDJRHails/dotfilesSkill22d agoMITA87Claude Code
source-draftingnicknisi/dotfilesSkill3.0kyesterdayMITA54Claude Code
autopilotjoshukraine/dotfilesSkill4306d agoMITA40Claude Code
autopilot-triagejoshukraine/dotfilesSkill4306d agoMITA44Claude Code
create-prjoshukraine/dotfilesSkill4306d agoMITA25Claude Code
drift-checkjoshukraine/dotfilesSkill4306d agoMITA20Claude Code
merge-prjoshukraine/dotfilesSkill4306d agoMITA23Claude Code