スキル一覧に戻る
kristofferremback

respond-to-pr-review

by kristofferremback

1🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: respond-to-pr-review description: Fetch, analyze, and respond to PR review comments. Use when asked to check PR comments, address review feedback, respond to reviewers, or fix issues raised in code reviews.

Respond to PR Review

Fetch and respond to review comments on pull requests.

Instructions

1. Determine PR number

If not provided, detect from current branch:

gh pr view --json number -q .number

2. Fetch review comments

gh api repos/{owner}/{repo}/pulls/{pr}/comments

3. Fetch review thread IDs and resolution status

gh api graphql -f query='
query {
  repository(owner: "{owner}", name: "{repo}") {
    pullRequest(number: {pr}) {
      reviewThreads(first: 50) {
        nodes {
          id
          isResolved
          comments(first: 1) {
            nodes {
              body
              path
              line
            }
          }
        }
      }
    }
  }
}'

4. Present unresolved comments

Summarize each comment showing:

  • File path and line number
  • The core issue (ignore HTML badges, buttons, metadata)
  • Severity if mentioned (High/Medium/Low)

5. Verify before fixing

Read the relevant code and verify each issue is valid before fixing.

6. Fix and respond

For each valid issue:

  1. Fix the code

  2. Reply to the thread with Claude signature:

IMPORTANT: All responses MUST end with the Claude signature to make it clear the response was AI-generated:

🤖 _Response by [Claude Code](https://claude.com/claude-code)_

Write the response to a temp file first (to avoid heredoc issues), then post:

# Write response with signature
printf '%s\n' \
  'Fixed! [explanation of what was changed]' \
  '' \
  '🤖 _Response by [Claude Code](https://claude.com/claude-code)_' \
  > /tmp/claude/pr-comment.md

# Post the comment
gh api graphql -f query='
mutation($body: String!) {
  addPullRequestReviewThreadReply(input: {
    pullRequestReviewThreadId: "{thread_id}"
    body: $body
  }) {
    comment { id }
  }
}' -f body="$(cat /tmp/claude/pr-comment.md)"
  1. Resolve the thread:
gh api graphql -f query='
mutation {
  resolveReviewThread(input: { threadId: "{thread_id}" }) {
    thread { isResolved }
  }
}'
  1. Clean up:
rm /tmp/claude/pr-comment.md

7. Commit and push

Commit all fixes with a message referencing the review feedback, then push.

Examples

User says: "Check the PR comments" Action: Fetch comments for current branch's PR, present issues, ask which to fix

User says: "Address the review feedback on PR 42" Action: Fetch comments for PR #42, fix valid issues, respond and resolve threads

User says: "Respond to the reviewers" Action: Reply to review threads explaining fixes, resolve addressed comments

スコア

総合スコア

40/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です