conventional-commits
由 bastos 提供
Git & GitHub简介
Format commit messages using the Conventional.
描述
该技能的功能
Formats commit messages according to the Conventional Commits specification, which maps commit types like feat and fix to semantic version increments. Structured messages enable automated changelog generation and release tooling.
Structured commit types let release tools like semantic-release determine version bumps automatically without manual tagging or release notes.
何时使用
- Writing a commit message for a new feature
- Marking a breaking API change with the correct notation
- Scoping a bug fix to a specific module
- Preparing commits that feed into automated changelog tools
- Standardizing commit history across a team
示例工作流
User asks: write a commit message for adding OAuth2 login support
- 1
Identifies the change as a new feature
- 2
Selects the feat type with an appropriate scope (auth)
- 3
Writes the description in imperative mood, lowercase, no trailing period
- 4
Checks whether any breaking changes require the ! flag or BREAKING CHANGE footer
feat(auth): add OAuth2 login support
安装
clawhub install bastos/conventional-commits运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。