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.
npx skills add eaglesakura/agent-skills --skill git-commit-comment-rulegit clone --depth 1 https://github.com/eaglesakura/agent-skillsWrote 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.
[](https://agentmods.dev/skills/eaglesakura/agent-skills/git-commit-comment-rule)<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/git-commit-comment-rule"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/git-commit-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.
<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/git-commit-comment-rule"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/git-commit-comment-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00188 | $0.02167 |
| Opus 5 | $0.00094 | $0.01084 |
| Sonnet 5 | $0.00038 | $0.00433 |
| Haiku 4.5 | $0.00019 | $0.00217 |
Grade A, and why
git-commit-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.
How it starts
The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Commit Comment Rule
AI Agent が git commit や gh 経由のコミットを行うとき、リポジトリ慣習に沿った日本語メッセージを書く。
いつ使うか
- ユーザーがコミットを依頼したとき(メッセージの考案を含む)
- 差分を見てコミットメッセージを提案・確定するとき
- 複数コミットに分割するとき、各コミットの文案を付けるとき
git commit --amendでメッセージを直すとき
いつ使わないか
- PR のタイトル/本文だけを書くとき(コミットメッセージが不要な場合)
- ブランチ名の決定だけ(
workspace-git-branch-ruleを使う) git logの閲覧・履歴調査だけ- ユーザーが「メッセージは自分で書く」と明示したとき
全体ルール
- 言語: 1 行目・箇条書きは 日本語 で書く
refs #は書かない:feature/id/{Issue番号}/...ブランチでは.hooks/commit-msgが 1 行目末尾へrefs #{Issue番号}を自動付与する。Agent がメッセージに含めると重複する- Agent 署名: 本文末尾に Git trailer 形式の署名を付ける(後述)
メッセージ構造
{prefix}: {変更内容を一文で要約}
- {何を変えたか}({なぜ変えたか})
- {追加の変更や理由があれば続ける}
Co-authored-by: Cursor Agent
- 1 行目と箇条書きの間、箇条書きと署名の間には 空行 を 1 行入れる
- 1 行目は 50 文字前後を目安に簡潔に(厳密上限はないが冗長にしない)
- 箇条書きは
-で始める。各項目で「何を」「なぜ」の両方が読み取れるようにする
1 行目の prefix
先頭は次のいずれか 1 つ を選び、{prefix}: の直後から日本語要約を書く。
| prefix | 使う場面 | 例 |
|---|---|---|
add: |
新規追加(機能・ファイル・公開 API・テストの新設など) | add: ログイン画面の ViewModel を追加 |
chg: |
既存の振る舞い・仕様・依存関係の変更(ユーザー体験や API 契約が変わる) | chg: freezed を 4.0.0 stable に更新 |
fix: |
バグ修正・クラッシュ・誤動作の是正 | fix: 未初期化の Repository で落ちる問題を修正 |
mod: |
構造変更・リファクタリング・設定・CI・ドキュメント整備など、上記以外の改修 | mod: CI ワークフローの対象ブランチを拡張 |
del: |
機能・ファイル・不要コードの削除 | del: 未使用の legacy 認証モジュールを削除 |
prefix の選び方
- バグを直した →
fix: - 新しいものを足した(機能・テスト・型定義の新設)→
add: - 既存の意味・振る舞いを変えた(ライブラリ更新で生成コードが変わる、UX 変更)→
chg: - コードを削除した →
del: - 上記に当てはまらない内部整理(リファクタ、CI 設定、コメント、import 整理)→
mod:
迷ったときは「レビュアーがこの PR を読むとき、新機能なのか修正なのかバグ直しなのか」を基準に選ぶ。
使わない prefix
feat: test: ci: docs: など Conventional Commits の別表記は 使わない。意味に近いものは上表へマッピングする。
箇条書き(2 行目以降)
- 必須: 変更が自明でない限り、1 行目だけのコミットにしない
- 各
-行は 1 つの論点に絞る - 「何を」だけでなく「なぜ」を括弧や続きの句で明示する
- 複数ファイルにまたがる場合は、関心ごと(例: Domain / Repository / UI)で分けてもよい
良い例:
fix: 通知 Permission 未許可時にクラッシュする
- Permission 拒否後も subscribe を呼んでいたため、結果をチェックして早期 return する(再現クラッシュの防止)
- 拒否パスの Unit Test を追加(回帰防止)
Co-authored-by: Cursor Agent
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.
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.
- 7d ago First seen · 159 lines · 188 tokens per session scan A 2d009ab7630b
git-commit-comment-rule is a skill published in the GitHub repository eaglesakura/agent-skills (2 stars, last pushed 5d ago), licensed MIT. It adds 188 tokens to every session and 2,167 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.
Other skills, from other repositories
create-pr
Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for prisma-next. Use when the user wants to create a pull request, open a PR, or submit changes for review.
git-commit
Generate well-formatted git commit messages following conventional commit standards.
repo-sync
Manage repo-sync on macOS for shared documents and team context. Use when asked what repo-sync does, to automatically sync a repo, add a repo to repo-sync, stop syncing or un-sync a repo, check sync health, configure repo-sync, uninstall it, or install and maintain its bundled agent skill. Ordinary one-time Git pulls…
mcore-split-pr
Split a PR into multiple PRs to reduce the number of required CODEOWNERS reviewer groups.
contributing
How to contribute to evlog, covering commit and PR conventions, changesets, the Definition of Done, testing rules, and the authored skills that walk through building a new adapter, enricher, framework integration, or map rule. Load this for any question about contributing, opening a PR, or adding something to the…
strict-tdd
Strict RED->GREEN->REFACTOR test-driven development with enforcement. Never write production code before a failing test. Atomic commits per TDD cycle.