github-pr-review
Skill35 starsChanged 8 months agoMITView on GitHub
Handles PR review comments and feedback resolution. Use when user wants to resolve PR comments, handle review feedback, fix review comments, address PR review, check review status, respond to reviewer, or verify PR readiness. Fetches comments via GitHub CLI, classifies by severity, applies fixes with user confirmation, commits with proper format, replies to threads.
- Commits and pushes
8 other projects use a version of this.
Adopted by
Most recently taken up by
- google/adk-recipestheir own version, first seen Sep 28, 2026
- 17-sss/agent-skillstheir own version, first seen Sep 22, 2026
- amirbena/code-review-skilltheir own version, first seen Sep 17, 2026
- ricoberger/dotfilestheir own version, first seen Sep 8, 2026
- mjun0812/skillstheir own version, first seen Aug 25, 2026
- rossoctl/agent-skillstheir own version, first seen Aug 11, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- google/adk-recipes★ 10ksame name
- ricoberger/dotfiles★ 19same name
- amirbena/code-review-skill★ 8same name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- 17-sss/agent-skills★ 2same name
- mjun0812/skills★ 1same name
- rossoctl/agent-skills★ 1same name
- truongtv22/theone-training-skills★ 1same name
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 repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- agent-protocolSkill
- context-health-checkSkill
- layered-contextSkill
- muse-commandsSkill
- semantic-searchSkill
- strategic-compactSkill
- using-superpowersSkill
- verification-before-completionSkill
- growth-distributionSkill
- api-design-principlesSkill
- architect-agentSkill
- brainstormingSkill
- build-error-resolverSkill
- changelog-generatorSkill
- code-documentationSkill
- code-refactoringSkill
- code-reviewer-agentSkill
- coding-standardsSkill
- context7-mcpSkill
- coordinator-modeSkill
- creating-skillsSkill
- deep-diveSkill
- dispatching-parallel-agentsSkill
- doc-coauthoringSkill
- doc-updaterSkill
- e2e-runnerSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- git-commitSkill
- github-pr-creationSkill
- github-pr-mergeSkill
- git-security-guardSkill
- iterative-retrievalSkill
- markitdownSkill
- planner-agentSkill
- ralph-wiggumSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- sciomcSkill
- security-reviewSkill
- skill-creatorSkill
- skills-updaterSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- theme-factorySkill
- traceSkill
- ui-ux-pro-maxSkill
- using-git-worktreesSkill
- webapp-testingSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 13 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
13
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
- could be automatic: a setting could enforce it
- Distinctive: line 37
Before processing comments, verify:
- Very specific: line 39
Project conventions: Read .claude/CLAUDE.md, .kiro/steering/, or similar
- Distinctive: line 40
Commit format: Check git log --oneline -5 for project style
- Distinctive: line 85
Use git-commit skill format for review fixes:
- Distinctive: line 119
No emojis. Keep it minimal and professional.
- Distinctive: line 127
All tests must pass before pushing.
- Distinctive: line 137
After addressing all comments, formally submit a review:
- Distinctive: line 173
Before closing/merging PR, verify (or use github-pr-merge skill for automated validation):
- Very specific: line 183
TIP: After resolving all comments, use the github-pr-merge skill to execute the merge with full pre-merge validation.
- Very specific: line 187
Important: Use --input - with JSON for in_reply_to:
- Distinctive: line 199
When bots review every push:
- Distinctive: line 221
ALWAYS: read project conventions (CLAUDE.md, etc.) before starting
- Distinctive: line 223
ALWAYS: verify ALL issues in multi-issue comments are fixed
- Distinctive: line 224
ALWAYS: run tests before pushing
- Distinctive: line 227
NEVER: use emojis in commit messages or thread replies
- Distinctive: line 234
git-commit: - Commit message format and conventions (use for review fix commits)
“Common” is measured: kept by at least 6 in 10 of the 7 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
GitHub PR Review
Resolves Pull Request review comments with severity-based prioritization, fix application, and thread replies.
Quick Start
# 1. Check project-specific instructions
cat .claude/CLAUDE.md 2>/dev/null | head -50 # Review project conventions
# 2. Get PR and repo info
PR=$(gh pr view --json number -q '.number')
REPO=$(gh repo view --json nameWithOwner -q '.nameWithOwner')
# 3. Fetch and list comments by severity
gh api repos/$REPO/pulls/$PR/comments | python3 -c "
import json, sys
comments = [c for c in json.load(sys.stdin) if not c.get('in_reply_to_id')]
def sev(b): return 'CRITICAL' if 'critical' in b.lower() else 'HIGH' if 'high' in b.lower() else 'MEDIUM' if 'medium' in b.lower() else 'LOW'
for s in ['CRITICAL','HIGH','MEDIUM','LOW']:
cs = [c for c in comments if sev(c['body'])==s]
if cs: print(f'{s} ({len(cs)}): ' + ', '.join(f\"#{c['id]}\" for c in cs))
"
# 4. For each comment: read -> analyze -> fix -> verify -> commit -> reply
# 5. Run tests: make test (or project-specific command)
# 6. Push when all fixes verifiedPre-Review Checklist
Before processing comments, verify:
- Project conventions: Read
.claude/CLAUDE.md,.kiro/steering/, or similar - Commit format: Check
git log --oneline -5for project style - Test command: Identify test runner (
make test,pytest,npm test) - Branch status:
git statusto ensure clean working tree
Core Workflow
1. Fetch PR Comments
PR=$(gh pr view --json number -q '.number')
REPO=$(gh repo view --json nameWithOwner -q '.nameWithOwner')
gh api repos/$REPO/pulls/$PR/comments > /tmp/pr_comments.json2. Classify by Severity
Process in order: CRITICAL > HIGH > MEDIUM > LOW
| Severity | Indicators | Action |
| CRITICAL | critical.svg, "security", "vulnerability" | Must fix |
| HIGH | high-priority.svg, "High Severity" | Should fix |
| MEDIUM | medium-priority.svg, "Medium Severity" | Recommended |
| LOW | low-priority.svg, "style", "nit" | Optional |
3. Process Each Comment
For each comment:
a. Show context
Comment #123456789 (HIGH) - app/auth.py:45
"The validation logic should use constant-time comparison..."b. Read affected code and propose fix
c. Confirm with user before applying
d. Apply fix if approved
e. Verify fix addresses ALL issues in the comment
4. Commit Changes
Use git-commit skill format for review fixes:
git add <files>
git commit -m "fix(scope): address review comment #ID
Brief explanation of what was wrong and how it's fixed.
Addresses review comment #123456789."Review fix commit rules (see git-commit skill for full details):
- First line:
type(scope): subject(max 50 chars) - Types:
fix,refactor,security,test,style,perf - Reference the comment ID in body
- Explain what was wrong and how it's fixed
5. Reply to Thread
COMMIT=$(git rev-parse --short HEAD)
gh api repos/$REPO/pulls/$PR/comments \
--input - <<< '{"body": "Fixed in '"$COMMIT"'. Replaced set lookup with hmac.compare_digest.", "in_reply_to": 123456789}'Standard Reply Templates:
| Situation | Template |
| Fixed | Fixed in [hash]. [brief description of fix] |
| Won't fix | Won't fix: [reason - e.g., out of scope, acceptable risk] |
| By design | By design: [explanation of why current behavior is intentional] |
| Deferred | Deferred to [issue/task number]. Will address in future iteration. |
| Acknowledged | Acknowledged. [brief note, e.g., "acceptable for MVP"] |
No emojis. Keep it minimal and professional.
6. Run Tests
make test # or project-specific commandAll tests must pass before pushing.
7. Push
git push8. Submit Review (Optional)
After addressing all comments, formally submit a review:
# Approve the PR (use after all comments resolved)
gh pr review $PR --approve --body "All review comments addressed. Ready to merge."
# Or request changes if issues remain
gh pr review $PR --request-changes --body "Addressed X comments, Y issues remain."
# Or just comment without approval decision
gh pr review $PR --comment --body "Partial progress: fixed A and B, working on C."When to use each:
--approve: All comments addressed, PR is ready--request-changes: Critical issues remain unresolved--comment: Progress update, no approval decision yet
Batch Commit Strategy
Organize commits by impact when addressing multiple comments:
| Change Type | Strategy |
| Functional (CRITICAL/HIGH) | Separate commit per fix |
| Cosmetic (MEDIUM/LOW) | Single batch commit |
Workflow:
- Fix CRITICAL/HIGH → separate commits each
- Collect all cosmetic fixes
- Apply cosmetics → single
style:commit - Run tests once
- Push all together
Pre-Merge Checklist
Before closing/merging PR, verify (or use github-pr-merge skill for automated validation):
- All CRITICAL and HIGH comments addressed
- All MEDIUM comments addressed or justified skip
- Replies posted to all resolved threads
- Tests passing (
make testor equivalent) - Linting passing (
make lintor equivalent) - CI checks green (
gh pr checks) - No unresolved conversations
TIP: After resolving all comments, use the github-pr-merge skill to execute the merge with full pre-merge validation.
Reply to Threads API
Important: Use --input - with JSON for in_reply_to:
# Correct syntax
gh api repos/$REPO/pulls/$PR/comments \
--input - <<< '{"body": "Fixed in abc123. Brief explanation.", "in_reply_to": 123456789}'Do NOT use: -f in_reply_to=... (doesn't work)
Avoiding Review Loops
When bots review every push:
- Batch fixes: Accumulate all fixes, push once
- Draft PR: Convert to draft during fixes
- Commit keywords: Some bots respect
[skip ci]or[skip review]
Severity Detection
Gemini badges:
critical.svg-> CRITICALhigh-priority.svg-> HIGHmedium-priority.svg-> MEDIUMlow-priority.svg-> LOW
Cursor comments:
<!-- **High Severity** -->-> HIGH<!-- **Medium Severity** -->-> MEDIUM
Fallback keywords: "security", "vulnerability", "injection" -> CRITICAL
Important Rules
- ALWAYS read project conventions (CLAUDE.md, etc.) before starting
- ALWAYS confirm before modifying files
- ALWAYS verify ALL issues in multi-issue comments are fixed
- ALWAYS run tests before pushing
- ALWAYS reply to resolved threads using standard templates
- ALWAYS submit formal review (
gh pr review) after addressing all comments - NEVER use emojis in commit messages or thread replies
- NEVER skip HIGH/CRITICAL comments without explicit user approval
- Functional fixes -> separate commits (one per fix)
- Cosmetic fixes -> batch into single
style:commit
Related Skills
- git-commit - Commit message format and conventions (use for review fix commits)
- github-pr-merge - Execute merge after review is complete (use after fixing all comments)
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.

