Appearance
gh-issue-comment-monitor 是一个轻量 GitHub Issue 协作 skill,用来让 Agent 只读取本轮需要处理的新评论,而不是反复加载完整 issue 历史。
gh-issue-comment-monitor
这个 skill 的核心是“GitHub Issue 评论 + 本地 checkpoint + 本轮 updates 文件”。GitHub 是只读数据源;checkpoint 只记录上次成功处理到的位置;updates 是供 Agent 本轮消费的有界评论集合。
SKILL.md
scripts/check_issue_updates.py
scripts/get_latest_comments.py
scripts/github_issue_comments.py
gh api
verify_dependencies.py
gh
--check-network
用户 prompt(仓库 + Issue 编号) -> 主 Agent 确认主工作区 .tmp/gh-issue-comment-monitor/ 路径 -> check_issue_updates.py 读取 checkpoint 并查询 GitHub(不更新状态) -> 覆写本轮 <issue>-updates.json -> 主 Agent 只读本轮新评论并完成理解、摘要或后续处理 -> 处理成功后才由 get_latest_comments.py --update-state 推进 checkpoint -> 主 Agent 向用户交付增量结果;下次从新 checkpoint 继续
若没有 checkpoint,脚本会按有界的最新评论路径建立上下文;只有确实需要重建讨论背景时,主 Agent 才扩大扫描范围。
docs/index.md
usage.md
dependencies.md
reference.md
默认由一个主 Agent 独立调用脚本、读取 updates、处理新评论并决定何时更新 checkpoint。这个 skill 没有必需的子 Agent、checker 或 reviewer,普通使用无需额外授权启动它们。
check_issue_updates.py 会返回 has_updates、new_comments、latest_comment 和 recommended_checkpoint,但不会更新状态。
check_issue_updates.py
has_updates
new_comments
latest_comment
recommended_checkpoint
get_latest_comments.py 会返回 comments、previous_checkpoint、next_checkpoint 和 state_updated。只有调用方明确要求更新状态时,才会写回 checkpoint。
get_latest_comments.py
comments
previous_checkpoint
next_checkpoint
state_updated
推荐产物都写在主工作区 .tmp/gh-issue-comment-monitor/ 下:
.tmp/gh-issue-comment-monitor/
.tmp/gh-issue-comment-monitor/ |-- OWNER-REPO-ISSUE.json `-- OWNER-REPO-ISSUE-updates.json
GitHub Issue 评论监控
gh-issue-comment-monitor是一个轻量 GitHub Issue 协作 skill,用来让 Agent 只读取本轮需要处理的新评论,而不是反复加载完整 issue 历史。逻辑视图
这个 skill 的核心是“GitHub Issue 评论 + 本地 checkpoint + 本轮 updates 文件”。GitHub 是只读数据源;checkpoint 只记录上次成功处理到的位置;updates 是供 Agent 本轮消费的有界评论集合。
SKILL.mdscripts/check_issue_updates.pyscripts/get_latest_comments.pyscripts/github_issue_comments.pygh apifallback、评论规范化、状态读写和错误 JSON。verify_dependencies.pyghCLI;只在使用--check-network时检查 GitHub API 可达性。它不编译脚本,也不检查 checkpoint 读写。运行视图
若没有 checkpoint,脚本会按有界的最新评论路径建立上下文;只有确实需要重建讨论背景时,主 Agent 才扩大扫描范围。
开发视图
SKILL.mddocs/index.md、usage.md、dependencies.md、reference.mdscripts/check_issue_updates.py、scripts/get_latest_comments.pyscripts/github_issue_comments.pygh apifallback、规范化评论、JSON 输出与本地状态读写。verify_dependencies.pyAgent 职责与交接边界
默认由一个主 Agent 独立调用脚本、读取 updates、处理新评论并决定何时更新 checkpoint。这个 skill 没有必需的子 Agent、checker 或 reviewer,普通使用无需额外授权启动它们。
设计边界
输出契约
check_issue_updates.py会返回has_updates、new_comments、latest_comment和recommended_checkpoint,但不会更新状态。get_latest_comments.py会返回comments、previous_checkpoint、next_checkpoint和state_updated。只有调用方明确要求更新状态时,才会写回 checkpoint。推荐产物都写在主工作区
.tmp/gh-issue-comment-monitor/下:子仓文档导航