git-commit-guide

git-commit-guide is a skill for Claude Code, Codex from Grid0723/skills. It costs 48 tokens per session (831 once invoked), scanned A, original, MIT.

A guide for making Git commits, which are saved snapshots of code changes, in small logical units with consistent messages and pre-commit checks.

In plain words
What is it for?
Use it when deciding when to commit, choosing a commit type such as feature or fix, and checking linting, tests, and the change scope first.
Why use it?
It makes changes easier to review, understand, revert, and connect to release versioning.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when deciding when to commit, choosing a commit type such as feature or fix, and checking linting, tests, and the change scope first.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/grid0723/skills/git-commit-guide"><img src="https://agentmods.dev/badge/skills/grid0723/skills/git-commit-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 831 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.00048 $0.00831
Opus 5.5 $0.00019 $0.00332
Sonnet 5.5 $0.00010 $0.00166
Haiku 4.5 $0.00005 $0.00083

Measured 1mo ago against content hash 1dfdc6959541, 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-guide 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.

git/git-commit-guide/SKILL.md · 75 lines

What it actually says

git-commit-guide

定义提交的时机和格式。项目专属的前缀约定(如 feat(backend): / feat(xxx):)由各项目 AGENTS.md 声明。

Leading Words

术语 定义
一个 commit 只做一件事 单次提交只包含一个逻辑变更,方便 review 和回退
小步快跑 完成一个小功能点立即提交,不攒着
自检门 提交前必须通过检查清单——lint、测试、变更范围

提交时机

时机 示例
完成一个小功能点 "新增 ETF 数据获取器"
修复一个 bug "修复 K 线日期格式解析错误"
重构一个模块 "提取公共清洗逻辑为独立模块"

信息格式(通用部分)

<type>: <简短描述>

- 变更点 1
- 变更点 2
类型 含义
feat 新功能
fix Bug 修复
refactor 重构(不改变功能)
docs 文档
chore 构建/依赖/工具
test 测试
style 格式(不影响逻辑)

项目专属前缀

前缀格式由各项目 AGENTS.md 声明。 例如:

  • TDX 项目:feat(xxx): 单项目格式
  • trading_assistant:feat(backend): / feat(frontend): 前后端区分

选择提交前缀时,优先匹配当前项目的 AGENTS.md 声明;无声明则使用通用类型(feat/fix/refactor 等)。

提交类型 → 版本号递增(SemVer 联动)

提交类型决定下一次发布时的版本号递增(见 changelog-guide 校验):

提交类型 SemVer 递增
feat 次版本号 Y(新增向下兼容功能)
fix 修订号 Z(修复问题,不影响 API)
feat!: / 含 BREAKING CHANGE 主版本号 X(不兼容修改)
refactor / docs / chore / style / test 无版本递增(除非累计显著变更)

! 前缀表示破坏性变更——如 feat!: 重命名 getPrice 为 fetchPrice。含不兼容修改的提交必须在 message 中标注,否则版本号无法正确递增。

提交前自检

在 git commit 之前:

  • 变更是否只属于一个逻辑主题?
  • 提交信息是否描述了"做了什么"和"为什么"?
  • 项目 lint 是否通过?
  • 是否遵守了 git-guardrails 的安全约束?
  • 是否含不兼容修改?若是,已用 ! 或 BREAKING CHANGE 标注?
  • 功能级变更是否需要同步更新 CHANGELOG(格式校验见 changelog-guide)?
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 · 75 lines · 48 tokens per session scan A 1dfdc6959541

Subscribe to this mod's changes

git-commit-guide is a skill published in the GitHub repository Grid0723/skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 831 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-08-31.

Related

Other skills, from other repositories

changelog

Auto-generate a changelog from git commits and sprint data. Internal and player-facing versions.

Donchitos/Claude-Code-Game-Studios · 22 tokens

development-scheduler

A workflow for coordinating multi-role coding work through Herdr, a task scheduler, and repo-harness sessions. It assigns implementation, review, and handoff tasks while checking permissions and evidence.

Ancienttwo/repo-harness · 52 tokens

git-commit

Generate conventional commit messages for Java projects. Use when user says "commit", "create commit", "commit changes", or after completing code changes that need to be committed.

decebals/claude-code-java · 38 tokens

conventional-commits

Use when uncommitted changes need to be split into atomic, conventional commits ordered for review. Triggers on "commit this", "make commits", "clean up commits", "commit the changes". In Hedgehog, each Loop step is already meant to be its own commit — this skill matters most when a Correction Protocol fast-forward…

skyf0xx/hedgehog · 88 tokens

pr-writing

Use whenever writing a PR title/description, a commit message body, a code review comment, or an issue — in Hedgehog's own repo or any consuming project. Triggers on "open a PR", "write the PR description", "comment on this PR", "file an issue". Covers writing style (terse, info-dense, Simplified Technical English)…

skyf0xx/hedgehog · 107 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