gh-address-comments
它能做什么
这个技能让 AI 找到你当前分支对应的未关闭拉取请求,列出其中的审查意见,并修复你所选择的部分。适合希望在 GitHub 上获得代码审查反馈帮助的开发者。
适用场景
- ✓当审查者在你未关闭的拉取请求上留下评论时。
- ✓当你希望 AI 修复你所选择的审查反馈时。
- ✓当 GitHub 拉取请求上的某条评论需要回复并做出改动时。
技能链接
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/gh-address-comments/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请查看我未关闭的拉取请求上的审查意见,并把它们列出来,让我选择要修复哪些。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会检查 GitHub 登录状态,获取评论和审查线程,用简短摘要为它们编号,然后为你选定的内容进行修复。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
PR Comment Handler
Guide to find the open PR for the current branch and address its comments with gh CLI.
Prerequisites: Ensure gh is authenticated before running commands. Check authentication status with gh auth status. If not authenticated, instruct the user to run gh auth login to authenticate with GitHub.
1) Inspect comments needing attention
- Run scripts/fetch_comments.py which will print out all the comments and review threads on the PR
2) Ask the user for clarification
- Number all the review threads and comments and provide a short summary of what would be required to apply a fix for it
- Ask the user which numbered comments should be addressed
3) If user chooses comments
- Apply fixes for the selected comments
Notes:
- If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with
gh auth login, then retry.
常见问题
如果我没有登录 GitHub 怎么办?
该技能会要求你先使用 GitHub 命令行工具登录。
它会决定修复哪些评论吗?
不会。它只负责列出评论,并询问你希望处理哪些编号的评论。
它用于处理失败的 CI 构建吗?
不是。构建失败由另一个单独的技能处理。
详情
作者的原始描述
Address review and issue comments on the open GitHub PR for the current branch using gh CLI. Use when user says "address PR comments", "fix review feedback", "respond to PR review", or "handle PR comments". Verifies gh auth first and prompts to authenticate if not logged in. Do NOT use for creating PRs, CI debugging (use gh-fix-ci), or general Git operations.
热度
- GitHub 星标
- 7.1k
- 排名
- #13526
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
component-common-domain-detection
7.1k帮你的智能体找出代码库中多个部分重复的业务逻辑,并建议如何合并。
component-flattening-analysis
7.1k帮你的智能体找出位置不当的代码,并整理杂乱的组件文件夹结构,让每个部分都放在应在的位置。
component-identification-sizing
7.1k帮你的智能体梳理代码库的各个组成部分并测量其规模,以找出应首先拆分的模块。
coupling-analysis
7.1k帮你的智能体检查代码库各部分之间的依赖有多紧密,并找出应优先放松的连接。