pr-review
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Deep PR review with inline GitHub comments that fact-checks itself: every draft finding is checked by an independent validator before it is posted, and findings that don't hold up are dropped. Covers bugs, gaps and optimizations, each with proof and a concrete fix. Use when asked to "review PR", "analyze PR", "comment on PR", "pr review", "review this pull request", or for a draft/dry-run review.
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 repository2 other files it gives its agents.
- pr-comment-validationSkill
- pr-validationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 13 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 104 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
No vague observations — every finding must be backed by evidence.
- Distinctive: line 36
If a PR number or URL was provided, use that instead.
- Distinctive: line 50
Do NOT start reviewing line-by-line yet.
- Distinctive: line 89
Look for patterns that should be consistent.
- Distinctive: line 114
Check for methods defined but not wired, classes defined but not used
- Distinctive: line 121
Look for real bugs, not style nits:
- Distinctive: line 147
Write every finding as a draft first.
- Very specific: line 149
Keep drafts in a JSON file (default pr-review-drafts.json in the repo root, or the path the user gave).
- Distinctive: line 159
Do not use emojis. Every comment body MUST include ALL of these sections:
- Distinctive: line 185
Place each comment on the most relevant line — the line where the fix should go
- Very specific: line 226
Wait for every validator to return before writing anything.
- Distinctive: line 236
Draft mode: if the user asked for a draft, dry run, or "don't post", stop here and show the kept comments.
- Distinctive: line 256
Use a HEREDOC for the body to handle multi-line markdown with code blocks
- Distinctive: line 261
After posting (or drafting), give the user a summary:
- Distinctive: line 293
If you find more than 15 issues, draft only the top 15 by this priority:
“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
Deep PR Review with Inline GitHub Comments
You are performing a research-grade PR review. Every comment you post must include solid theory, proof from the codebase, external research, and a concrete recommendation. No vague observations — every finding must be backed by evidence.
When to Use
- User asks to review a PR (by number, URL, or current branch)
- User says "review", "analyze", "gap analysis", "find issues" about a PR
- User wants inline comments posted on a GitHub PR
- User wants a draft review they can read before anything is posted ("draft", "dry run", "don't post")
Phase 0: Identify the PR
- Detect the current branch:
git branch --show-current - Find the PR for this branch:
gh pr view --json number,baseRefName,url,title,body,headRefName - If a PR number or URL was provided, use that instead.
- Get the base branch from the PR metadata. Fetch it:
git fetch origin <base> --quiet - Get the HEAD commit SHA (needed for posting inline comments):
git rev-parse HEAD
Phase 1: Understand the Diff Holistically
Do NOT start reviewing line-by-line yet. First, build a mental model.
- Diff stats — what files changed and how much:
git diff origin/<base> --stat - Commit history — understand the narrative arc of the PR:
git log origin/<base>..HEAD --oneline - Full diff — read it all:
git diff origin/<base> - PR description — what did the author say this does:
gh pr view --json body -q .body
Phase 2: Read Every Changed File IN FULL
This is critical. Do not review only diff hunks — read the complete file for every changed file. You need surrounding context to spot:
- Patterns the new code should follow but doesn't
- Existing utilities/helpers that should have been reused
- Naming conventions that were violated
- Architectural patterns that were broken
For each new/modified file, use the Read tool on the full file path.
Phase 3: Read Adjacent Code for Context
For each significant new file, find and read:
- Sibling implementations — if the PR adds
DdsActionClient, readDdsServiceClient. Look for patterns that should be consistent.Use Grep to find similar classes/functions in the codebase. - Interfaces/base classes — read the interface the new code implements. Understand what methods exist and which the new code uses vs. ignores.
- Callers — who calls the new code? Read those files to understand usage patterns.
- Type registries / config files — if the new code registers types or adds config, check the registry/config for consistency.
Phase 4: Multi-Dimensional Analysis
Apply ALL of these lenses to every significant file in the diff. Not just the first one that finds something — apply all of them.
4a. Gap Analysis
Compare against the canonical/reference implementation:
- Protocol compliance — does this implement the protocol correctly? Research the actual protocol spec (ROS2 REP, HTTP RFC, gRPC spec, etc.)
- API contract — does the new code fulfill the interface contract fully? Check for methods defined but not wired, classes defined but not used
- Feature parity — compare against equivalent implementations in other languages (e.g., rclpy vs this Kotlin implementation)
- Missing error paths — what happens on timeout, disconnection, invalid input?
4b. Issue Detection
Look for real bugs, not style nits:
- Race conditions — shared mutable state accessed from multiple threads/coroutines without synchronization. Trace the threading model explicitly.
- Resource leaks — native handles, file descriptors, connections opened but not closed on all paths (success, error, cancellation)
- Silent data corruption — endianness mismatches, encoding assumptions, truncation, integer overflow. Trace data through the full serialize-deserialize pipeline.
- Fragile patterns — code that works today but will break under reasonable future changes. Explain the specific change that would break it.
- Wire compatibility — do type names, topic names, QoS settings match what the counterpart expects? Verify against actual protocol specs.
4c. Optimization Analysis
Focus on meaningful optimizations, not micro-optimizations:
- Unnecessary allocations in hot paths — object creation inside polling loops, repeated byte array copies
- Polling vs event-driven — is the code polling when it could be event-driven? What's the cost on mobile (battery, CPU wake-ups)?
- API ergonomics — is the API harder to use correctly than incorrectly? Could a builder pattern, extension function, or default parameter prevent misuse?
Phase 5: Draft Findings
Write every finding as a draft first. Nothing gets posted yet.
Keep drafts in a JSON file (default pr-review-drafts.json in the repo root, or the path the
user gave). Each entry:
{"id": 1, "path": "src/foo.py", "line": 42, "severity": "HIGH", "category": "ISSUE",
"claim": "One sentence: what is wrong and what breaks.", "body": "<full comment markdown>"}Comment Quality Requirements
Do not use emojis. Every comment body MUST include ALL of these sections:
- Title —
## [CATEGORY] One-line summary- Categories:
GAP ANALYSIS,ISSUE,OPTIMIZATION,RACE CONDITION
- Categories:
- Severity —
**Severity:** HIGH | MEDIUM | LOW — [one-line impact] - The Problem — Show the problematic code, explain what's wrong. Be specific — reference exact line numbers and variable names.
- Theory / Proof — WHY this is a problem. Include:
- Protocol specs, RFC references, language docs
- Behaviour of the underlying runtime/library (with source references)
- Mathematical analysis where relevant (collision probability, complexity)
- Comparison with canonical implementations and official SDKs
- What happens today vs. what will break — Explain why the code works now (if it does) and the specific scenario that breaks it.
- Research — What do other implementations do? Cite specific projects/docs.
- Recommendation — Concrete fix with code example. Not "consider doing X" — show the actual code change.
Comment Targeting
- Place each comment on the most relevant line — the line where the fix should go
- For architectural issues that span multiple files, pick the primary file
- For missing code (gaps), comment on the line closest to where code should be added
linemust exist on the RIGHT (new code) side of the diff
Phase 6: Prove It (Self-Validation)
This is the step that keeps the review honest. The reviewer who wrote a finding is the worst person to judge it, so each draft is checked by a fresh subagent that did not write it.
- Dispatch validators in parallel — one subagent per draft (batch 2-3 small drafts per
agent if there are many), all in a single message. Give each only: the repo path, the
base ref, the draft's
path,line,claim, andbody. Do not pass your reasoning. Validator brief (include verbatim):
You are validating one code review comment written by another reviewer. Check whether its claim is true. Read the full file and the diff, trace the actual execution path, and check callers, types, guards, tests and framework behaviour. Look for anything in the code that already handles the case. If the claim depends on library/framework behaviour, confirm it from the source or official docs. Verdicts:
- VALID: the claim is technically correct and matters for this code.
- PARTIALLY_VALID: there is a real problem, but the comment overstates it or suggests the wrong fix. Say which part holds up.
- INVALID: the claim is factually wrong, does not apply here, or rests on a misunderstanding of the code. You must point to the code that shows this.
- STYLE_PREFERENCE: neither right nor wrong, only taste.
These are NOT reasons for INVALID: the bug also existed before this PR but the PR
touches or relies on that code; the code looks intentional but nothing documents or
tests that intent; the failing path needs a specific but reachable input or timing.
Do not lower the severity unless you found evidence that the impact is smaller.
Return JSON: {"id":
<id>, "verdict": "VALID" | "PARTIALLY_VALID" | "INVALID" | "STYLE_PREFERENCE", "evidence": "<file:line references and what they show>", "corrected_claim": "<only for PARTIALLY_VALID: the part that holds up>"}
- Apply verdicts:
VALID— keep.PARTIALLY_VALID— rewrite the comment aroundcorrected_claim; drop the overstated part.INVALIDorSTYLE_PREFERENCE— drop it.
- Wait for every validator to return before writing anything. Then write the result back
to the drafts file as
{"kept": [...], "dropped": [...]}. Every entry in both lists keeps its draft fields and adds the validator'sverdictandevidence, so the user can see why each comment survived or was cut.
The verdict criteria match the pr-comment-validation skill; include its false-positive
table in the brief so validators recognise common reviewer mistakes. Skip this phase only if the user explicitly asks for an unvalidated review.
Phase 7: Post Inline Comments
Draft mode: if the user asked for a draft, dry run, or "don't post", stop here and show the kept comments. Do not call the GitHub API.
Otherwise post each kept comment:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments \
-f body="$(cat <<'BODY'
## [Comment body here — use the structure above]
BODY
)" \
-f commit_id="{HEAD_SHA}" \
-f path="{file_path_relative_to_repo_root}" \
-F line={line_number} \
-f side="RIGHT"Important:
pathis relative to repo root (e.g.,src/main/kotlin/com/example/Foo.kt)commit_idis the full SHA fromgit rev-parse HEAD- Use a HEREDOC for the body to handle multi-line markdown with code blocks
- Post comments in parallel where possible for speed
Phase 8: Summary
After posting (or drafting), give the user a summary:
## PR Review Summary: N comments posted (M drafts dropped by validation)
### HIGH severity (X)
- [one-line summary per finding]
### MEDIUM severity (Y)
- [one-line summary per finding]
### LOW severity (Z)
- [one-line summary per finding]
### Dropped in validation (M)
- [one-line claim] — [why it did not hold up]Include a link to the PR so the user can see all comments.
Anti-Patterns to Avoid
- DO NOT comment on style, formatting, or naming conventions unless they cause bugs
- DO NOT post vague comments like "consider adding error handling"
- DO NOT flag things that are already handled in the diff (read the full diff first!)
- DO NOT suggest changes that would break existing tests
- DO NOT comment on documentation files unless they contain technical errors
- DO NOT draft more than 15 comments — prioritize by severity
- DO NOT post duplicate findings (same issue in multiple places = one comment on the worst instance)
Prioritization
If you find more than 15 issues, draft only the top 15 by this priority:
- Bugs that will cause crashes or data corruption
- Race conditions and resource leaks
- Wire/protocol incompatibilities
- API contract violations (unused classes, missing implementations)
- Performance issues with measurable impact
- Fragile patterns that will break under specific future changes
- Informational findings with research value
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.

