commit-and-git

commit-and-git is a skill for Claude Code, Codex from philtzjp/live-connector. It costs 178 tokens per session (1,786 once invoked), scanned A, original, MIT.

Instructions for carrying out Git and GitHub actions such as commits, branches, merges, rebases, pushes, and pull-request merges. They define safe checks and a Japanese commit-message format, including rules for repository scopes and commit structure.

In plain words
What is it for?
Use them before committing, pushing, creating or changing branches, merging, rebasing, or merging a GitHub pull request.
Why use it?
They reduce avoidable mistakes when changing shared Git history or preparing commits. They also help keep commit messages consistent and make sure unrelated changes are separated.

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/philtzjp/live-connector/commit-and-git
Any agent
npx skills add philtzjp/live-connector --skill commit-and-git
Clone the repo
git clone --depth 1 https://github.com/philtzjp/live-connector

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 commit-and-git

README.md
[![agentmods](https://agentmods.dev/badge/skills/philtzjp/live-connector/commit-and-git.svg)](https://agentmods.dev/skills/philtzjp/live-connector/commit-and-git)
Your own site
<a href="https://agentmods.dev/skills/philtzjp/live-connector/commit-and-git"><img src="https://agentmods.dev/badge/skills/philtzjp/live-connector/commit-and-git.svg" alt="Measured on agentmods" 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,786 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.00178 $0.01786
Opus 5 $0.00089 $0.00893
Sonnet 5 $0.00036 $0.00357
Haiku 4.5 $0.00018 $0.00179

Measured 3d ago against content hash ba20b0b98530, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit-and-git 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 3d 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.

.agents/skills/commit-and-git/SKILL.md · 41 lines

How it starts

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

コミットメッセージ

  1. MUST: type: 説明(日本語、短い文) のフォーマットを使用する
  2. IF: モノレポ; THEN MUST: type(scope): 説明(日本語、短い文) のフォーマットを使用し、説明を短く保つためにカッコ表記は用いない。
  3. MUST: scope にはファイル変更のあったトップレベルディレクトリ名(リポジトリ直下のディレクトリ名)を使用する; IF: Turborepo などのモノレポで apps/packages/ 配下を変更する; THEN MUST: 配下のパッケージ/アプリ名(leaf 名)を使用する(例: apps/dashboard の変更なら dashboardpackages/log の変更なら log); MUST: リポジトリ全体に関わる変更は repo を使用する; MUST: 隠しディレクトリは先頭ドットを含めて書く(agents ではなく .agents
  4. NEVER: scope にスラッシュを含めて階層を表現しない; NEVER: apps / packages などモノレポの親ディレクトリ自体を scope に使用しない; NEVER: workspace / design など実体のない総称、存在しないフォルダ名を scope に使用しない(NG: feat(workspace): ... / feat(design): ... / feat(agents): ... / feat(apps): ... / feat(packages): ... / feat(apps/dashboard): ... / feat(packages/log): ... → OK: feat(repo): ... / feat(.agents): ... / feat(.claude): ... / feat(dashboard): ... / feat(log): ...
  5. MUST: 説明は動作で終える(OK: 〜する / 〜追加 / 〜修正 / 〜削除 / 〜実装 など); NEVER: 動作を伴わない名詞で終える(NG: feat(api): ユーザー認証 → OK: feat(api): ユーザー認証を追加); NEVER: 説明に emoji を含めない
  6. MUST: 論理的なスコープ(パッケージ、機能)ごとにコミットを分割する; NEVER: 無関係な変更をまとめてコミットしない
  7. 変更をコミットする際:
    • ファイルごとに git diff を実行して各変更の作者を確認する。
    • NEVER: committer を上書きしない(常にユーザーの git config を使用する)
    • IF: すべての変更がエージェントによって生成された(ユーザー編集行がない); THEN MUST: --author のみで自身のエージェント種別を明示する:
    • IF: 一部でもユーザーによる変更がある; THEN MUST: 通常の git commit を使用する。
  8. NEVER: Co-Authored-By を追加しない
  9. NEVER: git add .git add -A を使用しない
  10. NEVER: 無関係な変更を1つのコミットに混在させない

コミットメッセージのプレフィクス

feat=新機能, fix=バグ修正, perf=性能改善, refactor=機能変更なしの改善, docs=ドキュメント, style=スタイル修正, test=テスト, chore=その他, ci=CI/CD設定, build=ビルド設定, merge=PR のマージ(マージコミット専用)

Git 操作

  1. MUST: あらゆる Git 操作(コミット、プッシュ、ブランチ作成、マージ、リベース)の前に git fetch --prune を実行する
  2. MUST: 現在のブランチがデフォルトブランチにマージ済みか確認する; IF: マージ済み; THEN: ユーザーに警告してブランチの切り替えを提案する
  3. MUST: リモートトラッキングブランチがまだ存在するか確認する; IF: 削除されている; THEN: ユーザーに警告する
  4. MUST: ローカルブランチがリモートより遅れていないか確認する; IF: 遅れている; THEN: git pull --rebase を提案する
  5. IF: ローカルブランチがリモートと乖離している; THEN SHOULD: ユーザーに警告し、リベースまたはマージを提案する
  6. MUST: GitHub CLI で PR を作成する場合は gh pr create --body "<本文>" または gh pr create --body-file <file> を使用し、PR 本文を明示する
  7. NEVER: コミットメッセージ、PR 本文、マージコミットメッセージに Co-Authored-By を含めない
  8. MUST: PR のマージ方式は merge commit を使用する
  9. MUST: PR をマージする場合は gh pr merge <番号> --merge --subject "merge(scope): 説明(日本語、短い文)" --body "" で件名と空の本文を明示する; NEVER: デフォルトのマージコミットメッセージ(Merge pull request #N from ...)を使用しない; NEVER: 件名・本文に PR 番号(#N)や Issue 番号など参照を含めない; NEVER: merge プレフィクスでマージであることが明示されるため、説明文に「マージ」と書かない(NG: merge(api): foo をマージ → OK: merge(api): foo を追加
  10. NEVER: squash merge / squash commit を使用しない。ただしユーザーが明示的に指示した場合のみ例外とする
  11. NEVER: ユーザーの確認なしにブランチを切り替えない
  12. NEVER: ユーザーの承認なしに git pullgit rebase を実行しない
  13. NEVER: ユーザーの確認なしにローカルブランチを削除しない

Read the full file on GitHub · 41 lines

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. 3d ago First seen · 41 lines · 178 tokens per session scan A ba20b0b98530

Subscribe to this mod's changes

commit-and-git is a skill published in the GitHub repository philtzjp/live-connector (4 stars, last pushed 2mo ago), licensed MIT. It adds 178 tokens to every session and 1,786 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-08-31.