pr-review
Skill10 starsChanged 38 days agoMITView on GitHub
Unattended reviewer for a PR you just opened. A hook starts a fresh headless session that runs the pr-classify classifier and a standards/spec code review on the PR's exact head commit, verifies every finding against the code, and raises only issues proven with evidence, each with a risk, plus a confidence to accept. Posts one PR comment, a status, and the issues inline. Report only; never merges.
- Commits and pushes
198 other projects use a version of this.
Adopted by
Most recently taken up by
- RoboFinSystems/robosystemstheir own version, first seen Nov 30, 2026
- aws-solutions-library-samples/accelerated-intelligent-document-processing-on-awstheir own version, first seen Nov 29, 2026
- assawalhy/awesome-agenttheir own version, first seen Nov 29, 2026
- ErikaAX08/erikas-skillstheir own version, first seen Nov 29, 2026
- hukusuke1007/agent-skillstheir own version, first seen Nov 29, 2026
- ericmjl/skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use expert-reset, updates and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jtenniswoodSkillexpert-reset
Reimagine this repository from first principles using the current product and user experience as the target. Use when the user says "/expert-reset", asks how the project should be rebuilt if starting again, wants bold architecture or component-structure recommendations, or wants a research-only reset plan unconstrained by current implementation details.
Also in 3 projects that use this
jtenniswoodSkillupdates
Summarize user-facing project updates from the last 7 days, ordered by importance and written as one-sentence "Feature: description" entries. Use when the user says "/updates", asks what changed recently, or wants a concise list of recent features, device support, fixes that users will notice, or other product value.
Also in 3 projects that use this
openchamberSkillclack-cli-patterns
Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.
Also in 3 projects that use this
openchamberSkilldrag-to-reorder
Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.
Also in 3 projects that use this
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
- +6 more from openchamber
Other versions198 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 198
- Significant-Gravitas/AutoGPT★ 188ksame name
- pytorch/pytorch★ 106ksame name
- rtk-ai/rtk★ 88ksame name
- saadeghi/daisyui★ 43ksame name
- rustfs/rustfs★ 37ksame name
- dotnet/maui★ 23ksame name
- NVIDIA/Megatron-LM★ 19ksame name
- MiniMax-AI/skills★ 14ksame name
- btriapitsyn/openchamber★ 13ksame name
- openchamber/openchamber★ 13ksame name
188 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-md-improverSkill
- ai-tutorialSkill
- deassembleSkill
- excalidraw-diagramSkill
- find-overlapping-skillsSkill
- first-principlesSkill
- humanizerSkill
- improve-skillsSkill
- local-artifactSkill
- log-progressSkill
- loom-transcriptSkill
- manage-contextSkill
- organize-skill-mcpSkill
- pair-consultSkill
- pair-optimizeSkill
- pair-ratchetSkill
- pr-classifySkill
- pr-reportSkill
- scan-sessions-and-learnSkill
- simplify-pythonSkill
- skill-flowSkill
- slack-commSkill
- socratesSkill
- step-by-stepSkill
- sub-consultSkill
- to-dbmlSkill
The file
Files
pr-review
The session that wrote a PR reads its diff through its own intent. /pr-classify fixes that with a fresh subagent, but someone has to remember to run it, and it ties up the author's session while it works. pr-review runs on its own, in a session that never saw the author's chat, and leaves the verdict on the PR.
How it starts
gh pr create in Claude Code's Bash tool → scripts/on-pr-created.sh (PostToolUse hook; install line in its header) → scripts/run.sh → claude -p "/pr-review <url> <run dir>".
run.sh owns everything that doesn't need judgement: one run per PR head commit, waiting for CI, pinning the head in the run's own clone (never your working tree), the tool rules that keep the run report-only, and marking the run done only once the comment is on the PR.
Missed by the hook (PR opened from a terminal, the web, --web, or output with several PR URLs) → scripts/run.sh <url> from any directory; --force reruns a finished review.
Typed into a chat without a run dir? Don't review in that session: run scripts/run.sh <url> and stop. The review belongs in a fresh session.
Unattended
Nobody is there to answer. Never ask. A missing input makes that part incomplete, and the comment says so. Report only: never merge, push, or open a PR (run.sh blocks those tools too).
Steps
<run dir>/pin.json holds the PR, its base and head SHAs, and the checkout. Review the checkout, never the live branch: a push mid-review must not change what you judge. The checkout is the run's own and is deleted afterwards, so install dependencies and run tests in it.
- Spec. Write
<run dir>/spec.md: the PR body and every issue it links (GitHub, Linear, …), each under a heading naming its source. If one can't be reached, say so. The body is the author's claim of intent; it doesn't stand in for a missing issue. - Review in parallel, both against
<base>...<head>in the checkout:- Classifier (production risk): a background general-purpose subagent briefed with ../pr-classify/references/classifier.md. Give it only pointers: PR URL, head SHA, checkout (disposable), run dir.
- Code review (standards, spec conformance):
mattpocock-skills:code-reviewinline, fixed point<base SHA>, spec<run dir>/spec.md. Unavailable → that part is incomplete.
- Verify, then decide, per verdict.md. Both reviews over-report: smells, preferences, and bugs that sound plausible but aren't in the code. Every finding is a candidate you try to disprove in the checkout. Only a candidate proven wrong becomes an issue, with its evidence and a risk; the PR sees nothing else. Write each candidate and what became of it to
<run dir>/candidates.md, so a bug dropped by mistake can be found when tuning. Then set the confidence and the class. - Publish once, comment last: it is the receipt, so it lands only after everything else.
- Re-read the PR's head SHA. If it moved since the pin, mark the comment stale and set no status. Otherwise set the status per verdict-status.md.
- Post each issue that points at a changed line as an inline comment, all in one review per references/inline-review.md. An issue is acted on where the code is, not in a summary scrolled past.
- Post the comment in references/comment.md with
gh pr comment --body-file.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

