Skip to content
Back to skills

Handle Pr Comments

ASecurity

Triage and resolve GitHub PR review comments one by one, interactively for humans and without asking for review bots. Use when the user asks to handle, address, respond to, or resolve PR review comments, or mentions reviewer feedback on a pull request.

  • 91,712 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentcode-reviewgit

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add storybookjs/storybook --skill handle-pr-comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Handle Pr Comments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Handle Pr Comments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/storybookjs-handle-pr-comments/badge)](https://www.skillsdirectory.com/skills/storybookjs-handle-pr-comments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: handle-pr-comments
description: Triage and resolve GitHub PR review comments one by one, interactively for humans and without asking for review bots. Use when the user asks to handle, address, respond to, or resolve PR review comments, or mentions reviewer feedback on a pull request.
metadata:
  internal: true
---

# Handle PR Comments

Evaluate review comments on the PR (from the current branch, or a PR number/URL if given). For each unresolved comment from a human: summarize the feedback, suggest a resolution, ask the user how to resolve it, apply their choice, commit if needed, and resolve the thread.

1. **Find the PR.** Use the given number/URL, else derive it from the current branch (`gh pr view`). Stop if no PR exists.

2. **Fetch unresolved review threads** via the GraphQL `reviewThreads` field on the pull request — request each thread's `id`, `isResolved`, `isOutdated`, `path`, `line`, and comments. Filter to `isResolved == false`. (Use GraphQL, not REST: only it exposes thread `id`s and resolution state.)

3. **Loop one comment at a time.** Handle bot comments as the "Bot comments" section says. For each human comment: (a) summarize the feedback + file/line, reading surrounding code; (b) suggest a concrete fix; (c) ask via AskQuestion with options — apply suggested fix / apply a different fix / reply only / skip; (d) apply the choice; (e) if applicable, summarize what was changed and ask whether to commit; (f) resolve the thread via the GraphQL `resolveReviewThread` mutation. 

4. **Report** an overview of what was changed, committed, replied to, skipped, and resolved. Include links.

## Notes

- Handle real-user comments before addressing AI agents' (Copilot, CodeRabbit).
- Group duplicate comments; when the same/similar issue is mentioned multiple times, handle them all at once.
- Make a separate commit for each change.

## Bot comments

For comments from review bots (Greptile, Copilot), do not ask the user. Judge each comment against the [code-review rules](../code-review/rules.md), including "Edge cases and guards". Then fix it, or decide not to and say why. Reply in the thread with what you did, and resolve the thread.

A human makes the final decision when you disagree with a high-severity finding (for example Greptile P0 or P1). Reply in the thread with your reasoning, leave the thread unresolved, and ask the user to decide, with the bot's reasoning and yours side by side. Fold the fixes into the commits that own them, as the [`pr` skill](../pr/SKILL.md) "Commit history" section says. The bots review again on each push, so fetch the threads again after you push.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.