This skill helps you generate consistent git commit messages by analyzing project history and applying Conventional Commits when needed.
npx playbooks add skill ab300819/skills --skill commit-convention
该 Skill 不直接执行 git commit 或 git add 操作,而是为当前 Agent 提供提交信息的决策指导和格式标准。
在生成提交信息前,必须先观察项目已有的提交习惯:
git log -n 5 --oneline。[FEAT]、Update: 等)或语言习惯,应优先模仿并保持一致。如果项目提交记录为空、无明显规律,或项目明确要求使用规范化提交,请遵循 Conventional Commits 规范:
<type>(<scope>): <subject>
<body>
<footer>
feat: 新功能fix: 修补 bugdocs: 文档变更style: 不影响代码含义的变更(空白、格式、缺少分号等)refactor: 重构(既不是修复 bug 也不是添加特征的代码更改)perf: 改进性能test: 添加缺失测试或更正现有测试build: 影响构建系统或外部依赖项的更改ci: 更改 CI 配置文件和脚本chore: 其他不修改 src 或测试文件的更改revert: 回退之前的提交当 Agent 需要生成提交信息时,应按以下逻辑思考:
git log -n 5 --oneline 观察项目风格。Closes #123)。Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.