pr-reviewer
Skill2 starsChanged 3 months agoApache-2.0View on GitHub
Conducts interactive, high-signal code reviews on external GitHub Pull Requests by inspecting diffs in an isolated temporary clone, launching a local review dashboard with GitHub suggestion block editing, and submitting atomic batched reviews with hybrid out-of-diff routing.
15 other projects use a version of this.
Adopted by
Most recently taken up by
- wtsi-hgi/agentskillstheir own version, first seen Oct 4, 2026
- k3ybladewielder/skillstheir own version, first seen Sep 20, 2026
- bmaltais/skillstheir own version, first seen Sep 6, 2026
- codebygarv/Ai-skillstheir own version, first seen Aug 16, 2026
- idavidov13/agentic-playwrighttheir own version, first seen Aug 13, 2026
- jpantsjoha/ai-native-developer-experiencetheir own version, first seen Aug 7, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- idavidov13/agentic-playwright★ 222same name
- proflead/codex-skills-library★ 153same name
- glincker/claude-code-marketplace★ 37same name
- codebygarv/Ai-skills★ 26same name
- jpantsjoha/ai-native-developer-experience★ 12same name
- gvre/skills★ 7same name
- k3ybladewielder/skills★ 4same name
- bang9/claude-code-settings★ 2same name
- mattstruble/skills★ 2same name
- ArcQian-bit/codex-real-engineer-skills★ 1same name
5 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 repository30 other files it gives its agents.
- agy-debuggerSkill
- analyze-github-prSkill
- api-reviewSkill
- branch-cleanupSkill
- code-documentationSkill
- code-mergeSkill
- code-reviewSkill
- cognitive-complexitySkill
- commit-changesSkill
- cost-optimizationSkill
- dart-cli-app-best-practicesSkill
- dart-concurrencySkill
- dart-modern-featuresSkill
- flutter-architectureSkill
- flutter-concurrencySkill
- flutter-testingSkill
- gh-cliSkill
- github-collab-searchSkill
- git-stackSkill
- nochangeSkill
- planSkill
- pr-feedback-handlerSkill
- proposal-writerSkill
- pr-reviewer-recommendationSkill
- sem-semantic-infoSkill
- ship-itSkill
- skill-creatorSkill
- unix-cli-best-practicesSkill
- write-pr-descriptionSkill
- write-proseSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 3 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Follow these steps sequentially when tasked with reviewing a pull request:
- Very specific: line 27
If no PR is specified, attempt gh pr view --json number,url in the active workspace.
- Very specific: line 29
If the user did not specify --mode deep or --mode fast, use ask_question to prompt:
- Very specific: line 38
Run review_engine.py to fetch PR title, author, base/head branches, and head commit SHA:
- Very specific: line 43
If the target PR belongs to a different repository or branch, create a dedicated temporary directory (/tmp/pr-review-XXXXXX).
- Very specific: line 44
If a local clone of the repository exists on disk, pass --reference <path-to-local-repo> to accelerate cloning:
- Distinctive: line 63
Verify that all comments are actionable and free of "looks good" filler.
- Very specific: line 67
Write candidate findings to <conversation-scratch-dir>/raw_findings.json.
- Very specific: line 68
Run diff_parser.py to validate diff hunks and tag findings:
- Distinctive: line 92
Stop calling tools and go idle.
- Very specific: line 94
If the task exited with status 0 (saved), proceed to Step 5.
- Very specific: line 95
If the task exited with status 1 (aborted), clean up the temporary workspace and stop without contacting GitHub.
- Very specific: line 102
Run apply_review.py to submit all approved decisions atomically via GitHub API:
“Common” is measured: kept by at least 6 in 10 of the 15 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 Reviewer Skill
[!CAUTION] READ-ONLY WORKSPACE & USER APPROVAL ENFORCEMENT
- You MUST NOT modify repository code in the primary workspace.
- When reviewing external pull requests, perform all checkout and diff operations in an ephemeral temporary directory (
/tmp/pr-review-XXXXXX).- You MUST launch the review dashboard and wait for the user to submit or abort before any reviews or comments are posted to GitHub.
- Never promise future work or unverified assumptions in review comments.
This skill automates the workflow for reviewing external GitHub Pull Requests (reviewing someone else's code), giving the human reviewer complete interactive control via a local web dashboard before posting feedback to GitHub.
Workflow
Follow these steps sequentially when tasked with reviewing a pull request:
Step 1: Ingestion & Analysis Depth Selection
- Identify the PR:
- Determine target PR from user prompt (URL, PR number, or head branch).
- If no PR is specified, attempt
gh pr view --json number,urlin the active workspace.
- Select Analysis Depth:
- If the user did not specify
--mode deepor--mode fast, useask_questionto prompt:- Deep Review (Recommended): Multi-perspective analysis covering correctness, security, API soundness, maintainability, and tests with a self-critique pass.
- Fast Review: Rapid single-pass scan directly on the diff for quick turnaround.
- If the user did not specify
Step 2: Ephemeral Workspace Setup & Diff Hunk Mapping
- Resolve PR Metadata:
Run
review_engine.pyto fetch PR title, author, base/head branches, and head commit SHA:python3 scripts/review_engine.py --pr <pr-number-or-url> --output-meta <conversation-scratch-dir>/pr_meta.json - Isolate Review Workspace:
- If the target PR belongs to a different repository or branch, create a dedicated temporary directory (
/tmp/pr-review-XXXXXX). - If a local clone of the repository exists on disk, pass
--reference <path-to-local-repo>to accelerate cloning:git clone --reference <path-to-local-repo> https://github.com/<owner>/<repo>.git "$pr_review_dir" cd "$pr_review_dir" && gh pr checkout <pr-number>
- If the target PR belongs to a different repository or branch, create a dedicated temporary directory (
- Map Diff Hunks:
- Extract the unified diff:
git diff -U0 origin/<base_ref>...HEAD > <conversation-scratch-dir>/pr.diff. - Parse valid diff hunks using
diff_parser.py:python3 scripts/diff_parser.py --diff <conversation-scratch-dir>/pr.diff
- Extract the unified diff:
Step 3: Review Analysis & Hunk Tagging
- Analyze Changes against Review Guidelines:
- Review code modifications following review_guidelines.md.
- Inspect related context files in the checkout (imported files, interface definitions, test files).
- Verify that all comments are actionable and free of "looks good" filler.
- Draft Concrete Code Suggestions:
- For proposed line replacements, formulate GitHub suggestion blocks following suggestion_syntax.md.
- Structure & Tag Findings:
- Write candidate findings to
<conversation-scratch-dir>/raw_findings.json. - Run
diff_parser.pyto validate diff hunks and tag findings:python3 scripts/diff_parser.py \ --diff <conversation-scratch-dir>/pr.diff \ --findings <conversation-scratch-dir>/raw_findings.json \ --repo-dir "$pr_review_dir" \ --output <conversation-scratch-dir>/review_findings.json - Any comments on lines inside diff hunks are marked
is_diff_hunk: true. - Any comments on unchanged lines outside diff hunks are marked
is_diff_hunk: false.
- Write candidate findings to
Step 4: Launch Interactive Review Dashboard
- Start Dashboard Server as a Background Task:
Launch
launch_dashboard.pypointing to the conversation scratch directory:
Setpython3 scripts/launch_dashboard.py \ --findings-file <conversation-scratch-dir>/review_findings.json \ --output-file <conversation-scratch-dir>/review_decisions.jsonWaitMsBeforeAsyncto1000so the server runs in the background. - Wait for Completion: Stop calling tools and go idle. The launcher will open the review UI in the user's browser and block until they click "Submit Review to GitHub" or "Abort Review".
- Verify Exit Status:
- If the task exited with status
0(saved), proceed to Step 5. - If the task exited with status
1(aborted), clean up the temporary workspace and stop without contacting GitHub.
- If the task exited with status
Step 5: Batch Review Submission & Workspace Cleanup
- Submit Batched Review:
Run
apply_review.pyto submit all approved decisions atomically via GitHub API:python3 scripts/apply_review.py \ --decisions-file <conversation-scratch-dir>/review_decisions.json- Inline comments (
is_diff_hunk: true) are posted directly on their respective lines. - Broader context comments (
is_diff_hunk: false) are appended under### Broader Context & Non-Diff Observationsin the top-level review body.
- Inline comments (
- Clean Up Workspace:
Safely remove the temporary checkout directory:
python3 scripts/review_engine.py --cleanup "$pr_review_dir" - Report to User: Provide the user with a summary card containing the review verdict, approved comments count, and the URL to the submitted GitHub review.
Bundled Resources
- review_guidelines.md: Rules for actionable, non-defensive code review feedback.
- suggestion_syntax.md: GitHub markdown suggestion fence syntax and line range rules.
scripts/diff_parser.py: Unified diff parser and diff hunk line validator.scripts/review_engine.py: PR metadata resolver, ephemeral workspace manager, and diff extractor.scripts/launch_dashboard.py: Local HTTP server for the interactive review dashboard.assets/review_dashboard.html: Interactive dark-themed single-page review dashboard.scripts/apply_review.py: Submits batched review payloads to GitHub Reviews API with hybrid comment routing.
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.

