github-comment-rule

github-comment-rule is a skill for Claude Code, Codex from eaglesakura/agent-skills. It costs 178 tokens per session (1,925 once invoked), scanned A, original, MIT.

A set of rules for writing comments on existing GitHub pull requests. It covers pull request updates, reviews, inline comments, and replies to discussion threads.

In plain words
What is it for?
Use it when drafting or posting pull request comments, review feedback, inline code comments, or replies to existing review threads.
Why use it?
Review comments can become unclear, overly formal, or inconsistent. These rules provide a consistent language, tone, structure, and signature for comments posted to GitHub.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Cursor.

Good fit Use it when drafting or posting pull request comments, review feedback, inline code comments, or replies to existing review threads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eaglesakura/agent-skills/github-comment-rule
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 eaglesakura/agent-skills --skill github-comment-rule
Clone the repo
git clone --depth 1 https://github.com/eaglesakura/agent-skills

Made for: Claude Code, 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 github-comment-rule

README.md
[![agentmods](https://agentmods.dev/badge/skills/eaglesakura/agent-skills/github-comment-rule/github.svg)](https://agentmods.dev/skills/eaglesakura/agent-skills/github-comment-rule)
Your own site
<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/github-comment-rule"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/github-comment-rule/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 github-comment-rule

Your own site · 80×15
<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/github-comment-rule"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/github-comment-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,925 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.
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.00178 $0.01925
Opus 5 $0.00089 $0.00962
Sonnet 5 $0.00036 $0.00385
Haiku 4.5 $0.00018 $0.00193

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

Security

Grade A, and why

github-comment-rule 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 7d ago.

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.

packages/ohitorisama/.apm/skills/github-comment-rule/SKILL.md · 166 lines

How it starts

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

GitHub Comment Rule

AI Agent が 既存 Pull Request 上にコメントを書くとき、日本語で丁寧かつ端的に書き、末尾に Agent 署名を付ける。

いつ使うか

  • 既存 PR へ gh pr comment でコメントを投稿するとき
  • gh pr review で Review コメント(approve / request changes / comment)を書くとき
  • 特定行へのインライン review comment(gh api 等)を起草するとき
  • 既存の review スレッド・discussion への返信を書くとき
  • 既存 PR の body へ追記・一部更新する文案を Agent が書くとき

いつ使わないか

  • git commit のコミットメッセージ(git-commit-comment-rule を使う)
  • Cursor チャット内でユーザーへ返答するだけ(GitHub に投稿しないテキスト)
  • PR 分割方針の検討だけ(split-pull-request-rule を使う)
  • 新規 PR 作成の初回本文をテンプレートに沿って一括起草するとき(/github.create-pull-request が主。ただし投稿文案の言語・署名は本 SKILL に合わせてよい)

全体ルール

  • 言語: 本文は 日本語 で書く
  • 文体: 丁寧語(です・ます調)。冗長な敬語の重ねがけは避け、端的に要点を伝える
  • Agent 署名: コメント末尾に署名ブロックを付ける(後述)
  • Markdown: GitHub Flavored Markdown を前提に書く。インライン code は ` で囲む

コメント種別ごとの書き方

インライン review comment(コード行への指摘)

  • 1 論点 1 コメントを基本とする
  • 冒頭で指摘の種類が伝わるように書く(例: 懸念、提案、質問)
  • 理由と、可能なら具体的な改善方向を 1〜3 文で述べる
  • 長い差分引用は避け、必要な行だけ ` で示す

例:

ここでは `null` のとき早期 return しているため、後段の `subscribe` が呼ばれない想定で合っていますでしょうか。拒否後も subscribe しているように見えるため、意図を確認させてください。

---
*Cursor Agent*

スレッド返信(既存コメントへの返信)

  • 相手の指摘を 1 文で要約してから答える
  • 対応済み / 対応予定 / 意図的に見送る、のいずれかが伝わるように書く
  • 返信先の @mention は GitHub UI が付ける場合がある。Agent が本文に @ を足す必要は通常ない

例:

ご指摘ありがとうございます。Permission 拒否時は `subscribe` を呼ばないよう修正済みです。Unit Test も追加しています。

---
*Cursor Agent*

PR discussion コメント(一般コメント)

  • 目的(確認依頼、共有、ブロッカー報告など)を最初の 1 文で示す
  • 箇条書きは 3 項目以内を目安にし、レビュアーの読み負荷を下げる
  • CI 結果・再現手順・スクショ言及など、事実と依頼内容を分けて書く

例:

CI の `analyze` が失敗しています。`UserRepository` の import 漏れが原因のため、次のコミットで修正します。

- 失敗ジョブ: `dart analyze`
- 対応: 未使用 import 削除とスタブ追加

---
*Cursor Agent*

PR body の追記・部分更新

  • /github.create-pull-request のテンプレート構造(Summary / Features 等)がある場合は 構造を壊さない
  • 追記する段落だけ本 SKILL の文体・署名に従う
  • body 全体の末尾に署名を 1 回だけ付ける(セクションごとに署名しない)

Agent 署名

GitHub コメントの末尾に、空行 1 行のあと次のブロックを付ける。

---
*Cursor Agent*
  • 水平線(---)で本文と署名を視覚的に分ける
  • Co-authored-by:コミットメッセージ専用git-commit-comment-rule)であり、PR コメントには使わない
  • ユーザーが手書きした文案をそのまま投稿する場合は署名を付けない
  • 1 投稿あたり署名は 1 回(スレッド返信ごとに付ける)

Read the full file on GitHub · 166 lines

Files

What ships with it

1 file 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. 7d ago First seen · 166 lines · 178 tokens per session scan A 60ed846b5fff

Subscribe to this mod's changes

github-comment-rule is a skill published in the GitHub repository eaglesakura/agent-skills (2 stars, last pushed 5d ago), licensed MIT. It adds 178 tokens to every session and 1,925 once invoked, about $0.0009 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-04.

Related

Other skills, from other repositories

review-implement-phase

Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.

prisma/orm · 38 tokens

github-pr-workflow

Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

paperclipai/paperclip · 39 tokens

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

review-delta

Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

tirth8205/code-review-graph · 24 tokens

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens

github-contributor

End-to-end playbook for shipping high-quality pull requests to open-source projects you don't maintain — discovery, CONTRIBUTING compliance, PR-size check, minimal-diff implementation, PR description with AI-assisted disclosure, conflict resolution, and post-submission maintainer interaction. Use whenever creating…

daymade/claude-code-skills · 133 tokens