Github pr comment resolver

From findscripter/everything-skills · View interactive version

Github pr comment resolver is an AI agent skill from the GitHub repository findscripter/everything-skills. 当需要系统化回应一个 GitHub PR 上的评审/Issue 评论并落地修改时使用;用 gh CLI 拉取评论、归类规划、改代码并回复 resolved,产出已处理完的评论线程与提交;不适用于创建新 PR、纯本地无 PR 的改动或 GitLab/Bitbucket;触发词:PR 评论、code review、gh pr

How to use this skill

Skill file

何时使用

不该用的边界:

步骤

0. 确认 gh 已认证

gh auth status

未登录则先 gh auth login。

1. 拉取评论

获取当前分支 PR 的评论与评审线程:

gh pr view --comments

如仓库提供了列出线程的自定义脚本,可优先使用以获得更结构化的线程列表。

2. 归类与规划

3. 应用修复

针对选定的评论改代码。改前务必读懂评论所在位置的上下文代码。

4. 回复并标记已处理

修复后在对应线程回复,告知已解决:

gh pr comment <PR_NUMBER> --body "Addressed in latest commit."

指令

示例

# 1. 验证认证
gh auth status

# 2. 查看本分支 PR 的评论
gh pr view --comments

# 3. (改完代码后)回复某条评论已处理
gh pr comment 1287 --body "Addressed in latest commit."

注意事项

互见


采编自 sickn33/antigravity-awesome-skills(MIT)。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.