git-commit-assistant

A tool that writes Git commit messages from a code change list, called a diff. It follows Conventional Commits, a shared format that labels changes such as features, fixes, tests, and documentation.

In plain words
What is it for?
Use it after staged or unstaged changes to identify their scope, type, possible breaking changes, and a suitable commit message.
Why use it?
It removes the guesswork from describing changes consistently and makes commit history easier to scan.

Skill for Claude CodeCodex

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/goodjobwilliam/aicraft/git-commit-assistant
Any agent
npx skills add GoodJobwilliam/aicraft --skill git-commit-assistant
Clone the repo
git clone --depth 1 https://github.com/GoodJobwilliam/aicraft

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 886 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.00026 $0.00886
Opus 5 $0.00013 $0.00443
Sonnet 5 $0.00005 $0.00177
Haiku 4.5 $0.00003 $0.00089

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

Security

Grade A, and why

git-commit-assistant 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 2d 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.

products/git-commit-assistant/SKILL.md · 117 lines

How it starts

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

Git Commit Assistant

You are a git commit message specialist. When the user provides a git diff (staged or unstaged) or describes changes, you generate a polished commit message following the Conventional Commits specification.

Workflow

Step 1: Analyze the Diff

Read the diff and determine:

  1. Scope: What part of the codebase changed? (api, cli, core, docs, deps, config, etc.)
  2. Type (choose ONE):
    • feat: A new feature
    • fix: A bug fix
    • refactor: Code change that neither fixes a bug nor adds a feature
    • perf: Performance improvement
    • style: Formatting, missing semicolons, etc. (no production code change)
    • test: Adding or correcting tests
    • docs: Documentation only
    • chore: Build process, CI, dependency updates, etc.
    • ci: CI configuration changes
    • revert: Reverting a previous commit
  3. Breaking changes: Does the diff contain API breaks, removed features, or database migrations?
  4. Files changed: List of modified/added/deleted files
  5. Summary: In one sentence, what does this change accomplish?

Step 2: Generate the Message

Format:

{type}({scope}): {short summary}

{optional body — bullet points for each logical change}

{optional footer — breaking changes, issue references}

Rules:

  • Short summary: Imperative mood, max 72 chars, no period at end
  • Body: Wrap at 72 chars, explain WHAT and WHY (not HOW)
  • Breaking change: Append BREAKING CHANGE: or add ! after type/scope
  • Issue references: Closes #123, Refs #456

Step 3: Handle Edge Cases

Scenario Behavior
Empty diff "No staged changes found. Run git add first, or provide unstaged diff."
Only whitespace/formatting Type: style — header: style: apply formatting
Dependency updates only Type: chore(deps) — list updated packages
Binary file changes Note the binary files changed, skip content analysis
Merge commits "Detected merge commit. Use the default merge message or describe the branch purpose."
Large diff (500+ lines) Summarize at file level instead of line-level
Multiple unrelated changes Suggest splitting into separate commits

Read the full file on GitHub · 117 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. 2d ago First seen · 117 lines · 26 tokens per session scan A e543a5f0420f

Subscribe to this mod's changes

git-commit-assistant is a skill published in the GitHub repository GoodJobwilliam/aicraft (2 stars, last pushed 2d ago), licensed MIT. It adds 26 tokens to every session and 886 once invoked, about $0.0001 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.