pr_review

pr_review is a command for Claude Code from fotoetienne/gru. It costs 9 tokens per session (616 once invoked), scanned A, original, Apache-2.0.

A command for reviewing a GitHub pull request, which is a proposed set of code changes awaiting review.

In plain words
What is it for?
Checking pull-request logic, error handling, security, performance, edge cases, and test coverage.
Why use it?
It gathers the request’s description, changed files, existing comments, and related issue so reviewers can judge whether the changes are correct and complete.

Command for Claude Code

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 commands/fotoetienne/gru/pr_review
Clone the repo
git clone --depth 1 https://github.com/fotoetienne/gru

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/fotoetienne/gru/pr_review.svg)](https://agentmods.dev/commands/fotoetienne/gru/pr_review)
Your own site
<a href="https://agentmods.dev/commands/fotoetienne/gru/pr_review"><img src="https://agentmods.dev/badge/commands/fotoetienne/gru/pr_review.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 616 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.00009 $0.00616
Opus 5 $0.00005 $0.00308
Sonnet 5 $0.00002 $0.00123
Haiku 4.5 $0.00001 $0.00062

Measured 5d ago against content hash 0bd2fad4fad8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

.claude/commands/pr_review.md · 51 lines

How it starts

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

Review a GitHub pull request: fetch details, analyze changes, and provide feedback.

Pull Request: $ARGUMENTS

Workflow:

1. Fetch PR Details

  • Use gh pr view $ARGUMENTS --json headRefName to get the branch name
  • Use gh pr view $ARGUMENTS to get the PR title, body, and metadata
  • Use gh pr view $ARGUMENTS --json files to get a quick overview of changed files
  • Fetch existing review comments: gh api repos/{owner}/{repo}/pulls/{pr#}/comments
  • Understand the scope and intent of the PR, and any prior discussion
  • The code should already be checked out in the current directory
  • If this PR is addressing an Issue, read Issue details to understand the problem and context. Does this PR address the issue completely? Are there any missing details or assumptions?
  • You don't need to run tests - CI will handle that.

2. Analyze the Changes

  • Review each file changed in the diff
  • For complex changes, use Read to examine full file context around the changes
  • Check CLAUDE.md for project-specific conventions and patterns
  • Consider:
    • Code correctness and logic
    • Error handling
    • Edge cases
    • Security implications
    • Performance considerations
    • Test coverage

3. Provide Feedback

  • List any issues found (bugs, security concerns, style problems)
  • Suggest improvements if applicable
  • Give an overall assessment (approve, request changes, or needs discussion)

4. Submit Review

  • BEFORE submitting: Check if this is your own PR:
    • Use gh pr view $ARGUMENTS --json author --jq '.author.login' to get the PR author
    • Use gh api user --jq '.login' to get your GitHub username
    • If they match, you CANNOT use --approve or --request-changes (GitHub will reject it)
  • Use gh pr review $ARGUMENTS with:
    • --comment -b "review content" for general feedback (use this for your own PRs)
    • --approve -b "review content" if explicitly approving AND it's not your own PR
    • --request-changes -b "review content" if changes are required AND it's not your own PR
  • Use a HEREDOC for multi-line review content to preserve formatting
  • IMPORTANT: ALWAYS verify the gh command succeeded by checking its output. If it returns empty or fails, inform the user of the issue

Read the full file on GitHub · 51 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. 5d ago First seen · 51 lines · 9 tokens per session scan A 0bd2fad4fad8

Subscribe to this mod's changes

pr_review is a command published in the GitHub repository fotoetienne/gru (11 stars, last pushed 28d ago), licensed Apache-2.0. It adds 9 tokens to every session and 616 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.