Review feedback
Triages every open review thread on your PR, makes the fixes, replies per thread and re-requests review.
Claude Code skill codemaman-pr-address-comments, works with GitHub and Jira.
Nit: fixed
Install it
Copies the skill into ~/.claude/skills:
curl -fsSL https://toolsfortechies.dev/install.sh | bash -s -- codemaman-pr-address-commentsOr download the zip and unzip it into ~/.claude/skills. Restart Claude Code afterwards.
Try it
- Ask Claude
- “Address the comments on my PR”
- Or run
/codemaman-pr-address-comments
Before you start
- You'll need
- gh CLI signed in.
- What it won't do without you
- New commits only, never a force-push. You approve the replies before they post.
Read the SKILL.md
# Address PR Review Comments
Turn reviewer feedback into commits and clear replies, with the user in control of anything that is a judgment call.
## 1. Gather everything
- Resolve the PR: argument (number/URL) or `gh pr view --json number,url,headRefName,headRefOid`. Make sure the current branch is the PR's head branch and the working tree is clean; if not, ask before switching or stashing. Pull the latest (`git pull --ff-only`) in case the reviewer or CI pushed changes.
- Fetch all feedback:
- Inline threads with resolved/outdated state and thread IDs via GraphQL: `gh api graphql -f query='query($o:String!,$r:String!,$n:Int!){repository(owner:$o,name:$r){pullRequest(number:$n){reviewThreads(first:100){nodes{id isResolved isOutdated path line comments(first:50){nodes{databaseId author{login} body createdAt url}}}}}}}' -f o=OWNER -f r=REPO -F n=NUMBER`
- Review summaries: `gh pr view <n> --json reviews`
- General conversation comments: `gh api repos/{owner}/{repo}/issues/<n>/comments`
- Failing CI: `gh pr checks <n>`; for failures read `gh run view <id> --log-failed`.
- Skip resolved threads and the user's own comments, unless a reviewer replied after a resolution.
## 2. Triage into a table
For every open comment give: reviewer, `path:line`, a one-line paraphrase, and a proposed action:
- **Fix**: clear, correct, and in scope.
- **Fix differently**: the concern is valid but the suggested solution isn't the best one; explain the alternative.
- **Discuss / push back**: you believe the comment is mistaken, conflicts with the ticket or another reviewer, or expands scope. Give the evidence.
- **Question**: needs an answer, not a code change.
- **Follow-up**: valid but out of scope; offer to file a Jira ticket.
- **Already done / outdated**: point to the commit or explain why it no longer applies.
Verify each reviewer claim by reading the code before agreeing; don't change code just because someone asked. Note conflicts between reviewers. Present the table and get the user's go-ahead, especially for anything under Discuss and Follow-up.
## 3. Make the changes
- Group related fixes into logical commits (not one commit per comment, not one giant commit). Message style follows the repo and references the ticket key, e.g. `fix: handle empty list in export (ABC-123, review feedback)`.
- Apply GitHub suggestion blocks faithfully when they are right; otherwise implement by hand.
- After edits, run lint, typecheck and relevant tests, and fix what you broke. Confirm each addressed comment is genuinely resolved by re-reading the new code.
- Never rewrite history or force-push unless the user explicitly asks (reviewers lose their place). Use new commits.
## 4. Reply on every thread
Draft replies and show them to the user before posting. Keep them short and concrete:
- Fixed: `Done in <short-sha>: <what changed>.`
- Different fix: `Went with X instead because Y; see <sha>.`
- Push back: polite, evidence-based, offers a path forward.
- Follow-up: `Agreed; tracked in ABC-456 so this PR stays focused.`
Post thread replies with `gh api repos/{owner}/{repo}/pulls/<n>/comments/<comment_id>/replies -f body=...`. Resolve a thread (GraphQL `resolveReviewThread`) only for ones you fixed; leave questions and disagreements for the reviewer to resolve unless the repo's norm is otherwise.
## 5. Push and hand back
- Push the commits (`git push`). Wait for CI to start and report its status.
- Post one summary comment on the PR if there were many changes: what changed, what is deferred, what needs the reviewer's decision.
- Re-request review from the reviewers whose feedback you addressed: `gh pr edit <n> --add-reviewer <login>`. Ask first if there are many.
- If Jira is connected, offer a ticket comment such as `Review feedback addressed, re-requested review`, and a transition if the team's workflow expects one. Tell the user what you will do and get a yes first.
## Final report to the user
Counts of comments fixed, changed differently, pushed back on, and deferred; the commits pushed; CI state; anything still waiting on a human decision.
## Rules
- Never post replies, push, resolve threads, or touch Jira without the user's approval of the draft.
- Don't silently ignore any comment; every open thread gets an action or a reply.
- Stay in scope: unrelated improvements go in a follow-up.
- Be gracious in tone even when disagreeing; critique the code, not the person.Open the raw file