/git-and-pr:address-pr-feedbackfrom git-and-pr
Systematic 5-phase workflow for handling PR review comments. Fetches review threads via gh api (not gh pr view), triages by priority, executes fixes via sub-agent, posts inline GitHub replies, and commits. Invoke when asked to "address PR feedback", "respond to review comments", or "handle PR review".
Ships in git-and-pr. 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.
Systematic workflow for triaging and resolving GitHub PR review comments. This skill covers the full cycle: fetch, plan, fix, reply, and finalize.
Before starting, confirm:
42)owner/repo format (e.g., DataDog/my-repo)If not provided, ask: "Which PR number and repo should I address feedback for?"
Use the full REST API to get pull request review comment IDs. These are the IDs needed for inline replies and are different from the general PR comment IDs returned by gh pr view.
gh api repos/<owner>/<repo>/pulls/<number>/comments \
--jq '[.[] | {id: .id, path: .path, line: .line, body: .body, user: .user.login, url: .html_url, diff_hunk: .diff_hunk}]'
Also fetch general (non-inline) PR comments:
gh api repos/<owner>/<repo>/issues/<number>/comments \
--jq '[.[] | {id: .id, body: .body, user: .user.login}]'
Save to ~/workspace/work-artifacts/<TICKET-ID>/pr-<number>-review.md (create directory if needed):
# PR #<number> Review Notes
**PR**: <url>
**Date**: <YYYY-MM-DD>
**Reviewer(s)**: <list>
## Triage
### P0 — Must Fix (correctness, security, blocking)
- [ ] Comment ID `<id>` [@<user>, `<file>:<line>`]: <summary>
### P1 — Should Fix (important improvements, style violations)
- [ ] Comment ID `<id>` [@<user>, `<file>:<line>`]: <summary>
### P2 — Nice to Have (suggestions, optional improvements)
- [ ] Comment ID `<id>` [@<user>, `<file>:<line>`]: <summary>
### Acknowledged (no change needed — explain why)
- Comment ID `<id>`: <reason for no-change>
## Reply Drafts
For each comment, draft a reply here before posting:
### Comment <id>
**Fix**: <what will be done>
**Reply**: "<draft reply text>"
Present the triage to the user and get approval before proceeding to Phase 2.
For P0 and P1 items, outline the fix approach:
For P2 and Acknowledged items, draft a reply explaining why no change is being made (or that a follow-up ticket has been created).
Present the fix plan to the user. Confirm before executing.
Launch a sub-agent (general-purpose) to implement the changes:
"Implement the following PR feedback fixes for PR # in /. Changes needed: [paste P0/P1 fix list from review notes]. Follow existing code conventions, use TypeScript, run tests after changes."
Monitor and verify:
npm test / npm run test for JS/TSpytest for PythonCommit using Conventional Commits. Stage specific files only:
git add <specific files>
git commit -m "fix(<scope>): <description addressing review feedback>"
Do not include Claude attribution in commits. Do not use --no-verify.
For each comment addressed (P0, P1, P2, Acknowledged), post an inline reply using the pull request review comment ID obtained in Phase 1.
Important: Use the review comment ID (from /pulls/<number>/comments), not the issue comment ID:
gh api repos/<owner>/<repo>/pulls/comments/<comment-id>/replies \
--method POST \
--field body="<reply text>"
Reply guidelines:
After posting all replies, verify they appear correctly:
gh pr view <number> --repo <owner>/<repo> --comments
Push the branch:
git push
Update the review notes file with final status (mark all items complete).
If all reviewers' concerns are addressed, re-request review:
gh pr edit <number> --repo <owner>/<repo> --add-reviewer <reviewer-username>
(Only do this if the user confirms.)
Report to user:
~/workspace/work-artifacts/ — create the directory if it doesn't exist.pr-<number> as the directory name: ~/workspace/work-artifacts/pr-<number>/.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub arosenkranz/agent-config --plugin git-and-pr6 skills in this plugin
/cleanup-worktreesSafely scans all git worktrees, checks merge status and PR state, categorizes them (Merged/PR Closed/Remote Deleted/Active), presents a report, and deletes with user approval. Never deletes the current worktree. Invoke when asked to "clean up worktrees", "remove merged worktrees", or "prune worktrees"./pin-actionsPin GitHub Actions from mutable tags (e.g., @v4) to immutable commit SHAs to prevent supply chain attacks. Use when editing .github/workflows files, hardening CI security, looking up action SHAs, pinning actions to specific commits, or replacing "uses: owner/repo@tag" references with SHA-pinned equivalents.
/refineIterative visual/UI refinement mode. Make one change at a time, describe it, wait for feedback. Use when tuning visual effects, layouts, or styling. Invoke with /refine./releaseSemantic-version release: extends pr with version bump, tag, GitHub release. Trigger phrases: 'cut a release', 'publish a release', 'tag a version'./shipFull ship lifecycle — lint, test, branch, commit, push, PR, CI check. Use when work is complete and ready to land. Pass --merge to also merge after CI passes. Pass --no-test to skip tests.