git-commit

git-commit is a skill for Claude Code from atretyak1985/swarmery. It costs 42 tokens per session (740 once invoked), scanned A, original, Apache-2.0.

A conventional-commit message generator for staged code changes. Conventional commits use a fixed format such as type, scope, and subject so tools and people can understand a commit's purpose.

In plain words
What is it for?
It is for writing one correctly formatted commit message per repository from the files already staged.
Why use it?
It produces consistent commit messages while refusing to describe changes when staged files may contain secrets.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md.

Part of the core plugin — 37 skills, 8 commands, 13 agents shipped together

Good fit It is for writing one correctly formatted commit message per repository from the files already staged.

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

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 13 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/git-commit"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/git-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 740 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.00042 $0.00740
Opus 5.5 $0.00017 $0.00296
Sonnet 5.5 $0.00008 $0.00148
Haiku 4.5 $0.00004 $0.00074

Measured 2mo ago against content hash 74f59bb41568, 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 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 2mo 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.

plugins/core/skills/git-commit/SKILL.md · 67 lines

How it starts

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

Purpose

Generate conventional commit messages for staged changes: a <type>(<scope>): <subject> subject line, optional bullet body, optional BREAKING CHANGE: / Closes #N footer. Message generation only — no git operations are run. Scopes come from the project's .claude/project.json -> commitScopes.

Rules

  • NEVER generate a message when staged files may contain secrets (.env, *.populated.yaml, credentials.json, *.key, *.pem, *secret*). Refuse and instruct the user to unstage them — no exceptions, no confirmation prompt.
  • Subject: imperative mood, lowercase first word, no trailing period, max 72 characters, describing the user-visible change — never "update file X".
  • One commit message per repo. Never combine scopes like feat(app,infra).
  • Never use a deprecated scope — map it to its documented replacement from the project's CLAUDE.md.
  • Add a BREAKING CHANGE: footer whenever the change breaks existing APIs, CLI flags, or port assignments.

Resources

  • Read resources/procedure.md when generating a message — the step-by-step procedure, inputs/outputs, security gate, self-check, and escalation rules.
  • Read resources/format-reference.md when picking type or scope — type/scope tables, subject rules, multi-scope handling, examples, failure modes.
  • Read examples/commit-examples.md for additional worked examples (it may contain deprecated legacy scopes such as be/fe/helm — always use current commitScopes).

How to use

What it does

Turns a staged diff into a conventional commit message: type chosen from what actually changed, scope mapped from the touched files to the project's own scope list, subject kept under 72 characters in imperative mood. It refuses outright when staged files look like they carry secrets.

When to use it

  • You finished an implementation task, staged the files, and need the commit message.
  • You squashed several commits and need one summary message.
  • You want an existing message checked against project conventions.
  • A change spans two repos and needs one correctly scoped message per repo.

Read the full file on GitHub · 67 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 67 lines · 42 tokens per session scan A 74f59bb41568

Subscribe to this mod's changes

git-commit is a skill published in the GitHub repository atretyak1985/swarmery (9 stars, last pushed 2d ago), licensed Apache-2.0. It adds 42 tokens to every session and 740 once invoked, about $0.0002 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-09-03.

Related

git-commit compared with skills from other repositories

git-commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-commitatretyak1985/swarmerySkill92d agoApache-2.0A42Claude Code
commit-messagenetopsengineer/axiomSkill5yesterdayMITA218Claude Code
claimfakoli/fakoli-pluginsSkill4yesterdayMITA22Claude Code, Codex
commit-contextrohitg00/agentmemorySkill31ktodayApache-2.0A61Claude Code
commit-historyrohitg00/agentmemorySkill31ktodayApache-2.0A49Claude Code
feature-publishomnigent-ai/omnigentSkill12ktodayApache-2.0A24Claude Code, Codex
release-noteskirodotdev/KiroCrewSkill5.1ktodayApache-2.0A21Claude Code, Codex