git-commit-generator

A skill that reads staged Git changes and writes a Conventional Commit message, a standard format such as `fix(auth): ...` used to describe changes consistently. It identifies the change type and includes a body or footer when relevant.

In plain words
What is it for?
Use it when changes are staged and you need a commit message describing what changed, why it changed, and any breaking changes or issue references.
Why use it?
Writing a clear commit message from a large staged diff takes time and can lead to inconsistent history. This turns the staged changes into a proposed standard-format message for review.

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/luqiang-code/claude-code-skills/git-commit-generator
Any agent
npx skills add luqiang-code/claude-code-skills --skill git-commit-generator
Clone the repo
git clone --depth 1 https://github.com/luqiang-code/claude-code-skills

Made for: Claude Code, Codex.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 533 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.00055 $0.00533
Opus 5 $0.00028 $0.00267
Sonnet 5 $0.00011 $0.00107
Haiku 4.5 $0.00006 $0.00053

Measured yesterday against content hash 62c15f5a0fd5, 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-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 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.

community-skills/git-commit-generator/SKILL.md · 67 lines

What it actually says

Git Commit Generator

Generate Conventional Commits from staged changes.

When to Use

  • Ready to commit and want a properly formatted message
  • Team enforces Conventional Commits standard
  • User mentions "commit", "conventional commit", "commit message"

When NOT to Use

  • No staged changes yet
  • Interactive rebase or amend workflows (different context)

Workflow

  1. Run git diff --cached to get staged changes
  2. Run git diff --cached --stat for file overview
  3. Analyze: determine type (feat/fix/refactor/docs/test/chore) and scope
  4. Generate commit message:
    • Type(scope): short description (under 72 chars)
    • Blank line
    • Body: WHAT changed and WHY (wrapped at 72 chars)
    • Footer: breaking changes or issue references if applicable
  5. Show the message and ask user to confirm before committing

Output Format

feat(auth): add JWT refresh token rotation

Introduce automatic refresh token rotation to prevent token replay
attacks. Old refresh tokens are invalidated when a new one is issued.

BREAKING CHANGE: /api/auth/refresh now returns { accessToken, refreshToken }
Closes #234

Key Principles

  • Type must be one of: feat, fix, refactor, docs, test, chore, perf, ci, style
  • Subject line: imperative mood ("add" not "added"), no period at end
  • Body explains WHY, not just WHAT
  • Reference issues with "Closes #N" or "Refs #N"
  • Breaking changes MUST be flagged in footer

Notes

  • If diff is large (>500 lines), suggest splitting into multiple commits
  • If no Conventional Commits type clearly fits, default to "chore"
  • Never commit automatically — always ask for confirmation
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 · 67 lines · 55 tokens per session scan A 62c15f5a0fd5

Subscribe to this mod's changes

git-commit-generator is a skill published in the GitHub repository luqiang-code/claude-code-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 55 tokens to every session and 533 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.