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 1mo 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 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.

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. 1mo 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 4mo 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

Other skills, from other repositories

loom-git-workflow

Git operations guidance including branching strategies, commit conventions, merge workflows, conflict resolution, and worktree management.

cosmix/loom · 27 tokens

conventional-commit

Generer conventional commit-meldinger med Nav-relevante scopes og breaking change-format.

navikt/copilot · 22 tokens

commit-changes

Stage, commit, and amend changes with conventional commit messages. Covers reviewing changes, selective staging, writing descriptive commit messages using HEREDOC format, and verifying commit history. Use when saving a logical unit of work to version control, creating a commit with a conventional message, amending the…

pjt222/agent-almanac · 72 tokens

configure-git-repository

Configure a Git repository with proper .gitignore, branch strategy, commit conventions, hooks, and remote setup. Covers initial setup and common patterns for R, Node.js, and Python projects. Use when initializing version control for a new project, adding a .gitignore for a specific language or framework, setting up…

pjt222/agent-almanac · 78 tokens

squash-branch

Review commits in a branch, date range, or recent history; group related work into a clean linear history; and verify that the final tree is unchanged. Use when the user asks to squash commits, clean Git history, combine WIP commits, organize today's commits, or prepare a readable commit stack.

jcottam/agent-resources · 66 tokens

spec-apply

Implement an OpenSpec change's tasks in parallel - read the task queue, plan file-disjoint waves, dispatch one agent per task into its own worktree, verify, tick the checkbox, commit, repeat. Use when the user says "apply the change", "implement the change", "run the tasks", "work the tasks in parallel", "fan out the…

pivoshenko/pivoshenko.ai · 188 tokens