address-github-comments
它能做什么
这个工具可以帮你回复 GitHub 项目上的评论和建议。它会整理审查意见,并在你发送回复之前,确保所有问题都已修复。
适用场景
- ✓当你的 GitHub 项目收到了代码审查评论时。
- ✓当你需要整理并回复项目上的建议时。
- ✓当你想在回复之前确保所有修改都已完成时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/address-github-comments/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我处理 GitHub 项目上的代码审查评论。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先获取项目中的所有评论和建议,然后帮你规划修改方案、把改动应用到代码中,最后附上修复的证明,发送回复。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Address GitHub Comments
Overview
Efficiently address PR review comments or issue feedback using the GitHub CLI (gh). This skill ensures all feedback is addressed systematically.
Prerequisites
Ensure gh is authenticated.
gh auth status
If not logged in, run gh auth login.
Workflow
1. Inspect Comments
Fetch the comments for the current branch's PR.
gh pr view --comments
--comments shows conversation comments; it does not enumerate every inline review thread.
Use the available GitHub connector or the GraphQL pullRequest.reviewThreads connection
with pagination to inspect inline comments, file/line anchors, and resolution state.
Record the repository, PR number, current head SHA, thread IDs, and requested changes.
2. Categorize and Plan
- List the comments and review threads.
- Propose a fix for each.
- Address feedback already covered by the user's requested scope. Ask only when feedback conflicts, expands scope, or requires a consequential choice.
3. Apply Fixes
Read the surrounding implementation, preserve unrelated edits, and apply the changes for the selected comments. Run the relevant repository checks and bind the result to the updated head before reporting a fix.
4. Respond to Comments
When the user authorizes posting replies, respond with the commit and verification evidence. A conversation comment does not resolve an inline review thread. Resolve the specific thread through the supported GitHub API only after its request is actually addressed and resolution is authorized; otherwise leave a proposed reply for the user.
gh pr comment <PR_NUMBER> --body "Addressed in <commit SHA>; verified with <check and result>."
Common Mistakes
- Applying fixes without understanding context: Always read the surrounding code of a comment.
- Not verifying auth: Check
gh auth statusbefore starting.
When to Use
Use when an existing PR has review threads or issue comments that require a scoped code repair and an evidence-backed response.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
我需要安装什么吗?
需要。你要先安装 `gh CLI` 工具,并完成 GitHub 的身份验证。
什么是 gh CLI?
`gh CLI` 是一个命令行工具,可以让你直接在终端中与 GitHub 交互。
工具会自动替我回复吗?
不会。它会整理并准备好回复内容,但最终是否提交需要由你确认授权。
详情
作者的原始描述
Use when you need to address review or issue comments on an open GitHub Pull Request using the gh CLI.
热度
- GitHub 星标
- 48k
- 排名
- #3647
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。