fix-pr-comments
Skill78 starsChanged 9 months agoApache-2.0View on GitHub
Fix all comments from the GitHub pull request for the current branch. Fetches PR review comments and addresses each issue raised by reviewers.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Moriarty33/jb-kaizentheir own version, first seen Nov 8, 2026
- omerchn/skillstheir own version, first seen Oct 11, 2026
- leochiu-a/git-pr-aitheir own version, first seen Oct 5, 2026
- pydantic/montytheir own version, first seen Sep 4, 2026
- TheYMK/agent-skillstheir own version, first seen Jun 15, 2026
- codebyalexx/claude-skillstheir own version, first seen May 25, 2026
Used with
Projects with it also use commit and frontend-design.
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.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
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
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- pydantic/monty★ 8.9ksame name
- leochiu-a/git-pr-ai★ 80same name
- GalvinGao/skills★ 1same name
- Moriarty33/jb-kaizen★ 1same name
- omerchn/skills★ 1same name
- codebyalexx/claude-skills★ 0same name
- TheWatcher01/skills★ 0same name
- TheYMK/agent-skills★ 0same 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 repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-reviewsSkill
- code-reviewerSkill
- code-simplifierSkill
- comment-analyzerSkill
- moder-web-devSkill
- pr-test-analyzerSkill
- silent-failure-hunterSkill
- type-design-analyzerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 19 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
19
Distinctive
This author's own choices. Worth a look.
0
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 33
Run these commands to get the current branch and find the associated PR:
- Distinctive: line 43
If there's no PR for the current branch, inform the user and stop.
- Distinctive: line 66
Use TodoWrite to create a task list with all the issues to fix:
- Distinctive: line 69
Create a todo item for each actionable comment
- Distinctive: line 83
Read the relevant file(s) mentioned in the comment
- Distinctive: line 90
After fixing all issues, run the project's test suite:
- Distinctive: line 100
After completing all fixes, provide a summary:
- Distinctive: line 107
Read before editing: Always read the file context before making changes
- Distinctive: line 108
Preserve intent: Make sure fixes align with the overall code style and architecture
- Distinctive: line 109
Test everything: Run tests after each significant change
- Distinctive: line 110
Document lessons: If a comment reveals a pattern issue, consider updating CLAUDE.md
- Distinctive: line 111
Don't over-fix: Only address what the reviewer asked for, don't refactor unrelated code
- Distinctive: line 115
If a comment is unclear or could be interpreted multiple ways:
- Distinctive: line 116
Look at the surrounding code context
- Distinctive: line 117
Check if there are follow-up comments clarifying the issue
- Distinctive: line 118
If still unclear, note it in the summary as needing human clarification
- Distinctive: line 122
Create focused commits for each logical fix
- Distinctive: line 123
Use clear commit messages referencing the review comment
- Distinctive: line 124
Don't force push or rebase without user permission
“Common” is measured: kept by at least 6 in 10 of the 8 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
Fix PR Comments
You are a PR review comment resolver. Your job is to find and fix all outstanding review comments on the current pull request.
Workflow
Step 1: Identify the Current Branch and PR
Run these commands to get the current branch and find the associated PR:
# Get current branch name
git branch --show-current
# Get PR number and details for this branch
gh pr view --json number,title,url,reviewDecision,stateIf there's no PR for the current branch, inform the user and stop.
Step 2: Fetch All Review Comments
Get all review comments on the PR:
# Get all review comments (these are inline code comments)
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments --jq '.[] | {id: .id, path: .path, line: .line, body: .body, user: .user.login, created_at: .created_at}'
# Get all PR review threads to see which are resolved
gh pr view {pr_number} --json reviewThreadsAlso check for general PR comments:
# Get issue-style comments on the PR
gh api repos/{owner}/{repo}/issues/{pr_number}/comments --jq '.[] | {id: .id, body: .body, user: .user.login, created_at: .created_at}'Step 3: Create a Todo List
Use TodoWrite to create a task list with all the issues to fix:
- Parse each comment to understand what needs to be fixed
- Create a todo item for each actionable comment
- Group related comments if they're about the same issue
Skip comments that are:
- Questions that have been answered
- Already resolved threads
- Pure discussion without action items
- Approval messages like "LGTM"
Step 4: Fix Each Issue
For each comment:
- Mark the todo as in_progress
- Read the relevant file(s) mentioned in the comment
- Understand the reviewer's concern
- Make the necessary fix
- Mark the todo as completed
Step 5: Run Tests
After fixing all issues, run the project's test suite:
npm testFix any test failures that result from your changes.
Step 6: Summary
After completing all fixes, provide a summary:
- List of comments addressed
- Files modified
- Any comments that couldn't be automatically fixed (require discussion)
Important Notes
- Read before editing: Always read the file context before making changes
- Preserve intent: Make sure fixes align with the overall code style and architecture
- Test everything: Run tests after each significant change
- Document lessons: If a comment reveals a pattern issue, consider updating CLAUDE.md
- Don't over-fix: Only address what the reviewer asked for, don't refactor unrelated code
Handling Ambiguous Comments
If a comment is unclear or could be interpreted multiple ways:
- Look at the surrounding code context
- Check if there are follow-up comments clarifying the issue
- If still unclear, note it in the summary as needing human clarification
Git Etiquette
- Create focused commits for each logical fix
- Use clear commit messages referencing the review comment
- Don't force push or rebase without user permission
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.

