Borrowing it
Nothing to install: this file belongs to Osiris-DevWorks/smart-citizen. 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/Osiris-DevWorks/smart-citizen/main/.claude/commands/review_pr.mdgit clone --depth 1 https://github.com/Osiris-DevWorks/smart-citizenWrote 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/osiris-devworks/smart-citizen/review_pr)<a href="https://agentmods.dev/commands/osiris-devworks/smart-citizen/review_pr"><img src="https://agentmods.dev/badge/commands/osiris-devworks/smart-citizen/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/osiris-devworks/smart-citizen/review_pr"><img src="https://agentmods.dev/badge/commands/osiris-devworks/smart-citizen/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.00019 | $0.01816 |
| Opus 5.5 | $0.00008 | $0.00726 |
| Sonnet 5.5 | $0.00004 | $0.00363 |
| Haiku 4.5 | $0.00002 | $0.00182 |
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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/review_pr
Drive a structured review of one PR with human-in-the-loop checkpoints. Adapted from the team's review_all.md pattern but scoped to a single PR and tailored to Smart Citizen's layer ordering and standards.
Work through every step in order. After each step, stop at the CHECKPOINT and wait for the user before continuing.
Argument
$ARGUMENTS — required, one of:
- A PR number (e.g.
48) - A PR URL (e.g.
https://github.com/Osiris-DevWorks/smart-citizen/pull/48) - The literal token
current— resolve the PR for the current branch
If missing or malformed, abort with: /review_pr requires a PR number, URL, or current.
1. Gather PR context
Resolve the PR number, then fetch in parallel:
gh pr view <N> --json title,body,state,baseRefName,headRefName,author,changedFiles,files,statusCheckRollup,url,isDraft,labelsgh pr diff <N>— full unified diff (cache this; you'll slice per-file from it later)gh api repos/Osiris-DevWorks/smart-citizen/pulls/<N>/comments— code-review commentsgh api repos/Osiris-DevWorks/smart-citizen/issues/<N>/comments— general PR conversation- If the title or body references a GitHub issue (
#NNorcloses #NN), fetch it:gh issue view <NN> --json title,body,labels,statefor context.
Compute the GitHub diff-anchor MD5 for each changed file path upfront so you can link to file diffs in the walkthrough below. Use Python: hashlib.md5(path.encode()).hexdigest(). The anchor URL pattern is:
https://github.com/Osiris-DevWorks/smart-citizen/pull/<N>/files#diff-<md5>
2. Summarize the PR
Present a concise summary:
- What — scope in plain language.
- Why — linked GitHub issue summary if present; otherwise note "no linked issue."
- Base / head — target branch and source branch. Flag if base is not the active
release/X.Y.Z— per rootCLAUDE.md→ Version & Release → Branching model, PRs target the active integration branch, notmain. - CI status — pass / fail / pending (from
statusCheckRollup). - Existing comments — short summary of any prior review comments or conversation.
- Files changed (N) — list each file with a one-line description of what it does.
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.
- 2mo ago First seen · 129 lines · 19 tokens per session scan A a060d23a2b56
review_pr is a command published in the GitHub repository Osiris-DevWorks/smart-citizen (114 stars, last pushed today), licensed Apache-2.0. It adds 19 tokens to every session and 1,816 once invoked, about $0.0001 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-30.
Other commands, from other repositories
speckit.spex.submit
Push and create PR for team review, with optional watch mode for CI monitoring.
git
The pre-finish status: branch, hygiene findings, message checks, workflow lint, template state.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
factory
Linha de montagem multi-agente (Software Factory) — spec-writer → builder em worktree isolado → 4 revisores paralelos (Security, Code, UI, UX) → approver com gate de risco e dashboard visual.
repo-audit
Audit a codebase (local or remote GitHub/GitLab) against architecture principles and requirements, surfacing drift, risk, and missing decisions.
release-tag
Create and push a version tag after a release PR has been merged.