git-commit

A tool for creating Git commit messages in the Conventional Commits format, a standard way to describe code changes such as fixes, features, and documentation updates.

In plain words
What is it for?
Use it after reviewing a Git diff or status to choose a change type, identify its scope, and write a concise subject and optional body in Simplified Chinese.
Why use it?
It turns the current changes into a consistent commit description without making you decide the wording and category from scratch.

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/rootsli/claude-quickstart-cn/git-commit
Any agent
npx skills add rootsli/claude-quickstart-cn --skill git-commit
Clone the repo
git clone --depth 1 https://github.com/rootsli/claude-quickstart-cn

Made for: Claude Code, Codex.

Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 550 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.00020 $0.00550
Opus 5 $0.00010 $0.00275
Sonnet 5 $0.00004 $0.00110
Haiku 4.5 $0.00002 $0.00055

Measured 2d ago against content hash 81828c816410, 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.

.claude/skills/git-commit/SKILL.md · 96 lines

What it actually says

Git Commit

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

什么时候使用

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

  • 生成 commit message
  • 写提交信息
  • 提交代码
  • 描述代码变更

操作说明

提交信息格式

遵循 Conventional Commits 规范:

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

<body>

<footer>

类型

类型 说明
feat 新功能
fix 修复 bug
docs 文档变更
style 格式调整
refactor 重构
perf 性能优化
test 测试相关
chore 构建/工具

生成步骤

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

规则

  • 提交信息使用简体中文
  • 主题行不超过 50 个字符
  • 主题行结尾不加句号
  • 正文每行不超过 72 个字符

示例

示例 1:新功能

feat(auth): 新增 OAuth2 登录支持

- 新增对 Google OAuth2 的登录支持
- 新增对 GitHub OAuth2 的登录支持
- 更新登录页面,添加社交登录按钮

示例 2:修复 Bug

fix(api): 修复用户服务中的空指针异常问题

- 修复了在用户不存在时的空指针异常问题

关闭了问题 #123

示例 3:文档更新

docs(readme): 更新安装说明

新增了 Docker 设置指南和澄清了环境变量的作用.

示例 4:重构

refactor(database): 异步代码从回调模式迁移至 async/await

将所有数据库操作转换为 async/await 模式,以提高可读性和错误处理能力.
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 · 96 lines · 20 tokens per session scan A 81828c816410

Subscribe to this mod's changes

git-commit is a skill published in the GitHub repository rootsli/claude-quickstart-cn (10 stars, last pushed 1mo ago), licensed CC0-1.0. It adds 20 tokens to every session and 550 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens