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.
npx skills add ao92265/claude-code-playbook --skill pr-reviewgit clone --depth 1 https://github.com/ao92265/claude-code-playbookWrote 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/skills/ao92265/claude-code-playbook/pr-review)<a href="https://agentmods.dev/skills/ao92265/claude-code-playbook/pr-review"><img src="https://agentmods.dev/badge/skills/ao92265/claude-code-playbook/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.
<a href="https://agentmods.dev/skills/ao92265/claude-code-playbook/pr-review"><img src="https://agentmods.dev/badge/skills/ao92265/claude-code-playbook/pr-review.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.00124 | $0.02106 |
| Opus 5.5 | $0.00050 | $0.00842 |
| Sonnet 5.5 | $0.00025 | $0.00421 |
| Haiku 4.5 | $0.00012 | $0.00211 |
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 1mo 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 — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/pr-review — review a GitHub PR and post inline comments
A terminal review that lands on the pull request, not in a scroll buffer. The review lane is Claude; the posting mechanics live in a deterministic script so the JSON payload is never hand-built.
Non-negotiable guardrails
event: "COMMENT"always. NeverAPPROVE, neverREQUEST_CHANGES. Approval is a human decision (core-rules: no self-approval).- Never dismiss, resolve, or reply to an existing review thread.
- Repos the user does not own always get a confirmation before posting, even
when
--postwas passed. Owned =<your-gh-user>. Everything else —<your-org>,<your-org>,<your-org>, any other org — is somebody else's PR. - Never invent a line number. Every inline anchor must exist in the diff. The script enforces this; do not work around it.
- Attribution: the PR author's name comes from
gh, never from memory.
Step 1 — Resolve the PR
Parse $ARGUMENTS. The first token is the PR ref if it looks like one:
| Form | Example |
|---|---|
| bare number | 10178 (uses the repo in cwd) |
| slug + number | <your-org>/<repo>#10178 |
| URL | https://github.com/<your-org>/<repo>/pull/10178 |
| omitted | the open PR for the current branch |
Remaining words are focus hints (security, error handling, tests…). Flags
--dry-run and --post are consumed here, not passed to the reviewers.
If the ref is omitted and cwd has no PR, list candidates and ask which:
gh search prs --review-requested=@me --state=open --limit 10 \
--json repository,number,title \
--jq '.[] | "\(.repository.nameWithOwner)#\(.number)\t\(.title)"'
Then pull metadata:
gh pr view <N> --repo <slug> \
--json number,title,author,headRefName,baseRefName,url,body,files,additions,deletions
Step 2 — Fetch the diff
gh pr diff <N> --repo <slug> > "$SCRATCH/pr.diff"
Check the size first (wc -l). Rough guide:
- under ~1500 lines — hand the whole diff to both reviewers.
- over that — split by file into two roughly equal batches and give each reviewer the batch plus the full file list, so neither claims coverage it does not have. Say in the summary that the diff was split.
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.
- 1mo ago Changed 66883832bdf5
- 2mo ago First seen · 199 lines · 124 tokens per session scan A 4063f90cd6fe
pr-review is a skill published in the GitHub repository ao92265/claude-code-playbook (13 stars, last pushed 19d ago), licensed MIT. It adds 124 tokens to every session and 2,106 once invoked, about $0.0005 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-10-06.
pr-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pr-reviewao92265/claude-code-playbook | Skill | 13 | 19d ago | MIT | A | 124 | Claude Code |
| discount-reviewpromptfoo/promptfoo | Skill | 28k | today | MIT | A | 18 | Claude Code, Codex |
| code-reviewpromptfoo/promptfoo | Skill | 28k | today | MIT | A | 11 | Claude Code |
| deep-reviewAnastasiyaW/codex-claude-code-config | Skill | 218 | today | MIT | A | 180 | Claude Code |
| anti-sloproedyrustam/vibes-plug | Skill | 132 | 2d ago | MIT | A | 41 | Cursor |
| living-codebase-ast-graphroedyrustam/vibes-plug | Skill | 132 | 2d ago | MIT | A | 34 | Cursor |
| attestsimota/agent-skills | Skill | 107 | today | MIT | A | 46 | Claude Code, Codex |