conventional-commits
bởi bastos
Git & GitHubTóm tắt
Format commit messages using the Conventional.
Mô tả
Kỹ năng này làm gì
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.
Khi nào nên dùng
- 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
Quy trình ví dụ
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
Cài đặt
clawhub install bastos/conventional-commitsChạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.