smart-commit

smart-commit is a skill for Claude Code, Codex from wunki/dotfiles. It costs 134 tokens per session (1,617 once invoked), scanned A, original, MIT.

A guide for sorting uncommitted Git changes into separate commits, where each commit contains one logical change.

In plain words
What is it for?
Use it to split staged and unstaged work into focused commits and describe each one.
Why use it?
It helps organise mixed changes and write clear conventional commit messages.

Skill for Claude CodeCodex

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

Good fit Use it to split staged and unstaged work into focused commits and describe each one.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wunki/dotfiles/smart-commit"><img src="https://agentmods.dev/badge/skills/wunki/dotfiles/smart-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,617 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.00134 $0.01617
Opus 5.5 $0.00054 $0.00647
Sonnet 5.5 $0.00027 $0.00323
Haiku 4.5 $0.00013 $0.00162

Measured 1mo ago against content hash ae460ac5595e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

agents/skills/smart-commit/SKILL.md · 174 lines

How it starts

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

Smart Commit — Atomic Commit Grouping

Analyze all uncommitted changes in the working directory, intelligently group related changes into atomic commits, and generate conventional commit messages for each group with clear motivation and context.

Step 1: Gather All Uncommitted Changes

# Get full status including staged, unstaged, and untracked files
git status --short

# Get diff of unstaged tracked changes
git diff

# Get diff of staged changes
git diff --cached

# Get list of untracked files
git ls-files --others --exclude-standard

Note: all four commands are needed to get a complete picture. Untracked files appear only in git ls-files --others. Staged changes appear only in git diff --cached.

Step 2: Analyze and Group Changes

For each changed file, analyze:

  • Purpose: What is this change doing? (feature, fix, refactor, etc.)
  • Scope: Which module, component, or feature does it affect?
  • Relationship: Which other changes are logically related?

Group changes into atomic commits using these rules:

Grouping Rules

  1. Single Responsibility: Each commit does ONE logical thing.
  2. Feature Coherence: Changes to the same feature belong together.
  3. Type Coherence: Do not mix feat with fix in the same commit unless tightly coupled.
  4. File Relationships:
    • Component + its tests = same commit
    • Component + its styles = same commit
    • Config changes = separate commit (usually chore)
    • Documentation = separate commit (usually docs)
  5. Dependency Order: If commit B depends on commit A, A comes first.

Type Reference

  • feat: New functionality — group with related tests and types.
  • fix: Bug fix — group with regression test if added.
  • refactor: Code restructuring — can be larger, but still single purpose.
  • chore: Deps, config, tooling — usually standalone.
  • docs: Documentation only — standalone.
  • style: Formatting — standalone, or omit if entangled with other changes.

Step 3: Present Commit Plan

Read the full file on GitHub · 174 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. 1mo ago First seen · 174 lines · 134 tokens per session scan A ae460ac5595e

Subscribe to this mod's changes

smart-commit is a skill published in the GitHub repository wunki/dotfiles (47 stars, last pushed 10d ago), licensed MIT. It adds 134 tokens to every session and 1,617 once invoked, about $0.0005 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-30.