commit

A command for committing changes that have already been staged in Git, with a generated Conventional Commits message.

In plain words
What is it for?
Use it to preview or create commits, optionally include an issue or specification reference, and commit submodule changes together with the main project.
Why use it?
It saves you from writing commit messages and handles commits in both individual repositories and projects containing submodules.

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/shdennlin/agent-plugins/commit
Clone the repo
git clone --depth 1 https://github.com/shdennlin/agent-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 832 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.00832
Opus 5 $0.00005 $0.00416
Sonnet 5 $0.00002 $0.00166
Haiku 4.5 $0.00001 $0.00083

Measured yesterday against content hash 7074a8d057e5, 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/git-workflow/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

Commit staged changes with auto-generated Conventional Commits messages. Works in single repos and superprojects with submodules.

Arguments

Parse the following from $ARGUMENTS:

  • --spec or -s - Optional: spec name to include in commit message
  • --issue or -i - Optional: issue ID to include in commit message (e.g., #123, PROJ-456)
  • --dry-run - Optional: show planned commits without executing
  • --no-confirm - Optional: show proposal and ask for confirmation before committing (default: auto-confirm)
  • --help or -h - Show usage information and exit

Instructions

Step 1: Parse Arguments

From $ARGUMENTS, extract:

  1. help: if --help or -h is present, show the usage information below and stop. Do NOT delegate to the agent.
  2. spec: value after --spec or -s
  3. issue: value after --issue or -i
  4. dry-run: boolean, true if --dry-run present
  5. no-confirm: boolean, true if --no-confirm present

Help Output

If --help or -h is present, display this and stop:

Usage: /git-workflow:commit [options]

Commit staged changes with auto-generated Conventional Commits message.
Works in single repos and superprojects with submodules.

Options:
  -s, --spec <name>     Spec name to mention in commit message
  -i, --issue <id>      Issue ID to reference in commit message (e.g., #123)
  --dry-run             Show planned commits without executing
  --no-confirm          Show proposal and ask for confirmation (default: auto-confirm)
  -h, --help            Show this help message

Examples:
  /git-workflow:commit                              Commit staged changes
  /git-workflow:commit -s auth-flow                 With spec reference
  /git-workflow:commit -i "PROJ-123"                With issue reference
  /git-workflow:commit -s auth-flow -i "#123"       With both references
  /git-workflow:commit --dry-run                    Preview without committing

Step 2: Detect Mode

Determine if this is a single repo or superproject:

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 7074a8d057e5

Subscribe to this mod's changes

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