跳到正文
Skillpedia
部署与云(DevOps)33k · #8759

gh-address-comments

它能做什么

这个技能帮你的 AI 智能体处理 GitHub 拉取请求上的反馈。适合希望快速、准确地处理评审者意见的开发者。

适用场景

  • ✓当你想逐条处理未关闭拉取请求上的评审意见时。
  • ✓当评审者留下了多条意见,你想要帮助判断应修复哪些时。
  • ✓当你希望智能体为你选择的意见应用修复时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/gh-address-comments/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请显示我未关闭拉取请求上的评审意见,并让我选择要修复哪些。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用 GitHub CLI 找到当前分支对应的拉取请求,并把评论和评审讨论按编号列出。然后它只为你选中的意见进行修复。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

PR Comment Handler

Guide to find the open PR for the current branch and address its comments with gh CLI. Run all gh commands with elevated network access.

Prereq: ensure gh is authenticated (for example, run gh auth login once), then run gh auth status with escalated permissions (include workflow/repo scopes) so gh commands succeed. If sandboxing blocks gh auth status, rerun it with sandbox_permissions=require_escalated.

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 CLI,使用 gh auth login 登录。

它会自动修复每条意见吗?

不会。智能体会先询问你希望处理哪些编号的意见,然后才修改任何内容。

如果运行过程中登录过期怎么办?

智能体会请你用 gh auth login 重新登录,然后再重试。

详情

作者的原始描述

Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8759
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能