git-commit-message

git-commit-message is a skill for Claude Code, Codex from artivilla/agents-config. It costs 37 tokens per session (3,768 once invoked), scanned A, original, MIT.

A tool that suggests Git commit messages from staged changes. A commit is a saved set of changes in Git, and Conventional Commits are a standard format for describing what changed.

In plain words
What is it for?
Use it before committing code, from a commit-message hook, or whenever you need a message for added, changed, or deleted files.
Why use it?
It saves time reading a diff and helps keep commit messages consistent and useful to the team.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code.

Good fit Use it before committing code, from a commit-message hook, or whenever you need a message for added, changed, or deleted files.

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

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 git-commit-message

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/artivilla/agents-config/git-commit-message"><img src="https://agentmods.dev/badge/skills/artivilla/agents-config/git-commit-message.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,768 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.00037 $0.03768
Opus 5.5 $0.00015 $0.01507
Sonnet 5.5 $0.00007 $0.00754
Haiku 4.5 $0.00004 $0.00377

Measured 3mo ago against content hash 848ee8294eca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-commit-message 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 3mo 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/git-commit-message/SKILL.md · 442 lines

How it starts

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

Git Commit Message Generator

Auto-generates conventional commit messages from git diffs with tiered format enforcement

Purpose

Analyze staged git changes and generate concise, meaningful commit messages following a tiered Conventional Commits specification. This skill examines file modifications, additions, and deletions to infer the type and scope of changes, producing commit messages that match the importance of the change - from detailed documentation for critical features to concise messages for minor updates.

Key Innovation: Three-tier format system that balances thoroughness for critical commits (feat, fix, security) with efficiency for routine changes (docs, chore, style).

When This Skill Activates

  • When /commit-msg command is invoked
  • When invoked from a commit-msg/prepare-commit-msg hook (if installed)
  • When user requests commit message suggestions
  • When analyzing changes before creating a commit

Core Capabilities

1. Diff Analysis

  • Parse git diff --staged output
  • Identify modified, added, and deleted files
  • Analyze code changes (additions, deletions, modifications)
  • Detect patterns across multiple files

2. Change Classification

  • Determine commit type from changes:
    • feat: New features or functionality
    • fix: Bug fixes
    • security: Security fixes or hardening
    • refactor: Code restructuring without behavior change
    • docs: Documentation changes
    • style: Formatting, whitespace, code style
    • test: Adding or modifying tests
    • chore: Build process, dependencies, tooling
    • perf: Performance improvements
    • ci: CI/CD configuration changes
    • build: Build system changes
    • revert: Reverting previous commits

3. Scope Detection

  • Infer scope from file paths and patterns:
    • Directory names (e.g., api, auth, ui)
    • File name patterns (e.g., *.test.js → tests)
    • Framework conventions (e.g., components/, services/)

4. Message Generation

  • Format: type(scope): description
  • Enforce tier limits: Tier 1 summary max 50 chars; Tier 2/3 summary max 72 chars (ideal 50)
  • Use imperative mood ("add" not "added")
  • Focus on "what" and "why", not "how"
  • Provide 2-3 alternative suggestions

Read the full file on GitHub · 442 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. 3mo ago First seen · 442 lines · 37 tokens per session scan A 848ee8294eca

Subscribe to this mod's changes

git-commit-message is a skill published in the GitHub repository artivilla/agents-config (0 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 3,768 once invoked, about $0.0001 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-31.

Related

git-commit-message compared with skills from other repositories

git-commit-message next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-commit-messageartivilla/agents-configSkill05mo agoMITA37Claude Code, Codex
artifactscloudflare/skillsSkill3.6k2d agoApache-2.0A66Claude Code
skill-changelogluongnv89/asmSkill976todayMITA53Claude Code
loom-git-workflowcosmix/loomSkill664d agoMITA27Claude Code
conventional-commitnavikt/copilotSkill65todayMITA22Claude Code, Codex
configure-git-repositorypjt222/agent-almanacSkill46todayMITA78Claude Code
commit-changespjt222/agent-almanacSkill46todayMITA72Claude Code