commit

commit is a command for coding agents from fusengine/agents. It costs 31 tokens per session (2,840 once invoked), scanned A, original, MIT.

A Git workflow command that creates Conventional Commits by examining staged changes, recent commit style, and the current branch. It can enforce GitHub Flow, where work is developed on separate branches and merged through review.

In plain words
What is it for?
Use it to detect the commit type and scope, create or select a feature branch when needed, commit the staged work, and continue through pull-request and release steps.
Why use it?
It removes much of the guesswork from writing commits and helps keep protected branches from receiving direct changes. Security checks and pull-request steps are included in the broader flow.

Command

Part of the fuse-commit-pro plugin — 4 skills, 10 commands, 1 agent shipped together

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/fusengine/agents/commit
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents

Or install fuse-commit-pro, the plugin that ships this one along with the rest of its 4 skills, 10 commands, 1 agent.

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/fusengine/agents/commit.svg)](https://agentmods.dev/commands/fusengine/agents/commit)
Your own site
<a href="https://agentmods.dev/commands/fusengine/agents/commit"><img src="https://agentmods.dev/badge/commands/fusengine/agents/commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,840 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.00031 $0.02840
Opus 5 $0.00015 $0.01420
Sonnet 5 $0.00006 $0.00568
Haiku 4.5 $0.00003 $0.00284

Measured yesterday against content hash 19f6bd3c637a, 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/commit-pro/commands/commit.md · 271 lines

How it starts

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

Smart Conventional Commit

Current State

!git status

Staged Changes

!git diff --staged --stat

Recent Commits (style reference)

!git log --oneline -5

Current Branch

!git branch --show-current

Instructions

Based on the context above, create a professional commit.

Step 0: Branch Check (GitHub Flow enforcement)

Read current branch from above.

If current branch is main, master, develop, or production:

BLOCK direct commits and propose a feature branch:

🌿 Branch Protection
───────────────────────────────
Current: <branch>
Issue: Direct commits to protected branches discouraged (GitHub Flow)
───────────────────────────────

Pre-detect commit type/scope from staged changes (Step 2 logic) to suggest branch name:
  - feat(seo) → feat/seo
  - fix(sniper) → fix/sniper
  - chore(deps) → chore/deps

Proposed branch: <type>/<scope-or-summary>

Options:
  Y → Create branch + continue commit
  N → Abort
  C → Custom branch name

If user accepts → execute git checkout -b <branch> then proceed to Step 1. If user declines → STOP, do not commit.

If current branch already a feature branch (e.g. feat/*, fix/*, chore/*, docs/*, refactor/*, perf/*, test/*, ci/*, build/*, style/*) → skip to Step 1 directly.

Exceptions (allow direct commit on main):

  • Repo has only main branch and no remote (solo prototype)
  • User explicitly passes --no-branch-check in $ARGUMENTS
  • Commit type is chore AND scope is release or version (post-commit bump commits)

Step 1: Security Check

BLOCK and output if secrets detected:

🔒 Security Alert
───────────────────────────────
Found: [file or pattern]
Action: Commit blocked
Fix: Remove sensitive data before committing

Check for:

  • .env, .env.* files
  • Patterns: password=, secret=, api_key=, token=
  • Files: *.pem, *.key, *credentials*

Step 2: Analyze and Detect

Output analysis:

📊 Analysis
───────────────────────────────
Files changed: [X]
Files staged: [Y]
Pattern detected: [type]

Read the full file on GitHub · 271 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 · 271 lines · 31 tokens per session scan A 19f6bd3c637a

Subscribe to this mod's changes

commit is a command published in the GitHub repository fusengine/agents (25 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 2,840 once invoked, about $0.0002 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-09-03.