git-commit

A command that creates a Git commit, which is a saved snapshot of changes in a code repository, using the Conventional Commits naming format.

In plain words
What is it for?
Use it to review current changes, stage the right files, and create a correctly formatted commit without pushing it to a remote repository.
Why use it?
It provides a consistent commit message and helps ensure that only the intended files are included.

Command

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/adriannoes/awesome-agentic-ai/git-commit
Clone the repo
git clone --depth 1 https://github.com/adriannoes/awesome-agentic-ai
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 328 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.00000 $0.00328
Opus 5 $0.00000 $0.00164
Sonnet 5 $0.00000 $0.00066
Haiku 4.5 $0.00000 $0.00033

Measured 2d ago against content hash b444583ba14b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

cursor-claude-codex/commands/git-commit.md · 32 lines

What it actually says

Git Commit

Overview

Create a git commit for the current changes using Conventional Commits-style format.

Source: mitsuhiko/agent-stuff (Apache-2.0)

Format

<type>(<scope>): <summary>

  • type (required): feat for new features, fix for bug fixes. Other common types: docs, refactor, chore, test, perf.
  • scope (optional): Short noun in parentheses for the affected area (e.g., api, parser, ui).
  • summary (required): Short, imperative, ≤ 72 chars, no trailing period.

Rules

  • Body is optional. If needed, add a blank line after the subject and write short paragraphs.
  • Do NOT include breaking-change markers or footers.
  • Do NOT add sign-offs.
  • Only commit; do NOT push unless explicitly requested.
  • If unclear whether a file should be included, ask the user which files to commit.

Steps

  1. Review git status and git diff to understand current changes
  2. (Optional) Run git log -n 50 --pretty=format:%s to see commonly used scopes
  3. If ambiguous extra files exist, ask the user for clarification before committing
  4. Stage only the intended files
  5. Run git commit -m "<type>(<scope>): <summary>" (and -m "<body>" if needed)
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 · 32 lines · 0 tokens per session scan A b444583ba14b

Subscribe to this mod's changes

git-commit is a command published in the GitHub repository adriannoes/awesome-agentic-ai (53 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 328 tokens. 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.