Borrowing it
Nothing to install: this file belongs to bredmond1019/claude-sdk-rs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/bredmond1019/claude-sdk-rs/main/.claude/commands/review-PR.mdgit clone --depth 1 https://github.com/bredmond1019/claude-sdk-rsWrote 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.
[](https://agentmods.dev/commands/bredmond1019/claude-sdk-rs/review-pr)<a href="https://agentmods.dev/commands/bredmond1019/claude-sdk-rs/review-pr"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/review-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.
<a href="https://agentmods.dev/commands/bredmond1019/claude-sdk-rs/review-pr"><img src="https://agentmods.dev/badge/commands/bredmond1019/claude-sdk-rs/review-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02177 |
| Opus 5.5 | $0.00000 | $0.00871 |
| Sonnet 5.5 | $0.00000 | $0.00435 |
| Haiku 4.5 | $0.00000 | $0.00218 |
Grade A, and why
review-PR scanned grade A with 1 finding 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 11d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
base = subprocess.run( How it starts
The opening of the file, as written. The whole thing — 223 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Review PR — Spec-aware review for a branch-train PR.
Checks out the PR branch, runs the project's gating suite + emoji gate, reviews the
diff against the block's Acceptance Criteria, and posts a verdict via gh pr review.
Designed for PRs produced by a roadmap orchestration run in default (PR) mode. Can also review any PR for a spec-based block by pointing at the spec manually.
Variables
$ARGUMENTS — <PR#> [plan-slug]
<PR#>— required. The GitHub PR number (integer).[plan-slug]— optional. The plan slug (e.g.roadmap-and-task-updates) to scope state lookup when multipleblock-orchestration-state.jsonfiles exist.
Examples:
/review-PR 42
/review-PR 42 roadmap-and-task-updates
Instructions
Step 0 — Parse arguments
Extract PR# (required integer) and optional plan-slug. If PR# is absent or not
an integer, stop and print:
Usage: /review-PR <PR#> [plan-slug]
PR# GitHub PR number (required)
plan-slug plan slug to scope state lookup (optional; omit when there is only one plan)
Examples:
/review-PR 42
/review-PR 42 my-plan
Step 1 — Fetch PR metadata
gh pr view <PR#> --json number,title,headRefName,baseRefName,state,url,reviews
Capture:
headRefName— the PR's source branch (the block branch).baseRefName— the branch the PR targets.state— ifMERGEDorCLOSED, stop and report: "PR # is already ."reviews— existing reviews (context only; do not let prior reviews override this run's findings).
Step 2 — Locate the orchestration state
Search for the state file:
find planning -name "block-orchestration-state.json" 2>/dev/null
If plan-slug was given, filter to planning/<plan-slug>/sdlc/block-orchestration-state.json.
If multiple files remain after filtering, pick the one whose blocks map contains an
entry with branch == headRefName. If still ambiguous, list the candidates and ask the
user to re-run with a plan-slug.
Read the selected state file (parse as JSON). Find the block entry where
blocks[slug].branch == headRefName. Extract blockSlug (the map key). Derive
specFile = planning/<blockSlug>/tasks.md.
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.
- 11d ago First seen · 223 lines · 0 tokens per session scan A 3e0d653cdfa7
review-PR is a command published in the GitHub repository bredmond1019/claude-sdk-rs (23 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,177 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.
review-PR compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| review-PRbredmond1019/claude-sdk-rs | Command | 23 | 1mo ago | Apache-2.0 | A | 0 | Claude Code |
| speckit.spex.submitrhuss/cc-spex | Command | 122 | 3d ago | Apache-2.0 | A | 15 | Claude Code |
| merge-conflict-analysisrjmurillo/ai-agents | Command | 49 | yesterday | MIT | A | 0 | GitHub Copilot |
| gitazrtydxb/procoder | Command | 211 | 11d ago | Apache-2.0 | A | 20 | Claude Code |
| factoryfelvieira/claude-skills-fv | Command | 28 | 2d ago | Apache-2.0 | A | 47 | Claude Code |
| repo-audittractorjuice/arc-kit | Command | 2.3k | 2d ago | none | A | 29 | Claude Code |
| advanced-code-review-contextaxiomantic/spellbook | Command | 11 | 2d ago | MIT | A | 19 | Claude Code |