at-commit

A guided Git workflow that reads staged changes and prepares a Conventional Commits message, such as `fix: correct login error`. It waits for your confirmation before creating the commit.

In plain words
What is it for?
Use it when you want to commit staged changes or generate a commit message. It can also follow the repository's configured language preference for the message.
Why use it?
It removes the need to inspect the staged diff and write the commit message yourself, while preventing an unintended commit before you approve it.

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

Made for: Claude Code, Codex.

Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,318 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.00033 $0.01318
Opus 5 $0.00016 $0.00659
Sonnet 5 $0.00007 $0.00264
Haiku 4.5 $0.00003 $0.00132

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

Security

Grade A, and why

at-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.

skills/workflow/at-commit/SKILL.md · 79 lines

How it starts

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

Commit Message Generator

Workflow

  1. Run git diff --staged to inspect staged changes. If it is empty, tell the user to run git add first and stop.
  2. Determine the description language using the Language Policy below.
  3. Generate the message(s) and show them for confirmation; do not commit immediately. When more than one framing is reasonable, present them as a short numbered list (1), 2), …) so the user can pick by replying with just the number. A single clear message may be shown on its own. The user may also reply with an edit or their own wording.
  4. Run git commit -m only after the user picks or explicitly confirms — a number from the list, "commit", or "ok" all count. Do not run git push unless the user explicitly asks.

Language Policy

Use this priority order for the human-readable description after type(scope)::

  1. Use the language explicitly requested by the user in this turn.
  2. Otherwise use the repository preference in .agent-tools/config.jsonc, if it defines at-commit.language.
  3. Otherwise use the global preference in ~/.agent-tools/config.jsonc, if it defines at-commit.language.
  4. Otherwise use the language of the user's actual invocation text when it contains a clear, independent natural-language request. Ignore injected skill instructions, quoted or pasted content, code blocks, diffs, and tool output.
  5. Otherwise match the dominant language in recent repository commit subjects.
  6. If no dominant language is clear, default to English.

Apply this order literally and stop at the first match. Check items 2 and 3 before item 4. A bare slash command or skill invocation has no language; continue to item 5. Inspect at most the latest 20 subjects.

Keep Conventional Commits syntax tokens untranslated: type, optional scope, !, and BREAKING CHANGE. Keep identifiers, file names, package names, commands, API names, and scopes in their original language.

Persistent Language Preference

Do not write config during ordinary commit generation. If the user explicitly asks to remember a commit-description language, offer to persist it. Ask repo vs global when scope is ambiguous.

Read the full file on GitHub · 79 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 · 79 lines · 33 tokens per session scan A b7761adc3956

Subscribe to this mod's changes

at-commit is a skill published in the GitHub repository kairyou/agent-tools (172 stars, last pushed 4d ago), licensed MIT. It adds 33 tokens to every session and 1,318 once invoked, about $0.0002 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.