pr-review

pr-review is a command for Claude Code from RchGrav/claudebox. It costs 7 tokens per session (510 once invoked), scanned A, original, MIT.

A structured pull-request review workflow. A pull request is a proposed code change submitted for review before it is merged into a project.

In plain words
What is it for?
Reviewing GitHub pull requests, investigating failed checks, and reporting missing logic, tests, documentation, or important automation.
Why use it?
It helps reviewers inspect the full change, existing checks, surrounding files, security, performance, tests, and documentation in one process.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Reviewing GitHub pull requests, investigating failed checks, and reporting missing logic, tests, documentation, or important automation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rchgrav/claudebox/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.

Clone the repo
git clone --depth 1 https://github.com/RchGrav/claudebox

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/commands/rchgrav/claudebox/pr-review/github.svg)](https://agentmods.dev/commands/rchgrav/claudebox/pr-review)
Your own site
<a href="https://agentmods.dev/commands/rchgrav/claudebox/pr-review"><img src="https://agentmods.dev/badge/commands/rchgrav/claudebox/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/commands/rchgrav/claudebox/pr-review"><img src="https://agentmods.dev/badge/commands/rchgrav/claudebox/pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 510 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.00007 $0.00510
Opus 5 $0.00003 $0.00255
Sonnet 5 $0.00001 $0.00102
Haiku 4.5 $0.00001 $0.00051

Measured 9d ago against content hash 6021fa11c4b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 9d 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.

commands/pr-review.md · 46 lines

What it actually says

You are helping review a pull request. Please provide a thorough, structured review.

PR to review: $ARGUMENTS

Review process:

  1. Fetch the PR details using GitHub CLI
  2. Check existing review comments and status checks
  3. If checks are failing, examine failure details and suggest fixes
  4. Analyze what CI/CD checks are configured and warn if important checks appear to be missing
  5. Analyze the code changes in the diff
  6. Read modified files to understand context beyond the diff
  7. Identify missing changes that should have been made:
    • Missing Logic: Related code that should be updated but wasn't
    • Missing Documentation: Code comments explaining "why" (especially for non-obvious decisions), README updates, API docs that need updating
    • Missing Tests: Test cases that should exist for the new functionality
  8. Provide structured feedback covering:
    • Code Quality: Logic, readability, maintainability
    • Security: Potential vulnerabilities or security concerns
    • Performance: Efficiency and optimization opportunities
    • Testing: Test coverage and quality
    • Documentation: Code comments (focus on "why" explanations for critical logic), documentation updates
    • Architecture: Design decisions and patterns
    • Dependencies: New dependencies and their appropriateness
    • CI/CD Coverage: Missing checks that should be configured for this type of change
    • Completeness: What's missing that should have been included

For each area, provide:

  • ✅ What looks good
  • ⚠️ Areas for improvement
  • 🔴 Critical issues (if any)

End with an overall recommendation: APPROVE, REQUEST CHANGES, or COMMENT.

If no PR number/URL is provided: Find the PR for the current branch. If on main branch, list open PRs and ask which one to review.

Use these GitHub CLI commands:

  • gh pr view - Get PR details, reviews, and status checks
  • gh pr diff - Get code changes
  • gh pr checks - Get detailed check status and failure logs
  • gh run view - Get workflow run details if checks are failing
  • Check .github/workflows/ to understand what CI/CD checks are configured
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. 9d ago First seen · 46 lines · 7 tokens per session scan A 6021fa11c4b3

Subscribe to this mod's changes

pr-review is a command published in the GitHub repository RchGrav/claudebox (1,144 stars, last pushed 1y ago), licensed MIT. It adds 7 tokens to every session and 510 once invoked, about $0.0000 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-30.