pr-review
Skill28 starsChanged 36 days agoMITView on GitHub
Review a GitHub pull request the way a human reviewer would, entirely inline, and post the review through the GitHub review API as ONE review object, a summary plus line-anchored comments that highlight the code to fix and carry suggestion blocks where a concrete replacement is obvious. Trigger whenever the user asks to review a PR ("review the PR", "review #123", "look over this pull request", "review the branch/changes" when the branch has an open PR). A plain review ask stops at the findings: it never waits on or reports CI, never resolves threads, and never delegates to a subagent or another agent. When the ask says to fix the findings (`/code-review --fix`, "review and fix"), the fixes are applied too.
195 other projects use a version of this.
Adopted by
Most recently taken up by
- static-web-server/static-web-servertheir own version, first seen Nov 9, 2026
- zerx-lab/FluxDowntheir own version, first seen Nov 9, 2026
- civitai/civitaitheir own version, first seen Nov 9, 2026
- harshitsinghbhandari/domain-expansiontheir own version, first seen Nov 8, 2026
- Azure/azure-sdk-toolstheir own version, first seen Nov 8, 2026
- databricks/clitheir own version, first seen Nov 8, 2026
Used with
Projects with it also use oss-pr, pr-automation 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.
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
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
- +6 more from openchamber
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- Significant-Gravitas/AutoGPT★ 188ksame name
- pytorch/pytorch★ 105ksame name
- rtk-ai/rtk★ 86ksame name
- saadeghi/daisyui★ 43ksame name
- rustfs/rustfs★ 36ksame name
- dotnet/maui★ 23ksame name
- NVIDIA/Megatron-LM★ 18ksame name
- MiniMax-AI/skills★ 14ksame name
- btriapitsyn/openchamber★ 13ksame name
- openchamber/openchamber★ 13ksame name
185 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 repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- gallery/AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- webjsSkill
- use-railwaySkill
- webjs-blog-writeSkill
- webjs-doc-syncSkill
- webjs-file-issueSkill
- webjs-instagram-postSkill
- webjs-list-todosSkill
- webjs-ready-for-devSkill
- webjs-research-recordSkill
- webjs-scaffold-syncSkill
- webjs-start-workSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 178 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
No CI: Never wait on, read, or report CI or check status.
- Distinctive: line 67
If nothing resolves, ask the user which PR they mean rather than guessing.
- Distinctive: line 72
All over REST (in repos that budget GraphQL, these cost nothing there):
- Very specific: line 149
Every line must be part of the PR diff (a changed line or nearby hunk context), or the API rejects the whole review.
“Common” is measured: kept by at least 6 in 10 of the 178 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review a pull request (inline, posted via the GitHub API)
Review a PR like a human reviewer who happens to use the GitHub API instead of the dashboard. Same output a person would produce on github.com: one submitted review carrying a summary and inline comments anchored to the exact lines, with GitHub suggestion blocks where the fix is concrete enough to spell out.
This skill is agent-agnostic on purpose. Everything below is plain gh
CLI (or raw REST with any HTTP client and a token), no harness-specific
tools, so it works the same from any agent or harness that can run shell
commands.
The contract (read first, all four are hard rules)
- Inline. The agent that received the ask performs the review itself, in the same session. Never spawn a reviewer subagent, a fleet, or a background task for it, and never run a multi-round review cycle. One read over the whole diff, one posted review, done.
- Findings are the deliverable, unless a fix was asked for. A
plain review ask stops at the posted findings: no commits, no
pushes, no code edits, no resolving of threads. An ask that says to
fix them (
/code-review --fix,--fix --comment, "review and fix", "apply the findings") is a fix ask: apply the findings to the working tree, and when comments were asked for too, do both rather than commenting instead of fixing. Nothing in this skill overrides a fix the user asked for. - No CI. Never wait on, read, or report CI or check status. Checks are the merge gate's business, not the reviewer's, and a review that stalls on a pending check has failed its one job of being fast feedback on the code.
- Read-only on git. Reviewing needs no checkout. Do not run any
git command that changes branch, HEAD, the index, or the working
tree (
checkout,switch,reset,restore,stash,merge,rebase,clean). Read-only inspection (git log,git show,git diff,git status,git blame) is fine.
Steps
1. Resolve the PR
An explicit #N wins. Otherwise resolve the current branch's open PR
over REST (owner/repo from the git remote):
BRANCH=$(git branch --show-current)
gh api "repos/<owner>/<repo>/pulls?head=<owner>:$BRANCH&state=open" \
--jq '.[0].number'If nothing resolves, ask the user which PR they mean rather than guessing.
2. Fetch what a reviewer reads
All over REST (in repos that budget GraphQL, these cost nothing there):
gh api repos/<owner>/<repo>/pulls/<N> \
--jq '.title, .body, .head.sha, .head.repo.full_name, .user.login'
gh api repos/<owner>/<repo>/pulls/<N> -H "Accept: application/vnd.github.diff"Then read every touched file in its PR-head state, not just the hunks, so each edit is judged in context. Read locally if the branch happens to be checked out, else through the contents API:
gh api "repos/<head-repo>/contents/<path>?ref=<head-sha>" --jq .content | base64 -dAddress the HEAD repo at the HEAD sha, not the base repo at a branch
name. A fork PR's branch does not exist in the base repo, so a
branch-name ref there 404s, and a sha pins every read to the exact
commit the review is posted against. Both values come from the first
call (.head.repo.full_name, .head.sha); on a same-repo PR the head
repo IS <owner>/<repo>, so one form covers both cases.
Capture head.sha from the first call for commit_id too.
3. Review the whole diff, yourself
Judge the change against what it claims to do (title + body) and the
project's own stated rules (root AGENTS.md, CONVENTIONS.md,
per-package variants, when present). Correctness first: wrong behavior,
broken edge cases, a test that cannot observe the defect it claims to
cover, security problems, a doc stating something the code does not do.
Problems, not style nits, and no checklist narrowing: read the diff and
report whatever is actually wrong. A finding states the problem the way
a reviewer flags it, not the fix baked in as if already applied.
4. Compose ONE review object
The summary plus every inline comment go in a single review, which is what makes GitHub render them as a grouped unit with the "reviewed these changes" trail. Shape:
{
"commit_id": "<head-sha>",
"event": "COMMENT",
"body": "<summary: the overall take, findings that could not be line-anchored, or a short note that it is clean>",
"comments": [
{ "path": "src/x.js", "line": 42, "side": "RIGHT",
"body": "<the problem on this line>" },
{ "path": "src/y.js", "start_line": 10, "start_side": "RIGHT",
"line": 14, "side": "RIGHT",
"body": "<a multi-line finding, highlighting the whole range>" }
]
}- Highlight a range with
start_line+line(bothside: RIGHTfor added code,LEFTfor deleted). A single-line comment omitsstart_line. Suggest the fix where a concrete, self-contained replacement exists, using a GitHub suggestion block in the comment body. The block replaces EXACTLY the commented line range, so it must contain the full replacement for those lines, correctly indented:
This drops id 0 too. Strict-compare against null instead: ```suggestion if (id !== null) { ```The user can then apply it with one click. Suggest only on lines the diff adds or keeps (
side: RIGHT), never on pure deletions, and skip the suggestion when the real fix is bigger than the commented range; state the problem and sketch the fix in prose instead.- Every
linemust be part of the PR diff (a changed line or nearby hunk context), or the API rejects the whole review. A finding on an untouched line goes path-level into the summary body. - Build the JSON with a real serializer (
jq -n, python), never by interpolating into a shell string, which mangles quotes and code spans.
Verdict. event: "COMMENT" on a PR you (the account posting)
authored, since GitHub forbids APPROVE / REQUEST_CHANGES on your
own PR, and that is the common case when the agent reviews the account
owner's work. On someone else's PR, pick the honest verdict:
APPROVE, COMMENT, or REQUEST_CHANGES.
Voice. First person, plain, the way a person reviews code. Terse inline findings, a summary that may go broad (what the change does well, the one thing that matters). No AI or agent framing, no process narration, no machinery tells (test counts, check status).
5. Post it and report back
gh api -X POST repos/<owner>/<repo>/pulls/<N>/reviews --input review.jsonA clean review still posts: a short summary saying it is clean, with no inline comments. Then tell the user the outcome in one or two sentences, with the review's URL and the finding count. Stop there: no thread resolution, no follow-up issues, no re-review unless they ask again. Stop before fixing too, unless the ask was to fix (see rule 2), in which case apply the findings now.
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.

