commit

A guide for creating a Git commit, which is a saved set of code changes, from the current differences in a project.

In plain words
What is it for?
Use it to inspect staged and unstaged changes, classify the work, create an English message in the form type(scope): description, and add selected files before committing.
Why use it?
It helps choose a consistent commit-message format and prevents unrelated or sensitive files from being included accidentally.

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

Made for: Claude Code, Codex.

Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 295 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.00011 $0.00295
Opus 5 $0.00005 $0.00148
Sonnet 5 $0.00002 $0.00059
Haiku 4.5 $0.00001 $0.00030

Measured 2d ago against content hash 944aba323e35, 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.

The scan reads SKILL.md. This mod also ships 1 executable file (__init__.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

mewcode/mewcode/skills/builtins/commit/SKILL.md · 39 lines

What it actually says

任务

你需要帮用户创建一个 git commit。

步骤

  1. 运行 git status 查看当前变更状态
  2. 运行 git diffgit diff --staged 查看具体变更内容
  3. 分析变更,确定 commit 类型和范围:
    • feat: 新功能
    • fix: 修复 bug
    • docs: 文档变更
    • refactor: 重构
    • test: 测试
    • chore: 构建/工具变更
  4. 生成 commit message,格式:type(scope): description
  5. git add 逐个添加相关文件(不要添加 .env、credentials 等敏感文件)
  6. 执行 git commit -m "生成的 message"
  7. 如果用户提供了额外说明,纳入 commit message
  8. 如果变更覆盖超过 10 个文件,建议用户拆分成多个 commit

注意事项

  • 不要用 git add -Agit add .,逐个文件添加
  • commit message 用英文
  • description 不超过 72 个字符

$ARGUMENTS

Files

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.

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 · 39 lines · 11 tokens per session scan A 944aba323e35

Subscribe to this mod's changes

commit is a skill published in the GitHub repository vitoworleone/claude-code-handbook (44 stars, last pushed 17d ago), licensed MIT. It adds 11 tokens to every session and 295 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.