Read and analyze GitHub pull request review comments. Use when reviewing PR feedback, understanding code review comments, or preparing responses to reviewers.
Fetch and analyze review comments from a GitHub pull request.
When this skill is invoked, follow these steps:
The argument can be:
123)https://github.com/owner/repo/pull/123)If no argument is provided, ask the user for the PR number.
Run these commands to gather PR data:
# Get PR metadata
gh pr view <PR> --json number,title,state,author,reviewDecision,reviews
# Get review comments (the actual review feedback)
gh api repos/{owner}/{repo}/pulls/<PR>/comments --jq '.[] | {path: .path, line: .line, body: .body, user: .user.login, created_at: .created_at}'
# Get general PR comments (conversation)
gh pr view <PR> --comments
# Get the diff for context
gh pr diff <PR> --stat
Organize the review feedback into these sections:
PR Summary
Code Review Comments (grouped by file)
General Discussion
Action Items
After presenting the review comments, offer to:
/superpowers:receiving-code-review for deeper analysis/pr-comments 51
/pr-comments https://github.com/malston/diego-capacity-analyzer/pull/51
gh) must be installed and authenticated