smart-commit

smart-commit is a skill for Claude Code, Codex from RockaRhymeLLC/claude-code-skills. It costs 59 tokens per session (1,235 once invoked), scanned A, original, MIT.

A tool that reads staged Git changes and drafts a clear commit message describing both what changed and why. It supports conventional commit categories such as feature, fix, test, and documentation.

In plain words
What is it for?
Use it when changes are staged and you need a focused commit message, with optional refinement before committing.
Why use it?
It removes the need to summarize multi-file changes manually and helps keep commit history consistent and understandable.

Skill for Claude CodeCodex

Part of the bmobot-skills plugin — 7 skills 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 skills/rockarhymellc/claude-code-skills/smart-commit
Any agent
npx skills add RockaRhymeLLC/claude-code-skills --skill smart-commit
Clone the repo
git clone --depth 1 https://github.com/RockaRhymeLLC/claude-code-skills

Made for: Claude Code, Codex.

Or install bmobot-skills, the plugin that ships this one along with the rest of its 7 skills.

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 smart-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockarhymellc/claude-code-skills/smart-commit.svg)](https://agentmods.dev/skills/rockarhymellc/claude-code-skills/smart-commit)
Your own site
<a href="https://agentmods.dev/skills/rockarhymellc/claude-code-skills/smart-commit"><img src="https://agentmods.dev/badge/skills/rockarhymellc/claude-code-skills/smart-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,235 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.00059 $0.01235
Opus 5 $0.00030 $0.00617
Sonnet 5 $0.00012 $0.00247
Haiku 4.5 $0.00006 $0.00123

Measured 3d ago against content hash 511a6ad025c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

smart-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 3d 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.

skills/smart-commit/SKILL.md · 169 lines

How it starts

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

Smart Commit Message Generator

Generate clear, well-structured commit messages by analyzing your staged changes.

When to Activate

  • User asks to commit with a good message
  • User says /smart-commit or "commit this" or "write a commit message"
  • User has staged changes and wants help describing them

Instructions

Step 1: Check Staged Changes

# What's staged?
git diff --cached --stat

# Detailed diff of staged changes
git diff --cached

# Any unstaged changes the user might want to include?
git diff --stat

If nothing is staged:

  1. Show unstaged changes with git diff --stat
  2. Ask the user what to stage, or suggest git add -p for selective staging
  3. Stop until changes are staged

Step 2: Analyze the Diff

Read the staged diff and determine:

  1. Type: What kind of change is this?

    • feat — New functionality
    • fix — Bug repair
    • refactor — Restructuring without behavior change
    • perf — Performance improvement
    • test — Adding or fixing tests
    • docs — Documentation only
    • chore — Build, CI, dependencies, config
    • style — Formatting, whitespace (no logic change)
  2. Scope (optional): What area of the codebase?

    • Module name, component, feature area
    • Only include if the project uses scoped commits
  3. Subject: One line summarizing the change

    • Imperative mood: "Add feature" not "Added feature"
    • Under 50 characters (hard limit: 72)
    • Lowercase first word (after type prefix)
    • No period at the end
  4. Body (if needed): Explain WHY, not WHAT

    • The diff shows WHAT changed — the message should explain WHY
    • Include motivation, context, or trade-offs
    • Wrap at 72 characters
    • Separate from subject with blank line
  5. Footer (if applicable):

    • BREAKING CHANGE: for breaking changes
    • Closes #123 for issue references
    • Co-authored-by: for pair programming

Step 3: Check Recent History

# Match the project's commit style
git log --oneline -10

Read the full file on GitHub · 169 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. 3d ago First seen · 169 lines · 59 tokens per session scan A 511a6ad025c7

Subscribe to this mod's changes

smart-commit is a skill published in the GitHub repository RockaRhymeLLC/claude-code-skills (1 stars, last pushed 6mo ago), licensed MIT. It adds 59 tokens to every session and 1,235 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.

Related

Other skills, from other repositories

aif-commit

Create conventional commit messages by analyzing staged changes. Generates semantic commit messages following the Conventional Commits specification. Use when user says "commit", "save changes", or "create commit".

lee-to/ai-factory · 41 tokens

git-commit

Run git commit using Angular conventional commit format. Use when the user asks to commit, create a commit, /git-commit, or save changes to git. Also trigger on "snapshot this", "save my work", "check in changes", "wrap up", "ship this locally", or whenever the user finishes a logical unit of work and the tree is…

pivoshenko/pivoshenko.ai · 90 tokens

github

Manages all git operations (commit, push, branch management, PR creation) in a standardized, safe, and consistent way. Automatically runs the code-review skill before any commit. Enforces Conventional Commits standard. Handles the full lifecycle: branch → review → commit → push → PR.

omergocmen/vibe-coder-kit · 60 tokens

git-conventions

The Lossless Group's git commit message conventions — structured headers with action verbs and effort groupings, paragraph-spaced bodies that explain impact before implementation, and "Also included" riders for minor changes. Use when writing commit messages, reviewing commits, or when the user mentions "commit…

lossless-group/lossless-agent-skills · 75 tokens

hello-commit

Custom commit workflow that replaces the built-in aif-commit. Demonstrates the skill replacement feature of the extension system.

lee-to/ai-factory · 28 tokens

iso-commit

Write a commit message and commit. Conventional Commits subject (type(scope): message), body is a plain dot list of what the work does — only when the subject doesn't already cover it. No Co-Authored-By, no AI attribution, no LLM filler. Stages everything by default; --staged commits the index only. Use when invoked…

IsaiaScope/ai · 103 tokens