handle-pr-comments
What it does
This skill guides the AI through the review comments on a GitHub pull request, handling them one by one. It is for developers who need to respond to reviewer feedback efficiently.
When to use it
- ✓When a reviewer has left several comments on your pull request.
- ✓When you want to decide on each comment before any code is changed.
- ✓When you want to resolve review threads after the fixes are made.
Skill link
https://github.com/storybookjs/storybook/blob/next/.agents/skills/handle-pr-comments/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Go through the unresolved review comments on my pull request and ask me how to handle each one.”
5 new skills a week. 1 minute to read.
How it works
The AI lists the unresolved comments, reads the code around each one, and suggests a fix. It applies the option you pick, offers to commit, and marks the thread resolved.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Handle PR Comments
Evaluate review comments on the PR (from the current branch, or a PR number/URL if given). For each unresolved comment: summarize the feedback, suggest a resolution, ask the user how to resolve it, apply their choice, commit if needed, and resolve the thread.
Find the PR. Use the given number/URL, else derive it from the current branch (
gh pr view). Stop if no PR exists.Fetch unresolved review threads via the GraphQL
reviewThreadsfield on the pull request — request each thread'sid,isResolved,isOutdated,path,line, and comments. Filter toisResolved == false. (Use GraphQL, not REST: only it exposes threadids and resolution state.)Loop one comment at a time. For each: (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
resolveReviewThreadmutation.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.
FAQ
Does it fix every comment without asking?
No. The skill asks you to choose, for each comment, whether to apply a fix, change it or skip it.
How are AI reviewer comments treated?
The skill says to handle real reviewers' comments before those from AI reviewers.
Does a pull request need to exist?
Yes. It looks for the pull request from the current branch or a number you give.
Details
Original description by the author
Triage and resolve GitHub PR review comments one by one, interactively. Use when the user asks to handle, address, respond to, or resolve PR review comments, or mentions reviewer feedback on a pull request.
repo: storybookjs/storybook
Popularity
- GitHub stars
- 91k
- Ranking position
- #1319
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
principle-encode-lessons-in-structure
91kTeaches your agent to turn repeated mistakes into automatic checks, such as a lint rule or script, instead of writing the same reminder again.
storybook-startup-benchmark
91kHelps your agent measure how long Storybook takes to start and show its first story, with repeat runs for fair comparisons.
storybook-upgrade
91kShows your agent how to upgrade all Storybook packages in a project to a chosen version, one major version at a time.
update-pr-description
91kHelps your agent check whether a pull request's title and description still match the code changes, then suggest accurate updates.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.