chinese-commit-conventions

Generates Chinese-language Conventional Commits messages and configures commitlint, husky, and changelog tooling.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/marcocpt/trae_skills --skill chinese-commit-conventions-marcocpt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chinese-commit-conventions
Source: https://github.com/marcocpt/trae_skills/tree/main/chinese-commit-conventions
Command: npx skills add https://github.com/marcocpt/trae_skills --skill chinese-commit-conventions-marcocpt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams working in Chinese often struggle to apply the English-centric Conventional Commits specification consistently, resulting in vague commit messages, broken changelog generation, and unenforced team conventions. ## Core Features & Use Cases - Chinese Commit Message Standards: Provides type definitions, subject/body rules, and templates for writing Chinese commit messages with English type keywords. - Toolchain Configuration: Supplies ready-to-use configurations for commitlint, husky, lint-staged, commitizen, and conventional-changelog with Chinese prompts and section names. - Breaking Change & Issue Linking: Defines rules for BREAKING CHANGE annotations and issue references across GitHub, Gitee, Coding, Jira, and 禅道. - Use Case: A team lead wants all developers to write standardized Chinese commit messages and auto-generate a Chinese changelog on release; this Skill provides the rules, templates, and config files to enforce it via git hooks. ## Quick Start Ask the assistant to write a compliant Chinese commit message for your staged changes following the chinese-commit-conventions rules.

Frequently Asked Questions about chinese-commit-conventions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Conventional Commits messages in Chinese?

Keep the type keyword in English (feat, fix, docs, etc.) for toolchain compatibility, and write the scope and description in Chinese. Use verb-object phrases like "添加 xxx" or "修复 xxx", keep the subject under 50 characters, and omit the trailing period.

How to set up commitlint for Chinese commit messages?

Install @commitlint/cli and @commitlint/config-conventional, then extend the conventional config in commitlint.config.js. Disable subject-case, raise header-max-length to around 120, and define the allowed type-enum list to accommodate Chinese characters.

How do I generate a Chinese changelog automatically?

Use conventional-changelog-cli or standard-version with a .versionrc.js file that maps commit types to Chinese section names like 新功能, 缺陷修复, and 性能优化. Run the changelog npm script to update CHANGELOG.md from commit history.

Does commitlint work with husky git hooks?

Yes, husky's commit-msg hook can invoke commitlint to validate every commit message before it is accepted. Add "npx --no -- commitlint --edit $1" to .husky/commit-msg so non-compliant messages are rejected automatically.

When should I mark a commit as BREAKING CHANGE?

Mark it whenever the commit introduces incompatible changes such as database schema modifications, public API parameter or response changes, or config format changes. Add a BREAKING CHANGE footer describing the migration steps, or append an exclamation mark after the type.

Why does commitlint reject my Chinese commit message?

Default rules like subject-case and header-max-length are tuned for English and often reject Chinese text. Disable subject-case and increase header-max-length and body-max-line-length limits in your commitlint configuration.