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 DJRHails/dotfiles --skill pr-reviewgit clone --depth 1 https://github.com/DJRHails/dotfilesWrote 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/djrhails/dotfiles/pr-review)<a href="https://agentmods.dev/skills/djrhails/dotfiles/pr-review"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/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/djrhails/dotfiles/pr-review"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/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.00087 | $0.04091 |
| Opus 5.5 | $0.00035 | $0.01636 |
| Sonnet 5.5 | $0.00017 | $0.00818 |
| Haiku 4.5 | $0.00009 | $0.00409 |
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 7d 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 — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Review and Fix PR
$ARGUMENTS is the PR number (e.g. /pr-review 42). Without one, ask which PR.
Every finding must be verified before it is posted (a code path you read or ran), and P1/P2 findings are fixed on the PR branch. Those two properties are the product. Everything else in this file is about doing them in as few API requests and as little context as possible: a review's cost is the number of requests times the context each one re-reads, so the rules below are shaped as mechanisms (what to run, what to read, what to keep out of the transcript), not exhortations.
Ground rules
- Canonical repo.
upstreamremote if present, elseorigin; pass--repo <owner/name>on everyghcall. - Shared-repo guard. Solo repo = owner
DJRHailsandgh api repos/<owner>/<repo>/collaborators --jq lengthreturns 1: act autonomously. Any other repo: summarise what you are about to post/push and wait for an explicit yes before each action that reaches other people (§3 review, §4 push/resolve, §5 summary). As a gantry worker the spawn is the authorization — never block. - Gantry sign-off. When
$GANTRY_URLis set, end every body you post (review body, each inline comment, each thread reply, the summary) with_[via gantry](<GANTRY_URL>)_as its last line. It is the loop guard portcullis keys on to drop your own posts when they echo back as webhooks — an unsigned reply re-triggers your own run (touchstone#2290: 11 unsigned replies, 11 phantom re-reviews). - Context discipline (these bound cost without touching what you review):
- One message per batch of independent calls: metadata + diff stat + file list + collaborator count is one message, not five.
- Read the diff once, from disk. Read files by line range around the
hunks (
sed -n 'a,bp'), notcatof whole files; a whole-file read only for files under ~300 lines. - Every command that can print more than ~150 lines writes to a file
(
> /tmp/review/<name>.log 2>&1) and you read atail -40/rgof it — never the whole output into the transcript. - Keep any single tool call under ~4 minutes (
timeout 240, or run in the background and poll at ≤4-minute intervals): the 5-minute prompt cache expires across a longer gap and the next request re-writes the entire context at write rates. - Narration between calls: one line when a decision needs recording.
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.
- 7d ago Changed · +48 lines 40dd5478d34b
- 9d ago First seen · 248 lines · 87 tokens per session scan A f774812f80d2
pr-review is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed 2d ago), licensed MIT. It adds 87 tokens to every session and 4,091 once invoked, about $0.0003 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-11-21.
pr-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pr-reviewDJRHails/dotfiles | Skill | 2 | 2d ago | MIT | A | 87 | Claude Code |
| source-draftingnicknisi/dotfiles | Skill | 3.0k | yesterday | MIT | A | 54 | Claude Code |
| autopilotjoshukraine/dotfiles | Skill | 430 | 6d ago | MIT | A | 40 | Claude Code |
| autopilot-triagejoshukraine/dotfiles | Skill | 430 | 6d ago | MIT | A | 44 | Claude Code |
| create-prjoshukraine/dotfiles | Skill | 430 | 6d ago | MIT | A | 25 | Claude Code |
| drift-checkjoshukraine/dotfiles | Skill | 430 | 6d ago | MIT | A | 20 | Claude Code |
| merge-prjoshukraine/dotfiles | Skill | 430 | 6d ago | MIT | A | 23 | Claude Code |