pr-review-response
БесплатноБез исполняемых скриптовНе проверенTeaches agents to reply to PR review comment threads after fixing issues, making resolutions traceable
от github★ 5 758 звёзд на GitHubОб этом скилле
Context
When an agent fixes code in response to PR review comments (from Copilot, a human reviewer, or any GitHub reviewer), the fix alone is not enough. The reviewer needs to see — on the PR thread itself — which comments were addressed and how. Without replies, comments stay visually unresolved, reviewers must re-read the entire diff to verify fixes, and there's no traceable link between feedback and resolution.
Use this skill whenever:
- You are fixing code based on PR review feedback
- You are addressing Copilot review suggestions
- You are responding to reviewer-requested changes on a PR
- A squad member hands you review comments to resolve
SCOPE
✅ THIS SKILL PRODUCES:
- Reply comments on each review thread explaining the fix
- Optionally resolved threads (via GraphQL when appropriate)
- Commit messages that reference the PR and review context
❌ THIS SKILL DOES NOT PRODUCE:
- The code fixes themselves (that's the agent's domain work)
- New review comments or reviews
- PR descriptions or summaries
Patterns
Step 1: Read the review comments
Using MCP tools (preferred when available):
github-mcp-server-pull_request_read
method: "get_review_comments"
owner: "{owner}"
repo: "{repo}"
pullNumber: {pr_number}
This returns review threads with metadata: isResolved, isOutdated, isCollapsed, and their associated comments. Each comment has an id you'll need for replies.
Using gh CLI (fallback):
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments --paginate
Each comment object contains id, body, path, line, and in_reply_to_id. Top-level comments have no in_reply_to_id — those are the ones you reply to.
Step 2: Fix the code
Make the actual code changes. This is your normal domain work — the skill doesn't prescribe how to fix, only how to communicate the fix.
Track what you changed. For each review comment, note:
- The comment
id(top-level, not a reply) - The file and line referenced
- What you actually changed (brief description)
- The commit SHA after pushing (if available)
Step 3: Reply to each review thread
After fixing and committing, reply to each review comment thread individually.
REST API call (via gh CLI):
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/replies \
-f body="Fixed in {sha_short} — {brief description of what was changed}"
Important: {comment_id} must be the ID of the top-level comment in the thread. You cannot reply to a reply — only to the original review comment.
Example replies:
# Specific and traceable
gh api repos/github/squad/pulls/42/comments/18234/replies \
-f body="Fixed in a1b2c3d — switched to path.dirname(squadDirInfo.path) for worktree consistency"
# When applying a suggested code change
gh api repos/github/squad/pulls/42/comments/18235/replies \
-f body="Applied suggestion — updated error message to include the file path for debuggability"
# When pushing back on a suggestion
gh api repos/github/squad/pulls/42/comments/18236/replies \
-f body="Considered but not applied — this path needs to stay absolute because worktree resolution depends on it. See detectSquadDir() in detect-squad-dir.ts."
Step 4: Resolve threads (optional, GraphQL only)
Thread resolution is only available via the GitHub GraphQL API. Use this when your fix fully addresses the comment and no further discussion is needed.
First, get the thread IDs (they're different from comment IDs):
gh api graphql -f query='
query {
repository(owner: "{owner}", name: "{repo}") {
pullRequest(number: {pr_number}) {
reviewThreads(first: 100) {
nodes {
id
isResolved
comments(first: 1) {
nodes { body databaseId }
}
}
}
}
}
}
'
Match thread IDs to comment IDs using databaseId, then resolve:
gh api graphql -f query='
mutation {
resolveReviewThread(input: {threadId: "{thread_node_id}"}) {
thread { id isResolved }
}
}
'
When to resolve vs. leave open:
- ✅ Resolve: You fixed exactly what was requested, no ambiguity
- ❌ Don't resolve: You pushed back, applied a different fix, or the comment needs further discussion
- ❌ Don't resolve: The reviewer is a human — let them confirm and resolve themselves
Rule of thumb: Agent-to-agent threads (e.g., Copilot review → agent fix) can be resolved by the fixer. Human reviewer threads should be left for the human to resolve.
Step 5: Commit message traceability
Commit messages should reference the PR context:
fix: address review feedback on PR #{pr_number}
- Switched to path.dirname() for worktree path resolution (comment #18234)
- Updated error message to include file path (comment #18235)
Co-authored-by: Copilot <[email protected]>
For single-comment fixes, a shorter format works:
fix: us
Установить pr-review-response в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
name: "github-mcp-server-pull_request_read"name: "gh api (REST)"FAQ
Что делает скилл pr-review-response?
Teaches agents to reply to PR review comment threads after fixing issues, making resolutions traceable
Как установить скилл pr-review-response?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-review-response запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic