Handle pr comments
Skill storybookjs/storybook/.agents/skills/handle-pr-comments
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.From its SKILL.md
npx -y skills add storybookjs/storybook --skill handle-pr-commentsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.7 KB, as published. Nobody here has run it
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.