review-pr

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

A workflow for reviewing and fixing an existing GitHub pull request, a proposed code change awaiting approval.

In plain words
What is it for?
Inspecting a pull request's context and changes, finding issues, posting inline review comments, fixing them, running quality checks, pushing updates, and resolving addressed threads.
Why use it?
It combines code review, fixes, automated checks, updates to the remote branch, and discussion-thread cleanup in one process.

Skill for Claude CodeCodex

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 skills/djrhails/dotfiles/review-pr
Any agent
npx skills add DJRHails/dotfiles --skill review-pr
Clone the repo
git clone --depth 1 https://github.com/DJRHails/dotfiles

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/djrhails/dotfiles/review-pr.svg)](https://agentmods.dev/skills/djrhails/dotfiles/review-pr)
Your own site
<a href="https://agentmods.dev/skills/djrhails/dotfiles/review-pr"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/review-pr.svg" alt="Measured on agentmods" 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 3,353 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.00087 $0.03353
Opus 5 $0.00044 $0.01677
Sonnet 5 $0.00017 $0.00671
Haiku 4.5 $0.00009 $0.00335

Measured yesterday against content hash 0f6b994aae8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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/review-pr/SKILL.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 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. /review-pr 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 · 248 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. yesterday Changed · -167 lines · -2 tokens per session 0f6b994aae8e
  2. 4d ago First seen · 415 lines · 89 tokens per session scan A 4aff699b1571

Subscribe to this mod's changes

review-pr is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed yesterday), licensed MIT. It adds 87 tokens to every session and 3,353 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

autopilot-batch

Fan out a batch of autopilot-queued issues to parallel background worktree subagents — each runs /autopilot at the build model from its 'model:' label — with a gating review at Opus 5 or above and never below the build (Opus reviews Sonnet and Opus builds, Fable reviews Fable builds).

joshukraine/dotfiles · 75 tokens

todoist-cli

Manage Todoist tasks, projects, labels, filters, sections, comments, reminders, and workspaces via the td CLI. Use when the user wants to view, create, update, complete, or organize Todoist items, or mentions tasks, inbox, today, upcoming, projects, labels, or filters.

joshukraine/dotfiles · 68 tokens

autopilot

Carry a well-scoped GitHub issue through the full dev loop autonomously, stopping at a per-run tier boundary (PR-ready, or merge+deploy for small reversible changes).

joshukraine/dotfiles · 40 tokens

qa-handoff

Generate a hands-on QA testing guide as a self-contained HTML page — for Rails apps or static (Hugo) sites. --publish uploads the HTML to the project's configured QA host.

joshukraine/dotfiles · 41 tokens

qa-triage-batch

Fan out /qa-triage across a queue of qa-labeled reports in parallel, reconcile them across reports to cluster shared root causes, present one consolidated decision gate, and — on approval — create the resulting tech issues.

joshukraine/dotfiles · 52 tokens

walkthrough

Generate a hands-on browser walkthrough of a PR's user-facing changes to exercise before review; --publish posts the final version to the PR for QA.

joshukraine/dotfiles · 33 tokens