benmatselby/dotfiles/resolve-pr-comments
Claude Code and agent skill by benmatselby/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Review open review comments on a GitHub PR, agree a fix with the user, apply the change, commit, push, and mark the thread resolved.
Install
npx vskill@latest install benmatselby/dotfiles/resolve-pr-commentsSKILL.md
Resolve PR Review Comments
Review open review comments on a GitHub PR one at a time, agree a fix with the user, apply the change to the branch, commit, push to GitHub, and mark the comment thread as resolved.
Arguments
<PR-URL>: The GitHub PR URL to inspect (e.g., <https://github.com/org/repo/pull/123>)
If no PR URL is provided, prompt the user to provide one.
Prerequisites
ghCLI installed and authenticated
Workflow
1. Fetch open review comments
Use the gh CLI to fetch all review comments for the PR:
Or fetch all review comments across all reviews:
Only surface comments that are not yet resolved. To check resolution status, fetch the review threads via GraphQL:
Filter to threads where isResolved: false.
If no unresolved comments are found, report "No open review comments" and exit.
2. Present comments to the user
Summarise each unresolved comment clearly:
- Which file and what the concern is
- The reviewer's suggestion (if any)
- Your recommended solution
Ask the user to confirm the approach before making any changes. Work through comments one at a time unless the user asks to handle multiple at once.
3. Check out the PR branch
Note: gh pr checkout may leave you in a detached HEAD state if the branch is from a fork. Check with git status and identify the correct remote and branch name for pushing later.
4. Apply the fix
Make the agreed code change. Do not commit yet — let the user verify if needed.
5. Commit and push
After committing, check git status for the push target. If in detached HEAD state, push explicitly:
Identify the correct remote by running git remote -v — push to the upstream org remote (not a personal fork) unless the PR originates from a fork.
6. Resolve the thread
Use the GraphQL resolveReviewThread mutation with the thread's node ID (obtained in step 1):
Confirm the response shows "isResolved": true.
7. Report back
Tell the user:
- Which comment was addressed and how
- The commit message used
- That the thread has been marked resolved
Then move on to the next unresolved comment (if any), repeating from step 2.
Notes
- Always agree the solution with the user before applying it — do not make changes speculatively.
- Only resolve a thread after the fix has been committed and pushed successfully.
- If the push fails due to remote mismatch (e.g., fork vs upstream), use
git remote -vto identify the correct remote and push target explicitly.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/skills/resolve-pr-comments/SKILL.md
Popularity
- Repository stars
- 68
- Repository forks
- 14
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/benmatselby/dotfiles/resolve-pr-comments)