Skip to content
Skillpedia
General coding91k · #1319

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.md

Copy 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

Use this skill to help me: https://github.com/storybookjs/storybook/blob/next/.agents/skills/handle-pr-comments/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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.

  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 ids and resolution state.)

  3. 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 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.
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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills