chinese-commit-conventions

chinese-commit-conventions is a skill for Claude Code from Leodorareluctant259/superpowers-zh. It costs 28 tokens per session (2,659 once invoked), scanned A, original, MIT.

A Chinese-language convention for writing Git commit messages, based on Conventional Commits, a standard format that tools can use to classify changes and build changelogs.

In plain words
What is it for?
Use it to write commits for features, fixes, documentation, refactoring, tests, performance work, dependencies, continuous-integration configuration, and rollbacks.
Why use it?
It gives a team consistent commit categories and descriptions, making project history and automated release notes easier to understand.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the superpowers-zh plugin — 20 skills, 3 commands, 1 agent, 1 hook shipped together

Good fit Use it to write commits for features, fixes, documentation, refactoring, tests, performance work, dependencies, continuous-integration configuration, and rollbacks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leodorareluctant259/superpowers-zh/chinese-commit-conventions
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 Leodorareluctant259/superpowers-zh --skill chinese-commit-conventions
Clone the repo
git clone --depth 1 https://github.com/Leodorareluctant259/superpowers-zh

Made for: Claude Code.

Or install superpowers-zh, the plugin that ships this one along with the rest of its 20 skills, 3 commands, 1 agent, 1 hook.

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 chinese-commit-conventions

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/leodorareluctant259/superpowers-zh/chinese-commit-conventions"><img src="https://agentmods.dev/badge/skills/leodorareluctant259/superpowers-zh/chinese-commit-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,659 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.00028 $0.02659
Opus 5 $0.00014 $0.01329
Sonnet 5 $0.00006 $0.00532
Haiku 4.5 $0.00003 $0.00266

Measured 9d ago against content hash ae74ddc60f61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

chinese-commit-conventions 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 9d 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.

skills/chinese-commit-conventions/SKILL.md · 365 lines

How it starts

The opening of the file, as written. The whole thing — 365 lines — stays where its author put it; the contents beside it link to each section on GitHub.

中文 Git 提交规范

1. Conventional Commits 中文适配

基于 Conventional Commits 1.0.0 规范,针对中文团队的实际使用习惯进行适配。

类型(type)定义

类型 说明 示例场景
feat 新功能 添加用户注册模块
fix 修复缺陷 修复登录页白屏问题
docs 文档变更 更新 API 接口文档
style 代码格式(不影响逻辑) 调整缩进、补充分号
refactor 重构(非新功能、非修复) 拆分过长的服务类
perf 性能优化 优化首页列表查询速度
test 测试相关 补充用户模块单元测试
chore 构建/工具/依赖变更 升级 webpack 到 v5
ci 持续集成配置 修改 GitHub Actions 流程
revert 回滚提交 回滚 v2.1.0 的登录重构

原则

  • type 保留英文关键字(工具链兼容性好)
  • scope 和 description 使用中文
  • body 使用中文完整描述

2. 中文 commit message 模板

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

<body>

<footer>

完整示例

feat(用户模块): 添加手机号一键登录功能

- 接入运营商一键登录 SDK
- 支持移动、联通、电信三网
- 登录失败自动降级到短信验证码

Closes #128
fix(订单): 修复并发下单导致库存超卖的问题

在高并发场景下,原有的库存扣减逻辑存在竞态条件。
改用 Redis 分布式锁 + 数据库乐观锁双重保障。

影响范围:订单服务、库存服务
测试确认:已通过 500 并发压测验证

Closes #256

3. Subject 行规范

格式

<type>(<scope>): <description>

规则

  • type: 必填,从上方类型表中选取
  • scope: 选填,表示影响范围,使用中文模块名
    • 示例:用户模块订单支付基础组件
  • description: 必填,中文简述,不超过 50 个字符
    • 使用动宾短语:「添加 xxx」「修复 xxx」「优化 xxx」
    • 不加句号结尾
    • 不要写「修改了代码」这种无意义描述

好的示例

feat(权限): 添加基于 RBAC 的细粒度权限控制
fix(支付): 修复微信支付回调签名验证失败的问题
perf(列表页): 优化大数据量表格的虚拟滚动渲染
refactor(网关): 将单体网关拆分为独立微服务

反面示例

# 以下写法应避免
fix: 修了一个 bug
feat: 更新代码
chore: 改了点东西

4. Body 编写规范

Body 用于详细说明本次变更的动机、方案和影响。

编写要点

  • 说明为什么要做这个改动(背景/原因)
  • 说明怎么做的(技术方案摘要)
  • 说明影响范围(哪些模块、接口受影响)
  • 每行不超过 72 个字符(中文约 36 个汉字)
  • 正文与标题之间空一行

Body 模板

<改动背景和原因>

技术方案:
- <方案要点 1>
- <方案要点 2>

影响范围:<受影响的模块或服务>

5. Breaking Changes 标注

Read the full file on GitHub · 365 lines

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. 9d ago First seen · 365 lines · 28 tokens per session scan A ae74ddc60f61

Subscribe to this mod's changes

chinese-commit-conventions is a skill published in the GitHub repository Leodorareluctant259/superpowers-zh (5 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 2,659 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

commit-staged

This skill should be used when user asks to "commit these changes", "write commit message", "stage and commit", "create a commit", "commit staged files", or explicitly invokes "commit-staged".

fcakyon/claude-codex-settings · 46 tokens

intuitive-squash

Squash local GSD or agent-generated commit history into a clean, reviewable story while preserving important fixes. Use when the user asks to squash commits, clean git history, compress phase commits, prepare a branch before PR, compare aggressive vs moderate squash options, or preserve hotfix/security commits during…

MiaoDX/intuitive-flow · 73 tokens

lov-checkpoint-list

A read-only history report built from Git records and project checkpoint logs. A checkpoint is a recorded project milestone or state, while Git is the version-control system that tracks changes and commits.

lovstudio/skills · 38 tokens

lov-git-commit-with-context

A Git commit helper that compares the current conversation's intended work with the repository's actual changes before creating a commit. Git is a system for tracking file changes, and a commit records a selected set of those changes.

lovstudio/skills · 47 tokens

commit

Create well-formatted commits with conventional commit messages and emoji.

NeoLabHQ/context-engineering-kit · 13 tokens

git-notes

Use when adding metadata to commits without changing history, tracking review status, test results, code quality annotations, or supplementing commit messages post-hoc - provides git notes commands and patterns for attaching non-invasive metadata to Git objects.

NeoLabHQ/context-engineering-kit · 49 tokens