>
每条提交信息必须遵循以下结构:
<类型>(<作用域>): <主题>
[可选正文]
[可选脚注]
| 类型 | 使用场景 |
|---|---|
| feat | 新功能或能力 |
| fix |
作用域必须是该项目中的真实模块名称。
完整列表请参见 references/modules.md。
如果不确定作用域,请检查正在更改的文件路径——顶层目录通常是正确的作用域。
如果提交引入了破坏性变更,请添加脚注:
BREAKING CHANGE: <变更内容描述及迁移路径>
正确示例:
feat(auth): add JWT token refresh endpoint
Tokens now auto-refresh 5 minutes before expiry.
Previously users had to re-login after token expiration.
fix(parser): handle empty input without crashing
refactor(db): extract connection pooling to separate module
BREAKING CHANGE: DatabaseClient constructor no longer accepts
pool config. Use PoolConfig.create() instead.
错误示例:
updated some stuff ← 缺少类型和作用域,表述模糊
feat: Add new Feature. ← 首字母大写,末尾有句号,缺少作用域
fix(misc): various fixes ← misc 不是真实模块
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 git-cmt-helper-1776207926 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 git-cmt-helper-1776207926 技能
skillhub install git-cmt-helper-1776207926
文件大小: 2.16 KB | 发布时间: 2026-4-15 12:00