pr

pr is a command for Claude Code from juanmhidalgo/claude-plugins. It costs 59 tokens per session (3,620 once invoked), scanned A, original, MIT.

A thorough review workflow for a GitHub pull request, which is a proposed code change submitted for review.

In plain words
What is it for?
Use it to review eligible pull requests, inspect project instructions, summarize changes, and run parallel checks for code quality and compliance.
Why use it?
It checks whether the request should be reviewed and examines the changes from several perspectives, reducing the chance of missing defects or project-rule violations.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the NotebookEdit tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the code-review plugin — 6 skills, 14 commands, 14 agents, 1 hook shipped together

Good fit Use it to review eligible pull requests, inspect project instructions, summarize changes, and run parallel checks for code quality and compliance.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add juanmhidalgo/claude-plugins
Claude Code
/plugin install code-review

Made for: Claude Code.

Or install code-review, the plugin that ships this one along with the rest of its 6 skills, 14 commands, 14 agents, 1 hook.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/pr"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,620 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.00059 $0.03620
Opus 5.5 $0.00024 $0.01448
Sonnet 5.5 $0.00012 $0.00724
Haiku 4.5 $0.00006 $0.00362

Measured 20d ago against content hash 0b873f8ee1d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 20d 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.

code-review/commands/pr.md · 332 lines

How it starts

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

Pull Request Code Review

  • Arguments: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/args.sh" '$ARGUMENTS'
  • All arguments: $ARGUMENTS
  • Repository: !git remote get-url origin
  • Current branch: !git branch --show-current

<output_contract priority="blocking">

This command never writes to GitHub. Findings are reported here, in this session. Do not run gh pr comment, gh pr review, or any gh api write — they are not in allowed-tools and are not an oversight. If the user wants findings on the PR, that is a separate, explicit decision they make — the posting-a-pr-review skill covers how, in a later turn, outside this command.

</output_contract>


Arguments

The Arguments line above is the parsed form of what the user typed: one JSON object with pane, spec, effort and positional. Read the fields; do not parse the raw arguments yourself.

  • Target PR: positional[0], a number or a URL. Required: with none, say so and stop.
  • Effort: effort, or null when the user gave none (Step 0 resolves it).
  • Spec: spec, or null to let find-spec.sh search on its own. A path with spaces cannot be passed: tokens split on whitespace.
  • Pane: pane is true, false or null. See Herdr pane.

Herdr pane

The review workflow already keeps the reviewers' output out of this conversation. What the pane adds is what it adds to :branch and :staged: a reviewer that has not seen this conversation, and a session that is not blocked while it runs.

Run this review in a Herdr pane when pane is true, or when pane is null and review_in_pane is configured true (${user_config.review_in_pane}). pane: false always wins: it is what the pane session itself receives. In the pane, run in collect mode: follow ${CLAUDE_PLUGIN_ROOT}/references/herdr-pane.md instead of Steps 1–7. It falls back to the normal run outside Herdr.

  • Command string: /code-review:pr <PR> <effort> [--spec <value>] --no-pane
  • Report: <scratchpad dir>/pr-<PR>.md
  • Present: do not re-verify. The pane ran this effort level's verification in a fresh context, which beats this one. Run the two pre-presentation checks of verification.md (citations, execution claims), present the distilled findings, then one line: follow-ups go to the reviewer in its pane. To re-verify here instead (the code changed meanwhile), pass the report path to /code-review:receive.

Read the full file on GitHub · 332 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. 20d ago Changed · +31 lines 0b873f8ee1d8
  2. 26d ago Changed · -3 lines a56995a92422
  3. 1mo ago Changed · +37 lines bf70e0025017
  4. 1mo ago Changed · +11 lines 3588d3e93468
  5. 1mo ago Changed · +26 lines d8e0f8c7ce67
  6. 2mo ago Changed · -5 lines b78afc293115
  7. 2mo ago Changed · +2 lines 39bd60a41123
  8. 2mo ago Changed · +37 lines · +25 tokens per session 4e7b66602b71
  9. 3mo ago First seen · 196 lines · 34 tokens per session scan A 45f1c8bb400c

Subscribe to this mod's changes

pr is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 18d ago), licensed MIT. It adds 59 tokens to every session and 3,620 once invoked, about $0.0002 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-08-31.

Related

pr compared with commands from other repositories

pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prjuanmhidalgo/claude-pluginsCommand818d agoMITA59Claude Code
explainfirst-fluke/oh-my-agentCommand1.5ktodayMITA51Claude Code
reviewfirst-fluke/oh-my-agentCommand1.5ktodayMITA32Claude Code
releaseavelikiy/great_ctoCommand11714d agoMITA47Claude Code
createrube-de/cc-skillsCommand11todayMITA14Claude Code
developrube-de/cc-skillsCommand11todayMITA11Claude Code
cc-councilTheLobbi/claudeCommand221mo agoMITA45Claude Code