跳到正文
Skillpedia
通用编程48k · #3647

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

可直接粘贴的消息

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

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

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#3647
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能