Commit Zh

写 git commit message 时使用。按 Conventional Commits 规范产出中文 commit message:类型 + 作用域 + 中文描述,动词开头,一行能看懂。特别适合中文团队统一提交风格。

6 stars 3 forksGit & Code Review

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add RazorEdge-wyh/zh-skills --skill commit-zh
Manual install
git clone --depth 1 https://github.com/RazorEdge-wyh/zh-skills.git /tmp/zh-skills
mkdir -p ~/.claude/skills
cp -r /tmp/zh-skills/.claude/skills/commit-zh ~/.claude/skills/commit-zh

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 中文工程规范 · Commit Message(commit-zh)

当需要生成 git commit message 时激活本技能。产出**中文描述的 Conventional Commits**。

## 格式

```
<type>(<scope>): <中文描述>

[可选正文:为什么这样改]
```

- 类型 | 必填,小写
- 作用域 | 可选,改动的模块,如 `auth`、`pipeline`
- 描述 | 中文,**动词开头**,一行 ≤ 50 字符,句末不加句号
- 正文 | 解释**为什么**,不用解释改了什么(diff 里看得到)

## 类型速查

| type | 含义 | 示例 |
|------|------|------|
| `feat` | 新功能 | `feat(auth): 支持手机号登录` |
| `fix` | 修 bug | `fix(api): 修复分页越界导致的崩溃` |
| `docs` | 文档 | `docs: 补充部署说明` |
| `style` | 格式/样式 | `style(button): 统一按钮圆角` |
| `refactor` | 重构 | `refactor(parser): 拆分 200 行主函数` |
| `perf` | 性能 | `perf(query): 用索引避免全表扫描` |
| `test` | 测试 | `test(cart): 增加并发下单用例` |
| `build` | 构建 | `build: 升级 webpack 到 5` |
| `ci` | CI 配置 | `ci: 缓存依赖加速构建` |
| `chore` | 杂项 | `chore: 清理废弃依赖` |
| `revert` | 回滚 | `revert: 回滚 #123 的改动` |

## 描述写法

- **动词开头**:`修复…` `增加…` `优化…` `调整…` `移除…` `升级…` `重构…`
- **说"改了效果",不说"改了代码"**:
  - ❌ `feat: 新增一个函数处理登录`
  - ✅ `feat(auth): 支持手机号验证码登录`
- 一个 commit 一个意图;多个意图拆多个 commit。
- 修复用 issue 编号:`fix: 修复订单金额精度问题(#42)`

## 好 / 坏示例

| 状态 | commit |
|------|--------|
| ✅ | `fix(cart): 修复商品数量为 0 时仍可结算` |
| ✅ | `perf(index): 用双端队列替换数组头部 shift` |
| ❌ | `update`(无类型、无信息) |
| ❌ | `feat: 改了一些东西` |
| ❌ | `fix bug`(英文 + 无描述) |
| ❌ | `feat(login): 增加登录功能并修复退出问题并优化了样式`(多意图揉一起) |

## 变更说明(可选规范)

大版本 / 破坏性变更在正文或 `BREAKING CHANGE:` 中写:

```
feat(api): 查询接口改为分页返回

BREAKING CHANGE: 原 `list` 接口不再返回全量数据,
改为 `{ list, total, page }` 结构,调用方需适配。
```

## 团队统一配置建议
Read the full skill on GitHub

Details

Skill name
commit-zh
Path
.claude/skills/commit-zh/SKILL.md
License
MIT
Repo updated
6 November 2026

FAQ

What does the Commit Zh skill do?

写 git commit message 时使用。按 Conventional Commits 规范产出中文 commit message:类型 + 作用域 + 中文描述,动词开头,一行能看懂。特别适合中文团队统一提交风格。

How do I install the Commit Zh skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add RazorEdge-wyh/zh-skills --skill commit-zh. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Commit Zh popular?

It lives in RazorEdge-wyh/zh-skills, which has 6 GitHub stars and 3 forks.

Related skills

Code Review Zh

6

RazorEdge-wyh/zh-skills

审查代码时使用。按中文工程规范对代码做 review:命名、注释、可读性、错误处理、边界、安全、性能。特别关注中文项目里的拼音命名、翻译腔注释、神秘缩写。

Git & Code Review

Health Check Zh

6

RazorEdge-wyh/zh-skills

对项目做"中文工程健康体检"时使用。检查项目的中文规范健康度:README 是否地道、CLAUDE.md 是否存在、命名是否含拼音、注释是否有翻译腔、文档是否缺失。输出评分和可执行的修复清单。

Writing & Content

Refactor Zh

6

RazorEdge-wyh/zh-skills

重构代码时使用。按中文工程规范做安全重构:命名规范化、注释优化、函数拆分、消除重复,保持行为不变、小步提交。特别适合把英文思维写的中文项目代码改造成规范可维护的状态。

Software Development

Skill Auditor

5

tlzmw001/naiyue-skills

审计第三方 skill 是否名副其实——给定 GitHub 链接或本地路径,抽取其宣称的功能为原子声称清单(claim list),在临时沙箱中通过多轮自迭代场景验证,逐条给出"证实/证伪/无法验证/受阻"结论,并结合设计解析做现象↔机制归因,最终产出证据可追溯的一致性审计报告。当用户想"测一下这个 skill"、"这个 skill 好不好用"、"验证某个 GitHub skill 是否靠谱"、"评估/审计一个 skill"、"帮我看看这个 skill 是不是虚标"时,务必使用本 skill,即使用户没有说出"审计"或"评估"字样。

Git & Code Review

Cmd Gh Issue

9

Olshansk/agent-skills

Create structured GitHub issues from conversation context using gh CLI

Git & Code Review

Git

9

thechandanbhagat/claude-skills

Git operations, conflict resolution, history management, and Git workflows. Use for complex Git operations and version control tasks.

Git & Code Review

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.