git-conventional-commit
2
总安装量
1
周安装量
#73590
全站排名
安装命令
npx skills add https://github.com/chasebuild/agent-skills --skill git-conventional-commit
Agent 安装分布
amp
1
cline
1
opencode
1
cursor
1
kimi-cli
1
codex
1
Skill 文档
Git Conventional Commit
Write commit messages in Conventional Commits format and ensure checks passed before commit.
Required Format
type(scope)!: short imperative summary
Optional body explains why and impact. Optional footer includes ticket links and breaking changes.
Type Selection
Use this default mapping:
feat: user-visible behavior or capabilityfix: bug fixrefactor: internal change with no behavior changeperf: measurable performance improvementtest: test-only updatesdocs: documentation-only updatesbuild: dependency/build pipeline changesci: CI configuration changeschore: maintenance that does not fit above
See ./references/conventional-types.md for examples.
Process
- Confirm
git-run-checkspassed for the staged slice. - Read staged diff:
git diff --cached. - Pick the narrowest type and accurate scope.
- Keep subject line under 72 chars and in imperative mood.
- Add body only when it adds decision context.
- Use
!+BREAKING CHANGE:footer for incompatible changes.
Optional Helper Script
Use ./scripts/compose-conventional-commit.sh to draft a message skeleton.
Boris-Inspired Operating Rules
- Prefer precision over verbosity.
- Explicitly state assumptions when scope is ambiguous.
- Keep semantic history clean so reviews and bisects stay fast.
Claude Mapping (Optional)
- If project uses slash commands, expose
/commit-msgto call the helper script.