commit-message-generator

commit-message-generator is a skill for Claude Code, Codex from sourav15mukherjee/skillforge-free-skills. It costs 54 tokens per session (644 once invoked), scanned A, original, MIT.

A tool that examines staged Git changes and writes a commit message using the Conventional Commits format, a shared style such as feat, fix, or docs.

In plain words
What is it for?
Creating commit messages from staged diffs, including an optional scope, a short subject, and a longer explanation when needed.
Why use it?
It removes the guesswork from choosing a commit type, scope, and concise description for the changes you are about to commit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating commit messages from staged diffs, including an optional scope, a short subject, and a longer explanation when needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sourav15mukherjee/skillforge-free-skills/commit-message-generator
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 sourav15mukherjee/skillforge-free-skills --skill commit-message-generator
Clone the repo
git clone --depth 1 https://github.com/sourav15mukherjee/skillforge-free-skills

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sourav15mukherjee/skillforge-free-skills/commit-message-generator"><img src="https://agentmods.dev/badge/skills/sourav15mukherjee/skillforge-free-skills/commit-message-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 644 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.00054 $0.00644
Opus 5 $0.00027 $0.00322
Sonnet 5 $0.00011 $0.00129
Haiku 4.5 $0.00005 $0.00064

Measured 8d ago against content hash a19a3ac8c2ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

commit-message-generator 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 8d 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.

commit-message-generator/SKILL.md · 83 lines

How it starts

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

Commit Message Generator

Generate well-structured conventional commit messages by analyzing staged git changes.

Workflow

  1. Check for staged changes Run git diff --cached --stat to see what's staged. If nothing is staged, tell the user and suggest they stage files first.

  2. Analyze the diff Run git diff --cached to get the full diff. Read through each file's changes carefully.

  3. Determine the commit type Based on the changes, select the appropriate type:

    • feat: New feature or capability
    • fix: Bug fix
    • refactor: Code restructuring without behavior change
    • docs: Documentation only
    • test: Adding or updating tests
    • chore: Build, CI, dependencies, tooling
    • style: Formatting, whitespace, semicolons
    • perf: Performance improvement
  4. Determine scope (optional) If the changes are localized to a specific module, component, or area, include a scope: feat(auth): ...

  5. Write the subject line

    • Use imperative mood: "add" not "added" or "adds"
    • Keep under 72 characters
    • Don't end with a period
    • Be specific: "add OAuth2 Google login flow" not "update auth"
  6. Write the body (if needed) For non-trivial changes, add a body separated by a blank line:

    • Explain WHY, not what (the diff shows what)
    • Wrap at 72 characters
    • Use bullet points for multiple reasons
  7. Check for breaking changes If the change breaks backward compatibility, add:

    BREAKING CHANGE: description of what breaks and migration path
    
  8. Present the commit message Show the full message to the user and ask for confirmation before committing.

Rules

  • Never skip the diff analysis — always base the message on actual changes
  • If changes span multiple unrelated concerns, suggest splitting into separate commits
  • Always use imperative mood in the subject
  • Subject line must be under 72 characters
  • Use a HEREDOC for the commit command to preserve formatting
  • Include Co-Authored-By if the user requests it

Read the full file on GitHub · 83 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 83 lines · 54 tokens per session scan A a19a3ac8c2ec

Subscribe to this mod's changes

commit-message-generator is a skill published in the GitHub repository sourav15mukherjee/skillforge-free-skills (5 stars, last pushed 5mo ago), licensed MIT. It adds 54 tokens to every session and 644 once invoked, about $0.0003 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.