git-commit-helper

A helper for writing Conventional Commits messages from staged Git changes. Conventional Commits use labels such as feat, fix, docs, and refactor to describe the kind of change.

In plain words
What is it for?
Use it before committing to identify the change type, draft a short imperative message, suggest splitting mixed work, and document breaking changes.
Why use it?
It produces a clear commit subject based on the actual staged diff and warns when unrelated changes should be separated.

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/ghostship25/skilllint/git-commit-helper
Any agent
npx skills add ghostship25/Skilllint --skill git-commit-helper
Clone the repo
git clone --depth 1 https://github.com/ghostship25/Skilllint

Made for: Claude Code, Codex.

Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 473 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.00029 $0.00473
Opus 5 $0.00015 $0.00236
Sonnet 5 $0.00006 $0.00095
Haiku 4.5 $0.00003 $0.00047

Measured yesterday against content hash d626089f7e9c, 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-helper 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 yesterday.

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.

examples/good/git-commit-helper/SKILL.md · 51 lines

What it actually says

What this skill does

Given a staged git diff (git diff --staged), this skill drafts a commit message following the Conventional Commits format (feat:, fix:, docs:, refactor:, chore:, etc.), and flags when a diff mixes unrelated concerns that should probably be split into multiple commits.

Usage

  1. Run git diff --staged and read the output.
  2. Identify the primary type of change (feature, fix, refactor, docs, chore).
  3. Draft a subject line under 72 characters in the imperative mood (e.g. "Add retry logic to upload handler", not "Added" or "Adds").
  4. If the diff touches more than one unrelated area (e.g. a bugfix AND a new feature), suggest splitting into separate commits with git add -p.
  5. For breaking changes, add a BREAKING CHANGE: footer explaining the impact.

Example

Given a diff that adds retry logic to an HTTP client:

feat(http-client): add exponential backoff retry logic

Requests that fail with a 5xx status now retry up to 3 times with
exponential backoff before surfacing an error to the caller.

Notes

  • Never fabricate a commit message for changes you haven't actually seen — always read the diff first.
  • If the user hasn't staged anything, suggest git add before drafting a message rather than guessing at intent.
  • Keep subject lines under 72 characters; wrap body text at ~72 columns.
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. yesterday First seen · 51 lines · 29 tokens per session scan A d626089f7e9c

Subscribe to this mod's changes

git-commit-helper is a skill published in the GitHub repository ghostship25/Skilllint (2 stars, last pushed 16d ago), licensed MIT. It adds 29 tokens to every session and 473 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.