chinese-commit-conventions
Adapt Conventional Commits for Chinese development teams with localized type definitions, message templates, and tooling integration. Configure commitlint, husky, and conventional-changelog to enforce consistent commit practices across your team while keeping type keywords in English for tool compatibility.
Chinese Commit Conventions standardizes git commit messages for Chinese-speaking teams using Conventional Commits with Chinese-adapted templates.
AI-generated summary based on this skill's SKILL.md
Install
jnMetaCode/superpowers-zh/chinese-commit-conventions · repository language: JavaScript
git clone https://github.com/jnMetaCode/superpowers-zh
cp -r superpowers-zh/skills/chinese-commit-conventions ~/.claude/skills/chinese-commit-conventionsnpx skillfed install jnMetaCode/superpowers-zh/chinese-commit-conventionsFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What are chinese-commit-conventions and how do they work?
chinese-commit-conventions adapts Conventional Commits for Chinese development teams with localized type definitions, message templates, and tooling integration. The skill configures commitlint, husky, and conventional-changelog to enforce consistent commit practices across your team while keeping type keywords in English for tool compatibility.
How do I configure commitlint, husky, and commitizen for Chinese projects?
chinese-commit-conventions provides setup guidance for integrating commitlint to validate message format, husky to run pre-commit hooks, and commitizen to prompt structured commit creation. The configuration maintains English type keywords (feat, fix, docs, style, refactor, perf, test, chore) for tool compatibility while supporting Chinese descriptions and body text in your commit messages.
Can conventional commits be adapted for Chinese teams?
Yes. chinese-commit-conventions demonstrates how to adapt Conventional Commits for Chinese teams by localizing type definitions and message templates while preserving the English keywords required by automation tools. This approach balances team communication in Chinese with the standardization needed for changelog generation and commit linting.
How does chinese-commit-conventions generate changelogs automatically?
chinese-commit-conventions integrates conventional-changelog to parse standardized commits and generate changelogs automatically. By maintaining consistent type and scope structure in your commits, the tool extracts feat, fix, and breaking change entries to produce organized release notes without manual compilation.
What is the best way to enforce breaking changes and issue tracking?
chinese-commit-conventions shows how to mark breaking changes using BREAKING CHANGE: footer notation and reference issues via #issue-number in commit bodies. commitlint rules validate these patterns, ensuring your team consistently documents impacts and traces commits to tracked issues for accountability and changelog accuracy.
What does the git commit type scope subject structure look like?
chinese-commit-conventions follows the pattern: type(scope): subject. Type is one of feat, fix, docs, style, refactor, perf, test, chore (in English). Scope describes the affected area (in Chinese or English). Subject is a brief imperative description (typically in Chinese). Example: feat(用户认证): 添加微信登录支持。
SKILL.md
rendered from the published skill — quoted content, verbatim
中文 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
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
skills/chinese-commit-conventions/SKILL.md