git-commit

A Git tool that writes commit messages from your code changes. It follows Conventional Commits, a shared format that labels changes such as features, fixes, tests, and documentation.

In plain words
What is it for?
It helps create short commit subjects and optional longer explanations from `git diff` or `git status`. It is for recording feature work, bug fixes, refactoring, tests, documentation, and tool changes.
Why use it?
It removes the need to decide how to describe each change and keeps commit history consistent. This can make changes easier to scan and classify.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/jackyst0/awesome-agent-skills/git-commit
Any agent
npx skills add JackyST0/awesome-agent-skills --skill git-commit
Clone the repo
git clone --depth 1 https://github.com/JackyST0/awesome-agent-skills

Made for: Claude Code, Codex.

Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00613
Opus 5 $0.00009 $0.00307
Sonnet 5 $0.00004 $0.00123
Haiku 4.5 $0.00002 $0.00061

Measured 2d ago against content hash 97847dc4f4ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

examples/git-commit/SKILL.md · 103 lines

What it actually says

Git Commit

Git 提交信息生成技能,根据代码变更自动生成规范的 commit message。

Git commit message generator that creates conventional commit messages based on code changes.

When to Use

当用户请求以下操作时使用此 skill:

  • 生成 commit message / Generate commit message
  • 写提交信息 / Write commit message
  • 提交代码 / Commit code
  • 描述代码变更 / Describe code changes

Instructions

提交信息格式 / Commit Message Format

遵循 Conventional Commits 规范:

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

<body>

<footer>

类型 / Types

Type 说明 / Description
feat 新功能 / New feature
fix 修复 bug / Bug fix
docs 文档变更 / Documentation
style 格式调整 / Formatting
refactor 重构 / Refactoring
perf 性能优化 / Performance
test 测试相关 / Tests
chore 构建/工具 / Build/tools

生成步骤 / Generation Steps

  1. 分析变更 - 查看 git diffgit status
  2. 确定类型 - 根据变更内容选择合适的 type
  3. 提取范围 - 确定影响的模块或组件
  4. 撰写主题 - 用简洁的语言描述变更(50 字符内)
  5. 添加正文 - 如需要,详细说明变更原因和影响

规则 / Rules

  • 主题行不超过 50 个字符
  • 使用祈使句(如 "add" 而非 "added")
  • 主题行首字母小写
  • 主题行结尾不加句号
  • 正文每行不超过 72 个字符

Examples

示例 1:新功能

feat(auth): add OAuth2 login support

- Add Google OAuth2 provider
- Add GitHub OAuth2 provider
- Update login page with social login buttons

示例 2:修复 Bug

fix(api): resolve null pointer in user service

The getUserById method was not handling the case when
user doesn't exist, causing a NullPointerException.

Closes #123

示例 3:文档更新

docs(readme): update installation instructions

Add Docker setup guide and clarify environment variables.

示例 4:重构

refactor(database): migrate from callbacks to async/await

Convert all database operations to use async/await pattern
for better readability and error handling.
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. 2d ago First seen · 103 lines · 18 tokens per session scan A 97847dc4f4ce

Subscribe to this mod's changes

git-commit is a skill published in the GitHub repository JackyST0/awesome-agent-skills (629 stars, last pushed 9d ago), licensed CC0-1.0. It adds 18 tokens to every session and 613 once invoked, about $0.0001 per session on Opus 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