Commit message
Claude Code Skill 开发指南
npx -y skills add diguike/book-claude-skill --skill commit-messageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
生成符合 Conventional Commits 规范的 commit message。当用户说'提交'、'commit'、'写个 commit message'时使用。
SKILL.md
1.0 KB, as published. Nobody here has run it
根据暂存区的变更生成 commit message。
变更内容
!git diff --cached --stat
Commit Message 规范
格式:<type>(<scope>): <subject>
type 必须是以下之一:
feat: 新功能fix: Bug 修复refactor: 重构(不改变行为)docs: 文档style: 格式调整(不影响逻辑)test: 测试chore: 构建/工具/依赖
规则:
- subject 用中文,不超过 50 字
- scope 用英文,表示影响的模块
- 不以句号结尾
- 用祈使语气("添加"而非"添加了")
流程
- 分析
git diff --cached的内容 - 判断变更类型(feat/fix/refactor/...)
- 确定 scope(哪个模块)
- 生成 commit message
- 向用户确认后执行
git commit -m "..."