Unresolved PR Comments
Fetch and analyze unresolved review comments from a GitHub pull request.
Usage
Run the script to fetch PR comment data:
node ".claude/skills/unresolved-pr-comments/unresolvedPrComments.ts" [pr-number] 2>/dev/null
If no PR number is provided, it uses the PR associated with the current branch.
Note: Limited to 100 review threads, 10 comments per thread, and 100 reviews.
Processing Instructions
Using the JSON output from the script:
- •If error: Display the error message and suggest the fix
- •If no comments: Report the PR has no pending feedback
- •If comments exist: Present a brief summary (e.g., "Found 3 unresolved comments and 5 nitpicks")
Then, for EVERY comment (both unresolvedComments AND nitpickComments):
- •
Read the relevant code at the file path and line number
- •
Assess the comment and provide your opinion:
- •Agree: Explain why and offer to fix it
- •Disagree: Explain why the current code is acceptable
- •Already fixed: Note that the code already addresses this concern
- •
Present your assessment in list format (renders reliably in terminals):
1.
src/api.ts:118- Wrap JSON.parse in try-catch Verdict: Already fixed - Try-catch added in recent commit2.
src/config.ts:23- Useconstinstead ofletVerdict: Disagree - Value is reassigned on L313.
src/utils.ts:42- Add null check for user input Verdict: Agree - Input isn't validated, could cause runtime error
Then, offer to fix any issues where you agreed.