git-commit

git-commit is a command for Claude Code from jakreymyers/awesome-claude-statusline. It costs 11 tokens per session (558 once invoked), scanned A, original, MIT.

A commit helper for Git, the version-control system used to track code changes. It creates commits using a consistent format with a type, short description, and matching emoji.

In plain words
What is it for?
Use it to review staged changes, suggest splitting separate work, and create commits for features, fixes, documentation, tests, and other changes.
Why use it?
It reduces inconsistent commit messages and helps catch unrelated changes before they are committed. It works with staged files, meaning changes already selected for the commit.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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 commands/jakreymyers/awesome-claude-statusline/git-commit
Clone the repo
git clone --depth 1 https://github.com/jakreymyers/awesome-claude-statusline

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/jakreymyers/awesome-claude-statusline/git-commit.svg)](https://agentmods.dev/commands/jakreymyers/awesome-claude-statusline/git-commit)
Your own site
<a href="https://agentmods.dev/commands/jakreymyers/awesome-claude-statusline/git-commit"><img src="https://agentmods.dev/badge/commands/jakreymyers/awesome-claude-statusline/git-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 558 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.1 $0.00011 $0.00558
Opus 5 $0.00005 $0.00279
Sonnet 5 $0.00002 $0.00112
Haiku 4.5 $0.00001 $0.00056

Measured 5d ago against content hash ab7934059cd0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

git-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 5d 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.

.claude/commands/git-commit.md · 66 lines

What it actually says

Git Commit

Creates well-formatted commits with conventional commit messages and emoji.

Usage Examples

/commit
/commit --no-verify

Workflow

  1. Check staged files, commit only staged files if any exist
  2. Analyze diff for multiple logical changes
  3. Suggest splitting if needed
  4. Create commit with emoji conventional format
  5. Husky handles pre-commit hooks automatically

Commit Format

<emoji> <type>: <description>

Types:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation
  • style: Formatting
  • refactor: Code restructuring
  • perf: Performance
  • test: Tests
  • chore: Build/tools

Rules:

  • Imperative mood ("add" not "added")
  • First line <72 chars
  • Atomic commits (single purpose)
  • Split unrelated changes

Emoji Map

✨ feat | 🐛 fix | 📝 docs | 💄 style | ♻️ refactor | ⚡ perf | ✅ test | 🔧 chore | 🚀 ci | 🚨 warnings | 🔒️ security | 🚚 move | 🏗️ architecture | ➕ add-dep | ➖ remove-dep | 🌱 seed | 🧑‍💻 dx | 🏷️ types | 👔 business | 🚸 ux | 🩹 minor-fix | 🥅 errors | 🔥 remove | 🎨 structure | 🚑️ hotfix | 🎉 init | 🔖 release | 🚧 wip | 💚 ci-fix | 📌 pin-deps | 👷 ci-build | 📈 analytics | ✏️ typos | ⏪️ revert | 📄 license | 💥 breaking | 🍱 assets | ♿️ accessibility | 💡 comments | 🗃️ db | 🔊 logs | 🔇 remove-logs | 🙈 gitignore | 📸 snapshots | ⚗️ experiment | 🚩 flags | 💫 animations | ⚰️ dead-code | 🦺 validation | ✈️ offline

Split Criteria

Different concerns | Mixed types | File patterns | Large changes

Notes

  • Only commit staged files if any exist
  • Analyze diff for splitting suggestions
  • NEVER add Claude signature to commits
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. 5d ago First seen · 66 lines · 11 tokens per session scan A ab7934059cd0

Subscribe to this mod's changes

git-commit is a command published in the GitHub repository jakreymyers/awesome-claude-statusline (4 stars, last pushed 10mo ago), licensed MIT. It adds 11 tokens to every session and 558 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-31.