Read unresolved review comments on a GitHub PR, deeply evaluate each suggestion, then either fix it (via gh-dev + simplify) and push the result, or push back via gh-comment with a reasoned reply. Use when the user wants to address PR feedback, respond to reviewer comments, fix code-review suggestions, action a review, or any phrasing like "address the comments on PR #N", "respond to the review", "fix what the reviewer asked for", "go through the PR feedback", or "handle the review comments".
Ships in git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Process unresolved review feedback on a pull request. For every suggestion the reviewer made, judge whether it is genuinely worth applying. If it is, fix the code on the PR branch and reply to the reviewer. If it is not, push back with the reasoning instead.
This skill orchestrates other skills — it does not duplicate them:
| Phase | Skill used | Why |
|---|---|---|
| Apply a fix | gh-dev | Disciplined commits with no Co-Authored-By trailers |
| Refine the fix | simplify | Tightens the change before committing |
| Reply to reviewer | gh-comment | Posts feedback / request-changes / status replies |
The user retains the final say on every fix and every reply.
gh auth status
If gh is missing or unauthenticated, surface the install/login guidance from gh-comment and stop. Confirm the working directory is a git repo with a GitHub remote.
Resolve the PR number from the user's input (#42, a URL, "the current PR"). If the user is currently checked out on a branch with an open PR, prefer that:
gh pr view --json number,title,headRefName,baseRefName,state,url
Otherwise ask the user which PR. Store PR_NUMBER, HEAD_BRANCH, BASE_BRANCH.
If the PR is closed or merged, warn the user and ask whether to continue — fixes still apply, but the reviewer may not see them.
Fixes have to land on the PR's head branch. Check:
git rev-parse --abbrev-ref HEAD
git status --porcelain
If the current branch is not HEAD_BRANCH:
git checkout HEAD_BRANCH.Then sync with the remote so commits land on top of the latest review state:
git fetch origin
git pull --ff-only origin HEAD_BRANCH
If --ff-only fails, stop and ask the user how to reconcile (rebase, merge, abort).
The user wants only unresolved review threads processed. The REST API does not expose isResolved, so use GraphQL:
gh api graphql -f query='
query($owner: String!, $repo: String!, $pr: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pr) {
reviewThreads(first: 100) {
nodes {
id
isResolved
isOutdated
path
line
comments(first: 50) {
nodes {
id
author { login }
body
url
createdAt
}
}
}
}
}
}
}' \
-F owner="$OWNER" -F repo="$REPO" -F pr="$PR_NUMBER" \
--jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'
Get OWNER / REPO from gh repo view --json nameWithOwner --jq '.nameWithOwner'.
If there are zero unresolved threads, tell the user and stop. Do not invent work.
Mark threads where isOutdated is true — the line they reference may no longer exist. Still read them, but call this out when presenting.
Present a numbered list of unresolved threads to the user — one line each — so they see the scope before any work happens:
1. src/auth/login.ts:42 — "use bcrypt.compare instead of ===" (alice)
2. src/api/users.ts:88 — "this should be paginated" (bob, OUTDATED)
3. ...
Then, for each thread, do this in order:
Open the file at the referenced line and read enough surrounding context to actually understand the suggestion. A reviewer saying "this is wrong" without a reason is a signal you need more context, not less. If the thread has multiple comments, read the whole conversation — the latest comment may already supersede earlier ones.
Form a real opinion. The reviewer is not automatically right. Weigh:
Decide one of three outcomes:
Write your reasoning down — even one sentence — before acting. You will need it whether you fix or push back.
Show your decision and reasoning for each thread, then ask the user to confirm before any code or comment goes out. Use AskUserQuestion if there are multiple threads to triage. The user can override any decision.
For threads the user approved fixing, follow gh-dev's development discipline. Do not create a new branch — you are already on the PR branch. Skip gh-dev's Step 1-3 (issue/branch creation) and follow Steps 4-7 (conventions, develop, commit) for each fix.
Critical rules carried over from gh-dev:
git log --oneline -20) and CLAUDE.md / CONTRIBUTING.md to learn the project's commit convention before writing any commit message.git add . or git add -A.After writing the fix and before committing, invoke the simplify skill on the changed files. Its job is to tighten the diff — remove dead branches, collapse redundant logic, and surface anything overengineered. Apply its suggestions where they hold up; ignore the ones that don't.
Then commit per the project's convention. Example for a conventional-commits repo:
git add src/auth/login.ts
git commit -m "fix(auth): use bcrypt.compare for constant-time password check"
After all approved fixes are committed, push to the PR branch automatically:
git push origin HEAD
If the push is rejected (the remote moved during your work), fetch and rebase, then push again. Never --force push without asking the user — the reviewer may have local references to the old SHA.
Confirm the push succeeded and capture the new HEAD SHA so you can reference it in reply comments.
For every triaged thread (whether you fixed, disagreed, or deferred), reply via the gh-comment skill. Hand the work off — do not build a comment yourself.
Pass gh-comment enough context that its templates can be filled concretely:
status (or feedback if there is nuance to share). Mention the commit SHA(s) and what changed. Example payload to gh-comment: "post a status reply on PR #42 thread about src/auth/login.ts:42 — fix landed in , switched to bcrypt.compare, added a test for timing-equivalence".feedback. Default behavior is to hand off to gh-comment without pre-drafting — gh-comment's own approval flow will show the user the comment before posting. Only pre-draft and self-review the disagreement first if the user explicitly asks for that.status. Reference the follow-up issue number created for the deferred work.gh-comment posts each comment as an issue-level PR comment by default. If the user wants the reply attached to the specific review thread (so it resolves the thread), tell them and let them resolve it manually in the GitHub UI — replying to a specific review thread requires the GraphQL addPullRequestReviewThreadReply mutation, which gh-comment does not currently use.
Report to the user:
If any threads were marked outdated and the suggestion no longer applies, surface that explicitly so the user can mark them resolved manually.
gh-dev — repeated here because subagents and harness defaults have a tendency to reintroduce it.--force push without explicit user consent. A normal push that fails should be reconciled by fetch + rebase, not by forcing.git add ., git add -A, or git add --all — stage by explicit path.gh-comment's comment-rendering or gh-dev's commit logic. Hand off and let those skills do their job.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/branch-reportGenerates a branch-vs-default comparison report with plain-language explanations and senior dev review. Use when the user asks to summarize, compare, review, or explain branch changes, or wants a PR summary before merging. Read-only: it produces a report to read — it does not push the branch or open/update the PR (for that use gh-pr).
/commit-msgSuggests 3 commit messages based on git diff and project conventions. Use when the user asks for commit message ideas, wants help writing a commit message, or has changes ready to commit.
/gh-archiveCapture the current state of a project by updating documentation at the end of a development session. Invokes the readme skill to refresh README.md and the planning-with-files skill to record project status in a doc/ or docs/ directory. Use after merging a PR, finishing a feature, wrapping up a coding session, or any time the user wants to snapshot where the project stands — even implicit phrases like "archive this", "wrap up the session", "document current status", "update project docs", "snapshot this repo", or "I'm done for today". Also use when the user says "end of session" or asks to prepare documentation before stepping away from a project.
/gh-commentPost formatted comments on GitHub PRs or issues, approve PRs, and merge PRs via gh CLI using purpose-specific templates (feedback, question, status, approval, request-changes). Use when commenting on a PR, leaving feedback, asking a question on an issue, posting a status update, approving a pull request, merging a PR, or any intent to interact with an existing PR or issue — even implicit phrases like "tell them", "approve it", "merge this", "LGTM", or "ship it".
/gh-devCreate a branch linked to a GitHub issue via gh issue develop, then implement the work with regular convention-following commits. Use when starting work on an issue, picking up a ticket, developing a feature branch, or any intent to begin coding against a GitHub issue.
/gh-issueCreate structured GitHub issues via gh CLI using type-specific templates (bug, feat, refactor, doc, perf, security). Use when filing bugs, requesting features, tracking work, opening tickets, or any intent to create a GitHub issue — even implicit phrases like "track this" or "file this".
/git:gh-fixfrom git
npx claudepluginhub chienchuanw/chuan-skills --plugin git