dsifry/metaswarm/handling-pr-comments
Claude Code and agent skill by dsifry/metaswarm
- community
Checking that the SKILL.md file is still in the repository.
Address PR review feedback systematically — fetch inline comments, review bodies, handle outside-diff-range comments, resolve threads with proper attribution
Install
npx vskill@latest install dsifry/metaswarm/handling-pr-commentsSKILL.md
handling-pr-comments
Use when addressing PR review feedback, after receiving review comments from CodeRabbit, Cursor, or human reviewers - ensures systematic responses to each comment thread with proper attribution and thread resolution.
When to Activate
Activate this skill when ANY of these conditions are true:
- User asks to "address PR comments" or "handle review feedback"
- User mentions CodeRabbit, Cursor bot, or reviewer comments
- User is working on fixes requested in a PR review
- User asks to "check PR comments" or "respond to reviewers"
- After making fixes to address review feedback
CRITICAL: The Complete Workflow
Most developers forget steps 4-6. This skill ensures they happen.
Phase 1: Discover and Filter Comments
Run the filtering script to identify actionable comments:
This script:
- Filters out non-actionable comments (confirmations, acknowledgments, fingerprinting)
- Categorizes actionable comments by priority (Critical → Low)
- Shows comment IDs and details for processing
Phase 2: Triage Actionable Comments
The filter script categorizes by priority:
| Priority | Marker | Action | ||
|---|---|---|---|---|
| CRITICAL | `_⚠️ Potential issue_ \ | _🔴 Critical_` | Fix immediately | |
| HIGH | `_⚠️ Potential issue_ \ | _🟠 Major_` | Fix before merge | |
| MEDIUM | _🟡 Minor_ or `_🛠️ Refactor suggestion_ \ | _🟠 Major_` | Should fix | |
| LOW | _🔵 Trivial_ / _🧹 Nitpick_ | Fix if quick | ||
| HUMAN | Non-bot comments | Always process |
For each actionable comment, further categorize as:
- Bug/Issue - Must fix
- Enhancement - Should fix
- Nitpick - Nice to fix
- Question - Needs clarification
- Intentional - Decline with explanation
- Out-of-Scope - See Phase 2b
Phase 2b: Extract "Outside Diff Range" Comments from Review Bodies (CRITICAL)
COMMONLY MISSED: CodeRabbit posts "Outside diff range" comments in the review body, not as inline threads. These are actionable feedback that MUST be addressed.
These comments are NOT in threads - they cannot be replied to inline. You must:
- Parse the file paths and line numbers from the review body
- Address the feedback in your code
- Commit and push
- Leave a general PR comment acknowledging you addressed them
Phase 2c: Handle Other Out-of-Scope Comments
List the out-of-scope comments:
The listings print every comment in full, including replies on each thread: a request can sit in a later reply or after a long introduction.
This lists comments that:
- No longer map to a line in the PR diff (
lineis null) - Are marked "outdated" by GitHub (GraphQL
isOutdatedflag) - Are general PR discussion comments
IMPORTANT: Treat out-of-scope comments as IN SCOPE by default.
Evaluation Process
Use ultrathink to evaluate each out-of-scope comment:
Decision Matrix
| Criteria | Action | |
|---|---|---|
| Simple fix (< 30 min, < 3 files, no refactor) | FIX_NOW - Make the change immediately | |
| Medium complexity (unclear scope) | ASK_USER - Present a decision request | |
| Major refactor (multiple systems, risky) | CREATE_ISSUE - Document for follow-up |
ASK_USER uses the decision-request format: lettered options (A, B, C) under numbered questions (reply 1 A 2 C), each with its pros and cons, the recommended option marked, and why it is recommended (see Decision requests in the metaswarm plugin's guides/delivery-scope.md).
For FIX_NOW
- Make the fix
- Commit with descriptive message
- Push to the PR branch
- Reply: "Fixed in commit <hash>. This was outside the original PR scope but straightforward to address."
- Resolve the thread
For CREATE_ISSUE
- Create GitHub issue with context
- Reply: "Created issue #<number> to track this."
- Resolve the thread
Phase 3: Make Fixes
Fix the actual code issues. Code changes go to a FRESH coder of the tier the rubric picks (see guides/coder-selection.md, located from the metaswarm plugin root), never back to the agent that wrote the code. Give it a complete fix brief: the comment verbatim with file:line, the PR head SHA, the contract pointers and the validation commands. Trivial reply-only or doc fixes can stay with the handler. Verify the result, then commit and push.
Phase 4: RESPOND TO EACH THREAD (Often Forgotten!)
After pushing fixes, respond to EACH comment thread individually:
Phase 5: Resolve ALL Threads
Every thread must be resolved after responding. Use GraphQL to resolve:
Phase 6: Handle Threads That Can't Be Resolved
- Query the comment author asking for specific follow-up
- Do NOT leave unresolved - either resolve after responding, or ask for clarification
- If waiting for author response, mark as needing user input
Phase 7: Post-Push Iteration Check (MANDATORY)
THE #1 WORKFLOW FAILURE: Stopping after Phase 5-6 without checking for NEW comments.
Automated reviewers (CodeRabbit, Cursor) analyze EVERY commit you push. They post NEW comments during/after their check runs.
If NEW comments found: Return to Phase 1. DO NOT proceed to verification.
Iteration Loop:
Response Templates
For Fixes Made
For Acknowledged Nitpicks
For Intentional Decisions
Mandatory Pre-Completion Check
BLOCKING: You MUST run this script and show its output before declaring ANY PR ready:
This script:
- Returns exit code 0 if all comments addressed
- Returns exit code 1 if ANY unaddressed comments exist
- Shows status for each comment
If the script shows ANY unaddressed comments, you are NOT done. Address each unaddressed comment:
- If actionable → Fix it and reply confirming the fix
- If out-of-scope → Reply explaining deferral (create issue if needed)
- If disagree → Reply with reasoning
- NEVER ignore silently
You must show the script output in your response as proof that all comments are addressed. Example:
A PR is NOT ready until this script returns success.
Verification Checklist
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/handling-pr-comments/SKILL.md
Popularity
- Repository stars
- 121
- Repository forks
- 8
- Repository npm downloads, 7 days
- 25
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dsifry/metaswarm/handling-pr-comments)