commit

A workflow that examines staged Git changes, creates a Conventional Commits message, and commits the changes. Conventional Commits use labels such as feat, fix, or docs to describe the kind of change.

In plain words
What is it for?
Use it to inspect staged work, choose an appropriate commit type and scope, generate the message, and create the commit.
Why use it?
It removes the need to classify the change and write the commit message manually while applying rules for wording, length, and breaking changes.

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

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 900 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.00027 $0.00900
Opus 5 $0.00014 $0.00450
Sonnet 5 $0.00005 $0.00180
Haiku 4.5 $0.00003 $0.00090

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

Security

Grade A, and why

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 2d 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.

.ja/skills/commit/SKILL.md · 71 lines

How it starts

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

/commit - Git コミット実行

build の Code 段が unit ごとに取るコミットを、手で 1 回行う版。subject の規則は同じ。

入力

$ARGUMENTS はコンテキストまたは Issue 参照を含み得る。空白を除去し、空文字列ならステージ済み変更のみで解析する。非空ならメッセージの scope やフッターのヒントとして扱う。

実行

  1. git statusgit diff --staged を並列で実行し、ステージ済み変更を読む
  2. 変更内容と $ARGUMENTS から、メッセージを 1 つ生成する (§ 種別判定, § ルール)
  3. sandbox 互換コミットでそのままコミットを実行する

種別判定

diff のコンテキストから type を推定する。判別できないときは chore とする。feat は semver の minor を上げる宣言になるので、根拠がないまま選ばない。

Type 用途
feat 新しい機能や能力
fix バグ修正やエラー訂正
refactor 振る舞いを変えないコード再構成
docs ドキュメントのみの変更
test テストの追加や更新
chore 設定、依存、メンテナンス
perf パフォーマンス最適化
style フォーマット、空白、lint
ci CI/CD 設定の変更

ルール

メッセージは <type>(<scope>): <subject> の形に組み立てる。破壊的変更は feat(api)!: のように type の後へ ! を付ける。部位ごとの規則は下表が定める。

部位 規則
Subject 72 文字以内、命令形、小文字、末尾のピリオドなし
Body 動機や判断の理由など diff から読み取れない why を書く。自明なら省略する
Footer BREAKING CHANGE:Closes #123Co-authored-by: を使う

Sandbox 互換コミット

先頭の git rev-parse --show-toplevel で対象リポジトリを確かめる。

git rev-parse --show-toplevel
cat > "$TMPDIR/commit-msg.txt" << 'EOF'
<message>
EOF
git commit -F "$TMPDIR/commit-msg.txt"

エラー処理

エラー 扱い
ステージ済みなし コミットせず、ステージが空であることを報告する
空の diff 最小限のメッセージでコミットする
git リポジトリでない コミットせず、その旨を報告する
リポジトリが意図と違う コミットせず、git rev-parse --show-toplevel の出力を報告する
pre-commit 失敗 フックの出力をそのまま報告する。直して再実行するかはユーザーが決める

Read the full file on GitHub · 71 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. 2d ago First seen · 71 lines · 27 tokens per session scan A 72210d3ea071

Subscribe to this mod's changes

commit is a skill published in the GitHub repository thkt/dotclaude (11 stars, last pushed 2d ago), licensed MIT. It adds 27 tokens to every session and 900 once invoked, about $0.0001 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

create-modal

Create declarative modals using the modal library API. Covers modal types (confirm, input, select, form), sections (Text, Buttons, Input, Textarea, Checkbox, List, Combo, When, Custom), rendering with OverlayModal, and keyboard/mouse handling. Use when adding modals or dialogs to the application.

marcus/sidecar · 69 tokens

create-plugin

Create new sidecar plugins implementing the plugin.Plugin interface, rendering views with Bubble Tea, handling keyboard input via keymap contexts, and integrating with the app shell (footer hints, event bus, adapters). Use when creating a new plugin, modifying plugin architecture, or debugging plugin…

marcus/sidecar · 74 tokens

merge-strategy

Git merge strategies, conflict resolution approaches, merge vs rebase recommendations, and branch integration patterns in sidecar. Covers pull strategy menu, direct merge workflow, squash merge, commit message templates, configurable defaults, and protected branches. Use when working on git merge features or making…

marcus/sidecar · 63 tokens

autoprompt

Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.

Spielewoy/autoprompt-skill · 56 tokens

autoprompt

Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.

Spielewoy/autoprompt-skill · 56 tokens

autoprompt

Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.

Spielewoy/autoprompt-skill · 56 tokens