pr-review
Skill4 starsChanged 4 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>\".
117 other projects use a version of this.
Adopted by
Most recently taken up by
- Significant-Gravitas/AutoGPTtheir own version, first seen Nov 18, 2026
- mindroom-ai/mindroomtheir own version, first seen Oct 6, 2026
- bman654/clodextheir own version, first seen Oct 5, 2026
- leochiu-a/git-pr-aitheir own version, first seen Oct 5, 2026
- agentic-community/mcp-gateway-registrytheir own version, first seen Oct 4, 2026
- MithunWijayasiri/dotclaudetheir own version, first seen Oct 4, 2026
Used with
Projects with it also use pr-fix, oss-pr 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.
volovelySkillpr-fix
This skill should be used when the user asks to "fix PR comments", "address PR feedback", "resolve PR comments", provides a GitHub PR URL with intent to fix, or says "pr-fix". It reads all review comments on a PR, decides which need code fixes vs. replies, makes the fixes, and posts replies — all with explicit user approval before any GitHub action.
Also in 5 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
EffortlessMetricsSkillpr-create
Also in 7 projects that use this
dversozaSkillpr-feedback
Address PR review feedback including inline threads, general comments, bot-generated reviews, PR description findings, check run annotations (inline lint/type/security findings shown in the Files changed tab), code scanning alerts, and CI failures. Use when asked to handle, address, resolve, respond to, or work through PR review comments, review feedback, inline findings, or CI check failures. Triggers on requests like "address PR comments", "handle review feedback", "resolve PR reviews", "fix review comments", "go through PR feedback", "check CI failures", "fix the inline findings on the PR".
Also in 3 projects that use this
Microsoft AzureSkillcreate-release
Use when creating a new ASO release, including pre-checks, release notes generation, draft GitHub release creation, documentation updates, and ROADMAP changes.
Also in 3 projects that use this
- +2 more from CES-Ltd
Other versions117 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 117
- Significant-Gravitas/AutoGPT★ 188ksame name
- rtk-ai/rtk★ 82ksame name
- NVIDIA/Megatron-LM★ 18ksame name
- MiniMax-AI/skills★ 14ksame name
- microsoft/vscode-docs★ 6.7ksame name
- agentjido/jido★ 1.9ksame name
- microsoft/winappCli★ 1.3ksame name
- lee-to/ai-factory★ 1.1ksame name
- agentic-community/mcp-gateway-registry★ 956same name
- aeonfun/aeon★ 766same name
107 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 104 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 104 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.

