跳到正文
Skillpedia
部署与云(DevOps)7.1k · #13526

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/gh-address-comments/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: tech-leads-club/agent-skills

热度

GitHub 星标
7.1k
排名
#13526
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能