/git-tools:gh-address-commentsfrom git-tools
Address review/issue comments on the open GitHub PR for the current branch. Fetches all comments and review threads, summarizes what needs attention, and helps apply fixes. Use when responding to PR feedback, resolving review comments, or when user mentions "address comments" or "fix review feedback".
Ships in git-tools. 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.
Read when SKILL.md points to them; scripts run unread.
Fetch and address review comments on the open PR for the current branch using the gh CLI.
# Fetch all comments for current branch's PR
"${CLAUDE_PLUGIN_ROOT}/skills/gh-address-comments/scripts/fetch-comments.sh"
# Fetch comments for specific PR
"${CLAUDE_PLUGIN_ROOT}/skills/gh-address-comments/scripts/fetch-comments.sh" 123
# Reply to a review thread after fixing
"${CLAUDE_PLUGIN_ROOT}/skills/gh-address-comments/scripts/reply-to-thread.sh" "PRRT_threadId" "Fixed in this commit"
Run the fetch script to get all PR comments:
"${CLAUDE_PLUGIN_ROOT}/skills/gh-address-comments/scripts/fetch-comments.sh"
Read the JSON from the tool result. Run the helper directly rather than wrapping it in command substitution, which can require separate shell approval.
Present a numbered list of actionable items:
review_threads entry (inline comments on specific lines)conversation_comments entry (general PR comments)isResolved: true)Example summary format:
## PR Comments Needing Attention
1. [src/app.ts:42] Missing null check before accessing property
2. [src/utils.ts:15-20] Consider extracting to helper function
3. [General] Add tests for edge cases
Which comments would you like me to address? (e.g., "1,3" or "all")
Ask which numbered comments to address. Options:
1,3allnoneFor each selected comment:
After applying fixes, reply to the review threads to acknowledge:
# For each addressed thread (use the thread id from fetch-comments.sh)
"${CLAUDE_PLUGIN_ROOT}/skills/gh-address-comments/scripts/reply-to-thread.sh" "$THREAD_ID" "Fixed in this commit"
Suggested reply formats:
"Fixed in commit abc123" - Reference the fix commit"Addressed by [description of change]" - Describe the fix"Will address in follow-up PR" - For deferred itemsFetches all PR comments using GitHub GraphQL API.
Usage:
"${CLAUDE_PLUGIN_ROOT}/skills/gh-address-comments/scripts/fetch-comments.sh" [PR_NUMBER]
Output:
{
"pull_request": {
"number": 123,
"url": "https://github.com/owner/repo/pull/123",
"title": "Add new feature",
"state": "OPEN",
"owner": "owner",
"repo": "repo"
},
"conversation_comments": [
{
"id": "IC_...",
"body": "Please add tests",
"author": "reviewer",
"createdAt": "2024-01-15T10:00:00Z"
}
],
"reviews": [
{
"id": "PRR_...",
"state": "CHANGES_REQUESTED",
"body": "Good start, but needs some changes",
"author": "reviewer",
"submittedAt": "2024-01-15T10:00:00Z"
}
],
"review_threads": [
{
"id": "PRRT_...",
"isResolved": false,
"isOutdated": false,
"path": "src/app.ts",
"line": 42,
"comments": [
{
"id": "PRRC_...",
"body": "Missing null check here",
"author": "reviewer",
"createdAt": "2024-01-15T10:00:00Z"
}
]
}
]
}
Reply to a PR review thread after addressing feedback.
Usage:
"${CLAUDE_PLUGIN_ROOT}/skills/gh-address-comments/scripts/reply-to-thread.sh" <thread_id> <body>
Arguments:
| Argument | Description |
|---|---|
thread_id | The review thread ID from fetch-comments.sh (e.g., PRRT_kwDO...) |
body | The reply message text |
Output:
{
"id": "PRRC_...",
"body": "Fixed in commit abc123",
"url": "https://github.com/owner/repo/pull/123#discussion_r12345",
"author": "your-username",
"createdAt": "2024-01-15T10:30:00Z"
}
Example:
# After fixing an issue, reply to acknowledge
"${CLAUDE_PLUGIN_ROOT}/skills/gh-address-comments/scripts/reply-to-thread.sh" "PRRT_kwDOExample123" "Fixed by adding null check"
The script returns JSON errors:
{
"error": true,
"message": "gh CLI not authenticated. Run 'gh auth login' first.",
"code": "AUTH_REQUIRED"
}
Error codes:
| Code | Description |
|---|---|
GH_NOT_INSTALLED | gh CLI not installed |
AUTH_REQUIRED | Run gh auth login |
JQ_NOT_INSTALLED | jq not installed |
NOT_GIT_REPO | Not in a git repository |
NO_PR | No PR found for current branch |
API_ERROR | GitHub API error |
gh CLI installed and authenticated (gh auth login)jq for JSON processingAdapted from openai/skills/gh-address-comments
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/gh-pr-reviewGitHub PR review operations via gh CLI. Create pending reviews with line comments, submit reviews (approve/reject/comment). Use when adding PR comments, submitting reviews, or managing GitHub code reviews./git-advancedAdvanced git operations (rebase, cherry-pick, reflog, stash, reset, clean), analysis tools (bisect, blame, history), and command reference. Use for complex git tasks, recovery operations, or when user mentions rebase, cherry-pick, reflog, stash, reset, bisect, or needs git command reference./git-commitsGit commit best practices and message formatting guidelines. Use when creating commits, improving commit messages, learning commit conventions, or when user mentions commit messages, commit formatting, or commit guidelines./git-stacked-prsStacked (dependent) pull request workflow. Use when creating, managing, or troubleshooting stacked PRs, or when user mentions stacked diffs, dependent PRs, PR stacks, or breaking large features into smaller PRs./using-git-worktreesManages git worktrees for feature development — creates, lists, switches between, and removes worktrees. Use when setting up an isolated branch for feature work, running parallel development streams, or cleaning up after a feature is merged.npx claudepluginhub nilpath/nilpath-marketplace --plugin git-tools