pr-review
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Review a GitHub PR or local branch inside a worktree — hard-rule validation, then a kimi -p review loop producing caveman-review findings. PR mode posts ONE review under the authenticated user's identity; local mode returns findings. Triggers: \"review this PR\", \"review <repo>#<n>\", \"PR review\", \"review branch <name>\".
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 repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 12-factor-appSkill
- caveman-commitSkill
- caveman-reviewSkill
- cavemanSkill
- conventional-commitsSkill
- creating-pull-requestsSkill
- deep-researchSkill
- dispatching-parallel-agentsSkill
- domain-modelingSkill
- finishing-a-development-branchSkill
- forge-cleanupSkill
- forge-docsSkill
- forge-eu-accessibilitySkill
- forge-flowSkill
- forge-initSkill
- forge-seoSkill
- forge-setupSkill
- forgeSkill
- forge-tailwindcss-conventionsSkill
- frontend-designSkill
- git-issue-trackerSkill
- grillingSkill
- kiss-principleSkill
- loopsSkill
- planning-and-task-breakdownSkill
- prototypeSkill
- pr-resolveSkill
- resolving-merge-conflictsSkill
- ste100Skill
- subagent-driven-developmentSkill
- use-git-identitySkill
- using-git-worktreesSkill
- verification-before-completionSkill
- wayfinderSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 178 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 53
Does not approve or request-changes — --comment reviews only.
- Very specific: line 54
Does not fix findings — that is pr-resolve.
- Very specific: line 55
Does not replace CI — validate.sh is hard rules, not a build.
“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
pr-review — worktree-isolated PR review
Two phases: validate (deterministic hard rules) then review (a kimi -p loop producing caveman-review findings). Everything inside a worktree — main checkout never touched. Framework- and language-agnostic.
Leading word: validate-then-review. Hard rules first (no LLM), then the loop.
Two modes, picked by the first arg to scripts/review-loop.sh:
- PR mode (target =
owner/repo#n) — full pipeline: validate → review → post → handoff. The remote PR is the source of truth;pr-resolvereads it. - local mode (target = branch or slug) — review only. Findings land in a scratch file for the calling orchestrator's fix loop.
Steps
- WORKTREE —
using-git-worktreesStep 0. If already isolated on PR head, stay. Otherwise read PR head metadata (gh pr view <n> --json headRefName,headRefOid) and create.worktrees/pr-<n>-review/on a branch tracking PR head. - VALIDATE —
scripts/validate.sh <diff-file>where<diff-file>comes fromgh pr diff <n>. Hard rules only: secret patterns, diff sanity. EveryFAIL:becomes a 🔴 finding. - REVIEW —
scripts/review-loop.sh <pr-ref> <worktree> [max_iter]. Rendersscripts/templates/review-loop.mdvia../loops/scripts/cavemanize.sh, drives../loops/scripts/run_loop.sh. Reviewer loadscaveman-review; writes findings to${TMPDIR:-/tmp}/pr-review-<n>.md— scratch, never committed. - POST — submit ONE review with inline comments:
- Get head SHA:
HEAD_SHA=$(gh pr view <n> --json headRefOid --jq '.headRefOid') - Submit review with inline comments via
gh api repos/{owner}/{repo}/pulls/<n>/reviews --method POST(passes inline comments in JSONcomments[]array:{path, line, side: "RIGHT", body}for each finding). The top-level review body holds the summary; inline comments appear as line-anchored annotations in the GitHub UI Files tab. - Author identity from
gh api user -q .login(weselben on this host) — never bot, never agent self-branding. - Fallback when
gh pr reviewdoesn't accept inline payload: post top-levelgh pr review <n> --comment --body-file <scratch-file>plus agh api repos/{owner}/{repo}/pulls/<n>/commentsper finding for inline visibility. - Group findings by file. Delete scratch file after.
- Get head SHA:
- HANDOFF — report: review URL, counts by severity, next step (
pr-resolvefor 🔴/🟡). Runusing-git-worktreescleanup on the review worktree.
Done when: review URL returned (with inline comments visible in the PR Files tab), scratch file deleted, worktree removed.
Scripts — scripts/
| Script | Role |
scripts/validate.sh <diff-file> | Hard-rule pass: secret patterns, diff sanity on added lines only. Prints PASS:/FAIL:; exit 0 always. |
scripts/review-loop.sh <target> <worktree> [max_iter] | Renders templates/review-loop.md via ../loops/scripts/cavemanize.sh, drives ../loops/scripts/run_loop.sh. |
scripts/templates/review-loop.md | The kimi -p "" payload: MANDATORY FIRST skill loads, no-plan-mode, mode-aware diff reading, DONE:/BLOCKED: contract. |
Hard rules
- Reviews run inside a worktree. Reviewer subagent that never entered one is a process violation.
- Reviewer never modifies code. Findings only; fixes are
pr-resolve's job. - ONE review per run. All findings in a single
gh pr review --commentbody. - Posted review is the source of truth. Findings never committed; scratch lives outside tree.
kimi -pmachinery (cavemanize, run_loop, status contract) lives inloops— load it.- Comment format lives in
caveman-review— load it. - Public GitHub text — everything posted — goes through
ste100.
Boundaries
- Does not approve or request-changes —
--commentreviews only; verdict is the user's. - Does not fix findings — that is
pr-resolve. - Does not replace CI —
validate.shis hard rules, not a build.
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.

