gh-address-comments

gh-address-comments is a skill for Codex from seaworld008/Commonly-used-high-value-skills. It costs 38 tokens per session (1,724 once invoked), scanned A, original, MIT.

A skill for handling comments on GitHub pull requests and issues. Pull requests are proposed code changes that others review before merging.

In plain words
What is it for?
It helps find unresolved comments, update the relevant files, add tests when requested, and verify the changes.
Why use it?
It gathers review feedback in one place and helps distinguish comments that need a code change from those that need discussion.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It helps find unresolved comments, update the relevant files, add tests when requested, and verify the changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seaworld008/commonly-used-high-value-skills/gh-address-comments
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add seaworld008/Commonly-used-high-value-skills --skill gh-address-comments
Clone the repo
git clone --depth 1 https://github.com/seaworld008/Commonly-used-high-value-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-address-comments

README.md
[![agentmods](https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/gh-address-comments/github.svg)](https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/gh-address-comments)
Your own site
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/gh-address-comments"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/gh-address-comments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh-address-comments

Your own site · 80×15
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/gh-address-comments"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/gh-address-comments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01724
Opus 5 $0.00019 $0.00862
Sonnet 5 $0.00008 $0.00345
Haiku 4.5 $0.00004 $0.00172

Measured 8d ago against content hash 02d4b209a05f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gh-address-comments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/fetch_comments.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

openclaw-skills/gh-address-comments/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Comment Handler (GitHub CLI)

用于快速定位当前分支对应的 GitHub Pull Request 并自动处理其中的 Review 意见或 Issue 评论。该技能通过 gh CLI 工具与 GitHub API 交互,能够读取评论、理解意图、提出修复建议并自动执行代码修改,从而显著加快代码评审的闭环速度。

安装与配置

# 确保已安装 GitHub CLI
brew install gh
# 登录并授权相关权限 (repo, read:org, workflow)
gh auth login

触发条件 / When to Use

  • PR 进入反馈阶段:在 CI/CD 完成后,评审人提出了若干修改建议。
  • 批量处理琐碎反馈:如拼写错误、变量重命名、代码风格调整等无需深度逻辑讨论的评论。
  • 远程协作同步:当多个团队成员在同一个 PR 下进行异步讨论,需要快速汇总并执行共识。
  • 遗留 PR 清理:针对已经开启多日但未合入的 PR,自动检索所有未解决(Unresolved)的对话。
  • 自动化测试失败复盘:如果评审人指出了测试用例的覆盖不足,Agent 自动根据评论补充测试代码。

核心能力 / Core Capabilities

1. 评论提取与语义分类 (Observation)

  • 操作步骤
    1. 验证当前分支:git branch --show-current
    2. 获取 PR 编号:gh pr view --json number,url
    3. 读取所有 Review 线程:gh pr view --json reviews 或运行自定义脚本 fetch_comments.py
  • 最佳实践:优先区分 General Comment (全局评论) 和 Inline Comment (代码行内评论),以便精准定位代码行。

2. 交互式任务确认 (Clarification)

  • 操作步骤
    1. 对所有评论进行编号。
    2. 针对每一条评论,评估修复难度和可能的变更方案。
    3. 输出清晰的列表:[编号] 评论内容 -> 拟修复逻辑
    4. 使用 question 工具等待用户确认:“请问需要处理哪些编号的评论?”
  • 最佳实践:对于不确定的评论,主动询问其语境,避免误改。

3. 自动代码修复 (Action)

  • 操作步骤
    1. 根据 pathline 信息,使用 read 工具定位本地源文件。
    2. 利用 LLM 生成修复后的代码块。
    3. 使用 editapply_patch 进行局部替换。
  • 最佳实践:在修改后立即运行本地单元测试 npm testpytest 以验证正确性。

4. 状态闭环 (Response)

  • 操作步骤
    1. 提交修复代码:git commit -m "docs/refactor: address PR review comments"
    2. 推送代码:git push origin HEAD
    3. 自动回复评论并标记为 Resolvedgh pr review --comment "Fixed as per review" <pr_id>
  • 最佳实践:在回复中引用具体的 Commit Hash,方便评审人追溯。

常用命令/模板 / Common Patterns

PR 反馈处理清单模板 (Feedback Checklist)

### PR 概览
- **PR 链接**: [https://github.com/org/repo/pull/123]
- **当前状态**: `Changes Requested`

### 待处理评论汇总 (Pending Comments)
1. **[L154, auth.py]**: "Consider using a more secure hashing algorithm."
   - **拟修复**: 切换 `md5` 为 `sha256`。
2. **[L20, styles.css]**: "Hardcoded hex color should be a theme variable."
   - **拟修复**: 替换 `#FFF` 为 `var(--bg-primary)`。

### 您的选择
- [ ] 全部处理
- [ ] 仅处理编号: [ ]
- [ ] 仅生成修复草案,不要执行提交

Read the full file on GitHub · 122 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 122 lines · 38 tokens per session scan A 02d4b209a05f

Subscribe to this mod's changes

gh-address-comments is a skill published in the GitHub repository seaworld008/Commonly-used-high-value-skills (70 stars, last pushed 4d ago), licensed MIT. It adds 38 tokens to every session and 1,724 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.