handle-pr-comments
它能做什么
这个技能引导 AI 逐条处理 GitHub 拉取请求上的审查意见。适合需要高效回应审阅者反馈的开发者。
适用场景
- ✓当审阅者在你的拉取请求上留下了多条意见的时候。
- ✓当你希望在修改任何代码之前,对每条意见做出决定的时候。
- ✓当修复完成后,你希望把审查讨论串标为已解决的时候。
技能链接
https://github.com/storybookjs/storybook/blob/next/.agents/skills/handle-pr-comments/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我查看拉取请求中未解决的审查意见,并逐条询问我该如何处理。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 列出未解决的意见,阅读每条意见周围的代码,并建议修复方案。它应用你选择的方案,提议提交,并把讨论串标记为已解决。
技术内容(原始 SKILL.md)
作者在 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.
常见问题
它会不经询问就修复每一条意见吗?
不会。该技能会请你为每条意见选择:应用修复、修改,还是跳过。
AI 审阅者的意见如何处理?
该技能说明,应先处理真人审阅者的意见,再处理 AI 审阅者的意见。
必须已经存在拉取请求吗?
是的。它会查找当前分支对应的拉取请求,或你给出的编号。
详情
作者的原始描述
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
热度
- GitHub 星标
- 91k
- 排名
- #1319
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
principle-encode-lessons-in-structure
91k教你的智能体把反复出现的错误转化为自动检查,例如 lint 规则或脚本,而不是一再写下同样的提醒。
storybook-startup-benchmark
91k帮你的智能体测量 Storybook 的启动时间,以及显示第一个 story 所需的时间,并通过重复运行进行公平比较。
storybook-upgrade
91k教你的智能体把项目中的所有 Storybook 包升级到指定版本,每次只升级一个大版本。
update-pr-description
91k帮你的智能体检查拉取请求的标题和描述是否仍与代码改动相符,然后提出准确的更新建议。