github-pr-review
Skill3 starsChanged 4 months agoMITView on GitHub
Review a GitHub pull request diff with a structured checklist — correctness, security, scope creep — and produce ready-to-post comments plus a clear approve / request-changes call. Use when the user says "review this PR", "check this diff", "should I merge this", "is this PR safe", or pastes a PR link/diff. Don't use for creating your own branch/commit/PR — use git-ship-flow.
- Reads credentials
19 other projects use a version of this.
Adopted by
Most recently taken up by
- Bruno-Cunha-Souza/ValarMindSkillstheir own version, first seen Nov 8, 2026
- myths-labs/musetheir own version, first seen Nov 6, 2026
- amirbena/code-review-skilltheir own version, first seen Nov 5, 2026
- y-miyazaki/configtheir own version, first seen Nov 1, 2026
- runxhq/runxtheir own version, first seen Oct 13, 2026
- gianpaj/skillstheir own version, first seen Oct 11, 2026
Used with
Projects with it also use git-commit, code-review and 2 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.
MicrosoftSkillgit-commit
Stage user-selected paths, confirm the exact staged set, and create one local Conventional Commit, or generate a commit message for staged changes without committing. Use when you want a guarded commit or a ready-to-paste message.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 3 projects that use this
SentrySkillskill-creator
Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- google/adk-recipes★ 11ksame name
- google/adk-samples★ 11ksame name
- OpenHands/extensions★ 167same name
- runxhq/runx★ 97same name
- myths-labs/muse★ 38same name
- ricoberger/dotfiles★ 19same name
- amirbena/code-review-skill★ 8same name
- Bruno-Cunha-Souza/ValarMindSkills★ 5same name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- 17-sss/agent-skills★ 2same name
9 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 repository74 other files it gives its agents.
- agent-eval-harnessSkill
- context-budget-managerSkill
- incident-rollbackSkill
- memory-hygieneSkill
- model-cost-optimizerSkill
- prompt-debuggerSkill
- skill-author-coachSkill
- third-party-skill-vetterSkill
- api-endpoint-testerSkill
- bug-triage-protocolSkill
- changelog-release-notesSkill
- docs-readme-writerSkill
- env-secrets-hygieneSkill
- git-ship-flowSkill
- lovable-brief-writerSkill
- supabase-migration-writerSkill
- vercel-deploy-checkSkill
- cold-outreach-sequencerSkill
- competitor-pricing-scanSkill
- contract-redline-scanSkill
- customer-support-inboxSkill
- invoice-runnerSkill
- kpi-dashboard-weeklySkill
- lead-research-dossierSkill
- payment-reconciliationSkill
- pipeline-trackerSkill
- proposal-builderSkill
- stripe-payment-linkSkill
- testimonial-harvesterSkill
- weekly-revenue-reportSkill
- brand-voice-guardianSkill
- case-study-builderSkill
- content-repurposerSkill
- deep-research-briefSkill
- email-nurture-sequenceSkill
- landing-page-copywriterSkill
- linkedin-content-packSkill
- newsletter-assemblerSkill
- seo-blog-writerSkill
- social-listening-reportSkill
- x-thread-builderSkill
- youtube-script-writerSkill
- budget-guardrailsSkill
- ceo-operating-doctrineSkill
- delegation-protocolSkill
- editor-personaSkill
- heartbeat-standupSkill
- hiring-briefSkill
- ops-agent-personaSkill
- researcher-personaSkill
- sales-agent-personaSkill
- support-agent-personaSkill
- weekly-retroSkill
- writer-personaSkill
- calendar-conciergeSkill
- decision-journalSkill
- email-triageSkill
- file-organizerSkill
- habit-trackerSkill
- inbox-zero-sprintSkill
- The first 60 shown.
The file
Files
GitHub PR Review
Turns "looks fine I guess 🤷" into a real review. Reads the actual diff, runs a fixed checklist (correctness → security → scope), drafts comments the author can act on, and ends with an explicit verdict. A review that doesn't say approve or request-changes isn't finished.
When to Use
- User shares a PR URL, PR number, or a pasted diff and wants it reviewed.
- User asks "is this safe to merge?" — including PRs written by AI agents.
- User wants help writing review comments that are firm but kind.
- User received a review verdict on their own PR and wants help interpreting or responding to it.
- A quick pre-merge sanity pass on their own PR before asking a human teammate to look.
- Not for: making your own commits or opening a PR — use
git-ship-flow. Not for debugging a bug the PR claims to fix — usebug-triage-protocol.
Quick Reference
| Action | Command / Call |
| Fetch PR overview | gh pr view <number> --json title,body,files,additions,deletions |
| Get the full diff | gh pr diff <number> (no gh: curl -s https://patch-diff.githubusercontent.com/raw/<owner>/<repo>/pull/<n>.diff) |
| Check CI status | gh pr checks <number> |
| Grep diff for secrets | gh pr diff <number> | grep -nEi "(api[_-]?key|secret|password|token)\s*[:=]" |
| Post a comment | gh pr comment <number> --body "..." |
| Approve | gh pr review <number> --approve --body "..." |
| Request changes | gh pr review <number> --request-changes --body "..." |
Procedure
- Precheck —
command -v gh && gh auth status. Ifghis missing/unauthed, ask for the diff pasted or use the raw.diffURL; you can still review, just not post. - Context first — read the PR title/body and file list. Write one sentence: "This PR claims to X by touching Y." If you can't write that sentence, ask the author what the PR is for — that's finding #1.
- Correctness pass — read the diff hunk by hunk. Check: does the code do what the description says; edge cases (empty input, null/undefined, zero, error paths); anything removed that something else might still use; tests updated or a stated reason why not; CI green (
gh pr checks). - Security pass — grep the diff for secrets (table above); check new endpoints/queries for missing auth checks, user input reaching SQL/HTML/shell unescaped, new dependencies (are they needed? real packages?), loosened permissions or RLS/policy changes,
.envor config files in the diff. - Scope pass — flag changes unrelated to the stated goal: drive-by refactors, formatting churn burying real changes, "while I was here" features. Scope creep is a request-changes offense on its own when it hides risk.
- Draft comments — one comment per finding, formatted
file:line — [blocking|suggestion|question] — what + why + concrete fix. Blocking = correctness or security. Suggestion = better way, author's call. Question = you need info before verdict. - Verdict — apply the criteria strictly: Request changes if any blocking finding, any unrotated secret, or you can't tell what the PR does. Approve if zero blocking findings and CI is green (suggestions alone don't block). Comment-only if questions remain that change the verdict.
- Confirm before posting — show the user the full review (comments + verdict). Post to GitHub only on explicit yes; posting a review is a visible action on someone's work.
Output Template
## PR Review: #<n> — <title>
Claim: <one-sentence what/how>
CI: pass | fail | none
Diff size: +<add>/−<del> across <n> files (>400 lines changed → note "large PR, consider splitting")
### Findings
1. [BLOCKING] src/api/user.ts:42 — deletes without auth check — any logged-out call can… — fix: guard with session check
2. [SUGGESTION] …
3. [QUESTION] …
### Verdict: APPROVE ✅ | REQUEST CHANGES ❌
Because: <the one or two findings that decided it>Pitfalls
- Reviewing the description instead of the diff — the body says "adds validation" but the diff doesn't. Recovery: every claim in the PR body gets located in the diff; unlocatable claims become QUESTION comments.
- Secret found in the diff — recovery: request changes immediately and tell the author the key must be rotated, not just removed — it's already in the branch history. Point them to
env-secrets-hygiene. - Huge PR, review fatigue — 1,500-line diffs get rubber-stamped after file 3. Recovery: review the riskiest files first (auth, payments, data writes), then honestly say "reviewed X of Y files closely" and ask for a split rather than fake-approving.
- Nitpick storm, no verdict — 12 style comments and no decision helps nobody. Recovery: max ~3 suggestions unless blocking; always end with an explicit approve/request-changes and the reason.
- AI-generated code that "looks right" — plausible code with invented APIs or packages. Recovery: spot-check that imported packages exist (
npm view <pkg> version) and called methods are real before approving.
Verification
- Read the actual diff, not just the PR description
- All three passes ran (correctness, security, scope) with at least a "clear" note each
- Secret-pattern grep ran on the diff
- Every comment names file + line and a concrete fix
- Review ends in an explicit verdict with the deciding reason
- Nothing posted to GitHub without the user's explicit confirmation
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.

