commit

commit is a command for Claude Code from KhaledSaeed18/dotclaude. It costs 77 tokens per session (581 once invoked), scanned A, original, MIT.

A Git command workflow for creating exactly one commit from current changes. It reads the diff, follows the repository's commit rules and checks, stages selected files, and writes a conventional commit message.

In plain words
What is it for?
Use it when a piece of work is ready to commit, especially when the repository requires a particular message format, hooks, or a split between separate logical changes.
Why use it?
It prevents unread or unrelated files, generated output, secrets, and dependencies from being included accidentally. It also keeps the commit history understandable and does not push anything to a remote repository.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the git plugin — 9 skills, 3 commands shipped together

Good fit Use it when a piece of work is ready to commit, especially when the repository requires a particular message format, hooks, or a split between separate logical changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/khaledsaeed18/dotclaude/commit
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.

Clone the repo
git clone --depth 1 https://github.com/KhaledSaeed18/dotclaude

Made for: Claude Code.

Or install git, the plugin that ships this one along with the rest of its 9 skills, 3 commands.

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 commit

README.md
[![agentmods](https://agentmods.dev/badge/commands/khaledsaeed18/dotclaude/commit/github.svg)](https://agentmods.dev/commands/khaledsaeed18/dotclaude/commit)
Your own site
<a href="https://agentmods.dev/commands/khaledsaeed18/dotclaude/commit"><img src="https://agentmods.dev/badge/commands/khaledsaeed18/dotclaude/commit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commit

Your own site · 80×15
<a href="https://agentmods.dev/commands/khaledsaeed18/dotclaude/commit"><img src="https://agentmods.dev/badge/commands/khaledsaeed18/dotclaude/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 581 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00077 $0.00581
Opus 5.5 $0.00031 $0.00232
Sonnet 5.5 $0.00015 $0.00116
Haiku 4.5 $0.00008 $0.00058

Measured 24d ago against content hash f4f479e054fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 24d 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-plugin/plugins/git/commands/commit.md · 42 lines

What it actually says

Context

Hint: $ARGUMENTS

Status:

!git status --short 2>/dev/null | head -40

Branch and recent style:

!git branch --show-current 2>/dev/null; git log --oneline -8 2>/dev/null

Staged and unstaged summary:

!git diff --staged --stat 2>/dev/null | tail -5; echo '---'; git diff --stat 2>/dev/null | tail -5

Task

Apply the git-commit skill end to end for exactly one commit. In short:

  1. Read the actual diffs (git diff, git diff --staged). Do not commit what you have not read.
  2. Find and obey the repo's rules: commitlint config, pre-commit or husky hooks, CONTRIBUTING, the message style visible in the log above.
  3. If the changes contain more than one logical unit, propose the split and commit only the first unit (or the one the hint names); say what remains.
  4. Stage files explicitly by path. Never git add -A or git add .. Never stage generated output, secrets, or dependencies; flag anything untracked that should be ignored.
  5. Write the message: conventional type and scope matching the repo's convention, subject in the imperative under 72 characters, a body that explains why and what a reviewer needs to know. No AI or co-author mentions of any kind.
  6. Show the file list and the full message, then ask for a yes before running git commit. If a hook fails, fix the cause and retry; never --no-verify.
  7. Report the commit hash and subject. Do not push; that is /pr or an explicit request.

If there is nothing to commit, say so and stop.

Inspired by

The role and scope follow the commit-commands plugin's /commit command in Anthropic's claude-code repository. That repository is not open-licensed, so nothing is copied from it; every line here was written for this registry.

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. 24d ago First seen · 42 lines · 77 tokens per session scan A f4f479e054fa

Subscribe to this mod's changes

commit is a command published in the GitHub repository KhaledSaeed18/dotclaude (5 stars, last pushed 2d ago), licensed MIT. It adds 77 tokens to every session and 581 once invoked, about $0.0003 per session on Opus 5.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-09-22.