git-commit-convention

git-commit-convention is a skill for Claude Code, Codex from 7-e1even/learn-agent. It costs 32 tokens per session (418 once invoked), scanned A, original, MIT.

A guide for writing Git commit messages using Conventional Commits, a shared format that labels changes such as features, fixes, tests, documentation, and maintenance.

In plain words
What is it for?
Use it to choose commit types and scopes, write concise subjects and useful explanations, record issue links or breaking changes, and decide when work should be split into multiple commits.
Why use it?
It makes project history easier to scan and helps separate unrelated changes so individual commits can be reviewed or reverted more safely.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to choose commit types and scopes, write concise subjects and useful explanations, record issue links or breaking changes, and decide when work should be split into multiple commits.

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

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-convention

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/7-e1even/learn-agent/git-commit-convention"><img src="https://agentmods.dev/badge/skills/7-e1even/learn-agent/git-commit-convention.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 418 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00032 $0.00418
Opus 5.5 $0.00013 $0.00167
Sonnet 5.5 $0.00006 $0.00084
Haiku 4.5 $0.00003 $0.00042

Measured 1mo ago against content hash 3f9d69f9da8c, 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-convention 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.

notes/s10_prompt_assembly/skills/git-commit-convention/SKILL.md · 46 lines

What it actually says

Git 提交规范

格式

<type>(<scope>): <subject>

<body>

<footer>
  • type 必选,scope 可选(改动涉及的模块/目录名),subject 必选。
  • subject 用祈使句("add" 不是 "added"),不加句号,不超过 50 字符。
  • body 讲为什么改,不复述 diff 里能看到的"改了什么"。
  • 一次提交只做一件事:重构和功能修改不混在同一个提交里。

type 怎么选

type 用于
feat 新功能(用户可感知的行为变化)
fix 修 bug(引用 issue 编号写进 footer)
refactor 不改行为的结构调整
test 只增改测试
docs 只改文档/注释
chore 构建、依赖、CI 等工程杂务

拿不准 feat 还是 fix:问"用户之前的预期是什么"——之前就该这样但没做到 = fix;之前没有这个预期 = feat。

  • 不兼容变更:以 BREAKING CHANGE: 开头,说明迁移方法。
  • 关联 issue:Closes #123。

提交前自查

  1. git diff --staged 过一遍:有没有混进无关文件(调试代码、锁文件意外变更)?
  2. 这个提交单独 revert 时,代码库还能编译/测试通过吗?不能 → 拆分方式有问题。
  3. subject 能让三个月后的自己一眼看懂吗?
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 · 46 lines · 32 tokens per session scan A 3f9d69f9da8c

Subscribe to this mod's changes

git-commit-convention is a skill published in the GitHub repository 7-e1even/learn-agent (287 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 418 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-30.

Related

Other skills, from other repositories

conventional-git

Conventional Commits v1.0.0 branch naming and commit message standards for GitHub and GitLab projects. Use when creating branches, writing commits, generating commit messages, reviewing branch conventions, or setting up changelog automation. Apply when your project needs consistent git history, SemVer-driven releases…

hssh8917/cc-skills · 77 tokens

adk-git

Writes commit messages and pull request descriptions for the adk-python repository: Conventional Commits types and scopes, subject lines that say why a change was made, and the linked-issue and testing-plan sections the PR template requires. Use when writing or rewording a commit message, squashing commits before a…

google/adk-python · 138 tokens

work

Handle issue/PR work items with worktree isolation. Triggered by "/work [issuelink|description]" to start focused work.

x-cmd/x-cmd · 29 tokens

meta-pre-commit-quality-gate

Run three quality gates (ruff + mypy + pytest) in parallel over the staged diff, then arbitrate a single BLOCK/APPROVE verdict. Use before committing changes locally when you want a comprehensive pre-commit gate beyond per-file linting — exactly the same gate set CI enforces.

opensquilla/opensquilla · 68 tokens

oma-scm

Manage Git branches, merges, conflicts, commits, and release baselines. Use for repository history and change-management operations.

first-fluke/oh-my-agent · 28 tokens

commit

Skill "commit" from clacky-ai/openclacky, covering smart commit skill, critical requirement: single-line commits only, core philosophy, usage and process steps.

clacky-ai/openclacky · 0 tokens