From pr-comment-fixer
Automatically read GitHub pull request review comments and apply fixes to address feedback. Use this skill when the user asks to review and fix PR comments, address PR feedback, or resolve review suggestions. Triggers include phrases like "fix PR comments", "address PR feedback", "review PR
How this skill is triggered — by the user, by Claude, or both
Slash command
/pr-comment-fixer:fix-issuesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Automatically processes GitHub pull request review comments and applies code fixes to address reviewer feedback.
Automatically processes GitHub pull request review comments and applies code fixes to address reviewer feedback.
Follow this workflow when the user requests PR comment fixes:
Parse the PR number from the user's request. Accept formats like:
Use GitHub CLI to get PR information:
gh pr view <PR_NUMBER> --json number,title,headRefName,repository
Extract:
headRefName: The PR branch namerepository: Owner and repo nameCheck if running locally or remotely:
git rev-parse --git-dir 2>/dev/null
If this fails (not in a git repository):
gh repo clone <OWNER>/<REPO>If successful (already in repository):
Switch to the PR branch:
git fetch origin
git checkout <BRANCH_NAME>
git pull origin <BRANCH_NAME>
Retrieve review comments using GitHub CLI:
gh pr view <PR_NUMBER> --json reviews,comments --jq '.reviews[].comments[], .comments[]'
Parse the JSON output to extract:
For each comment, determine if it's actionable:
Actionable comments (should be fixed):
Non-actionable comments (skip):
When in doubt, err on the side of treating comments as actionable.
For each actionable comment:
Work through all comments systematically before committing.
After all fixes are applied, create a single commit:
git add -A
git commit -m "Address PR review comments: <SUMMARY>"
Where <SUMMARY> is a brief description of what was changed, such as:
Push the commit to the PR branch:
git push origin <BRANCH_NAME>
Provide the user with:
Handle common errors gracefully:
gh auth statusnpx claudepluginhub stilero/claude-plugins --plugin pr-comment-fixerFetches GitHub PR review comments via gh CLI, inventories by file/line/author, addresses each with code fixes, runs tests, commits referencing PR, pushes, and reports resolutions.
Reads open GitHub PR review comments, triages by severity, applies code fixes, and drafts replies. Use when addressing PR feedback or code review.
Fetches GitHub PR review feedback, triages comments as valid/stale/incorrect, implements fixes, verifies with tests, and drafts replies.