commit

A Git command that reviews staged changes—the changes prepared for the next commit—and proposes a commit message in the conventional format.

In plain words
What is it for?
Use it to inspect staged code changes, write a message such as “fix: handle empty input,” and commit them after confirmation.
Why use it?
It saves time writing consistent commit messages while asking for approval before creating the commit.

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/sgaunet/claude-plugins/commit
Clone the repo
git clone --depth 1 https://github.com/sgaunet/claude-plugins
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 929 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.00010 $0.00929
Opus 5 $0.00005 $0.00464
Sonnet 5 $0.00002 $0.00186
Haiku 4.5 $0.00001 $0.00093

Measured yesterday against content hash 4045036f012d, 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 yesterday.

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.

plugins/software-engineering/commands/commit.md · 105 lines

How it starts

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

Git Commit Command

Generate a git commit for staged changes using conventional commit format. This command analyzes the current git state, creates an appropriate commit message, and executes the commit with user permission.

Process

  1. Analyze Changes: Check git status and diff to understand what's being committed:

    git status
    git diff --staged
    
  2. Generate Commit Message: Create a conventional commit message based on the changes

  3. Request Permission: Always ask user confirmation before executing the commit

  4. Execute Commit: Run the git commit command. NEVER append Co-Authored-By, Generated-by, or any attribution trailer. The commit message must contain ONLY the conventional commit message — no trailers, no co-authorship lines.

Conventional Commit Format

Structure: <type>[optional scope]: <description>

Types

  • feat: New feature or functionality
  • fix: Bug fix or error correction
  • docs: Documentation changes only
  • style: Code formatting, missing semicolons, whitespace (no logic changes)
  • refactor: Code restructuring without changing external behavior
  • test: Adding, updating, or fixing tests
  • chore: Maintenance tasks, dependency updates, build changes
  • perf: Performance improvements
  • ci: CI/CD pipeline changes
  • build: Build system or external dependency changes
  • revert: Reverting a previous commit

Scope Guidelines

  • Optional: Component, module, or area affected
  • Format: Lowercase, no spaces (use hyphens if needed)
  • Examples: auth, api, ui, database, user-management

Description Rules

  • Tense: Present tense, imperative mood ("add" not "adds" or "added")
  • Case: Lowercase start
  • Length: Under 50 characters for the subject line
  • Punctuation: No period at the end
  • Clarity: Be specific and concise

Examples

git commit -m "feat(auth): add oauth2 integration"
git commit -m "fix(api): handle null response in user endpoint"
git commit -m "docs: update installation instructions"
git commit -m "refactor(database): simplify connection pooling"
git commit -m "test(auth): add unit tests for login validation"

Read the full file on GitHub · 105 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. yesterday First seen · 105 lines · 10 tokens per session scan A 4045036f012d

Subscribe to this mod's changes

commit is a command published in the GitHub repository sgaunet/claude-plugins (16 stars, last pushed 6d ago), licensed MIT. It adds 10 tokens to every session and 929 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.