commit-message

commit-message is a skill for Claude Code from MasonEgger/bpe-claude-code-plugin. It costs 18 tokens per session (738 once invoked), scanned A, original, MIT.

A command that examines staged Git changes and writes a proposed commit message to a file. Staged changes are the edits already selected for the next Git commit.

In plain words
What is it for?
Use it to create commit-msg.md from the staged diff, including what changed and why. You can then pass that file to Git with git commit -F commit-msg.md.
Why use it?
It removes the need to manually inspect the diff and match the repository's existing commit style. It also keeps unstaged work out of the message.

Skill for Claude Code

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

Part of the bpe plugin — 13 skills, 3 agents shipped together

Good fit Use it to create commit-msg.md from the staged diff, including what changed and why. You can then pass that file to Git with git commit -F commit-msg.md.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masonegger/bpe-claude-code-plugin/commit-message
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.

Any agent
npx skills add MasonEgger/bpe-claude-code-plugin --skill commit-message
Clone the repo
git clone --depth 1 https://github.com/MasonEgger/bpe-claude-code-plugin

Made for: Claude Code.

Or install bpe, the plugin that ships this one along with the rest of its 13 skills, 3 agents.

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-message

README.md
[![agentmods](https://agentmods.dev/badge/skills/masonegger/bpe-claude-code-plugin/commit-message/github.svg)](https://agentmods.dev/skills/masonegger/bpe-claude-code-plugin/commit-message)
Your own site
<a href="https://agentmods.dev/skills/masonegger/bpe-claude-code-plugin/commit-message"><img src="https://agentmods.dev/badge/skills/masonegger/bpe-claude-code-plugin/commit-message/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-message

Your own site · 80×15
<a href="https://agentmods.dev/skills/masonegger/bpe-claude-code-plugin/commit-message"><img src="https://agentmods.dev/badge/skills/masonegger/bpe-claude-code-plugin/commit-message.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 738 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.00018 $0.00738
Opus 5.5 $0.00007 $0.00295
Sonnet 5.5 $0.00004 $0.00148
Haiku 4.5 $0.00002 $0.00074

Measured 2mo ago against content hash 09ddc93d841f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

commit-message 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 2mo 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.

bpe/skills/commit-message/SKILL.md · 80 lines

How it starts

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

Commit Message Command

Inspect the staged changes, write a commit message that captures the why of the change, and save it to commit-msg.md at the repo root for the user to feed into git commit -F commit-msg.md.

Step 1: Inspect the Changes

Run these in parallel:

  • git status: see all untracked files and modifications.
  • git diff --staged: the exact set of changes that will be committed.
  • git diff: what is modified but NOT yet staged. Do not narrate work that is in this diff but not the staged one.
  • git log --oneline -10 and git log -3 --pretty=full: match the repository's commit-message style and signing/conventions.

Step 2: Identify the Why

Analyze the staged diff. Answer:

  • What problem does this commit solve, or what capability does it add?
  • Why is this approach the right one, only if non-obvious from the code.
  • Was anything explicitly NOT changed that a reader might expect (deferred, out of scope, separate commit)?

If the user passed an argument, treat it as a focusing hint; bias the message toward the threads they named, not the full diff.

Step 3: Compose the Message

Format:

  • Subject line: imperative mood, ~50 characters target, ~72 characters hard cap. No trailing period.
  • Blank line.
  • Body: one or more paragraphs, wrapped at ~72 characters. Lead with the why (the problem solved or the capability added), then the what only when not obvious from the diff. Use bulleted lists where they actually help; flowing prose otherwise.

Avoid:

  • Restating WHAT the diff already says when the WHY is obvious.
  • Listing every file changed.
  • Marketing language ("dramatically improves", "robust", "comprehensive", "powerful").
  • Self-references like "this commit" or "this PR"; the message is the commit.
  • Co-authored-by or AI-attribution trailers unless the user explicitly asks.
  • Bumping versions, regenerating lockfiles, or any side action; this command only writes the message.

Match the repository's existing style observed in git log (subject-line case, conventional-commits prefix or not, trailers).

Read the full file on GitHub · 80 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. 2mo ago First seen · 80 lines · 18 tokens per session scan A 09ddc93d841f

Subscribe to this mod's changes

commit-message is a skill published in the GitHub repository MasonEgger/bpe-claude-code-plugin (7 stars, last pushed 27d ago), licensed MIT. It adds 18 tokens to every session and 738 once invoked, about $0.0001 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-08-31.