genshijin-commit

A guide for writing short Git commit messages in Conventional Commits format, a shared style that labels changes such as features, fixes, tests, and documentation. It supports Japanese and English and emphasizes explaining why a change was made.

In plain words
What is it for?
Use it to create commit subjects and optional bodies, choose a change type and scope, document breaking changes, format issue references, and match the repository's existing language.
Why use it?
It keeps commit history consistent and readable without repeating details already visible in the code changes. It also specifies length limits and when a longer explanation is needed.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/interfacex-co-jp/genshijin/genshijin-commit
Any agent
npx skills add InterfaceX-co-jp/genshijin --skill genshijin-commit
Clone the repo
git clone --depth 1 https://github.com/InterfaceX-co-jp/genshijin

Made for: Claude Code, Codex.

Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00088 $0.00871
Opus 5 $0.00044 $0.00436
Sonnet 5 $0.00018 $0.00174
Haiku 4.5 $0.00009 $0.00087

Measured yesterday against content hash 1b06477dbd40, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

genshijin-commit 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 yesterday.

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.

skills/genshijin-commit/SKILL.md · 85 lines

What it actually says

コミットメッセージは簡潔かつ正確に。Conventional Commits 形式。冗長禁止。「何を」より「なぜ」。

ルール

件名

  • <type>(<scope>): <命令形の要約><scope> 任意
  • types: feat, fix, refactor, perf, docs, test, chore, build, ci, style, revert
  • 命令形: 「追加」「修正」「削除」 — 「追加した」「追加します」不可
  • ≤50文字目標・72文字上限
  • 末尾ピリオド不要
  • 日本語/英語はリポジトリ既存コミット履歴に合わせる(git log 確認)

本文(必要時のみ)

  • 件名で自明なら省略
  • 追加する場合:
    • 非自明な「なぜ」
    • 破壊的変更
    • マイグレーション注意
    • 関連Issue/PR
  • 72文字で折返し
  • 箇条書きは -* 不使用)
  • 末尾にIssue/PR参照: Closes #42 Refs #17

絶対入れない

  • 「このコミットは〜します」「私は」「我々は」「現在」「今」— diff 見れば自明
  • 「〇〇の依頼により」— Co-authored-by trailer 使う
  • 「Generated with Claude Code」等 AI 帰属表記
  • 絵文字(プロジェクト慣習で必須な場合を除く)
  • scope で既出のファイル名再記述

diff: ユーザープロフィール用新エンドポイント、なぜ必要か本文で説明

  • feat: ユーザープロフィール情報をDBから取得する新しいエンドポイントを追加
  • feat(api): GET /users/:id/profile 追加
    
    モバイルクライアント コールドスタート時
    LTE帯域削減のため、完全user payload不要なprofileデータ
    取得エンドポイントが必要。
    
    Closes #128
    

diff: 破壊的API変更

  • feat(api)!: /v1/orders を /v1/checkout にリネーム
    
    BREAKING CHANGE: /v1/orders クライアント 2026-06-01 までに
    /v1/checkout 移行必須。以降旧ルート 410 返却。
    

diff: 小さいバグ修正(本文不要例)

  • fix(auth): トークン期限チェック境界条件修正

自動明瞭化

以下は件名のみ禁止・本文必須:

  • 破壊的変更
  • セキュリティ修正
  • データマイグレーション
  • revert コミット

将来のデバッガーがコンテキスト必要。圧縮し過ぎない。

境界

  • メッセージ生成のみ。git commit 実行・ステージング・amend 不実施
  • 出力はコードブロックで貼付可能な形式
  • 「原始人コミットやめて」「通常モード」で解除
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. yesterday First seen · 85 lines · 88 tokens per session scan A 1b06477dbd40

Subscribe to this mod's changes

genshijin-commit is a skill published in the GitHub repository InterfaceX-co-jp/genshijin (314 stars, last pushed 17d ago), licensed MIT. It adds 88 tokens to every session and 871 once invoked, about $0.0004 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-08-30.

Related

Other skills, from other repositories