Fetch PR comments, research each one against the codebase, assess validity, and present an action plan. Use when: (1) user says "pr-comments", "review pr comments", "check pr feedback", (2) user pastes a GitHub PR URL and wants to understand/triage the comments, (3) user wants to plan responses to code review feedback. CRITICAL: present the plan for approval before making any code changes.
72
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Fetch all comments from a GitHub PR, research each one against the codebase and project conventions, assess validity, and present a prioritized action plan. Never start implementing until the user approves.
Extract the PR number from the user's input (URL or number). Fetch all comment types in parallel:
# PR-level comments
gh api /repos/{owner}/{repo}/issues/{number}/comments
# Inline review comments (includes diff_hunk, path, line)
gh api /repos/{owner}/{repo}/pulls/{number}/comments
# Review summaries
gh api /repos/{owner}/{repo}/pulls/{number}/reviewsUse jq to extract: author, body, path, line, diff_hunk, in_reply_to_id, created_at.
Group replies by in_reply_to_id to reconstruct threads.
Format each comment clearly:
- @author file.ts#line:
> quoted comment textInclude diff hunks for inline comments. Nest replies under their parent.
You MUST perform deep, thorough codebase research before rendering any verdict. Surface-level searches (a single grep, reading only the referenced file) are NOT sufficient. Every verdict must be backed by evidence from actually reading the relevant code. Use the Agent tool with Explore subagents to parallelize research across all comments simultaneously.
For every comment, complete ALL applicable steps:
For each comment, provide:
Fix — implement the changeFix (modified) — the comment identifies a real issue but the suggested fix needs adjustmentSkip — the comment is incorrect or not applicable, explain whyDiscuss — needs user input to decideOutput a structured plan organized by file, grouping related comments:
## Plan
### file.tsx
#### Comment 1: @author — "summary of feedback"
- **Verdict**: Valid
- **Reason**: [evidence from codebase research]
- **Action**: Fix — [specific change description]
#### Comment 2: @bot — "summary of feedback"
- **Verdict**: Invalid
- **Reason**: [why this is wrong, citing docs/conventions]
- **Action**: Skip — [explanation]
### Summary
- X comments to fix
- Y comments to skip (with reasons)
- Z comments needing discussionAfter presenting the plan, stop and wait. Do not implement anything until the user confirms which comments to address. The user may:
fixup! commits targeting the original feature commit — not as standalone commits. This keeps the PR history clean for squash/rebase.d58ca85
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.