Generating Smart Commits 技能:从暂存差异写提交说明
EnglishClaude Code 安装步骤
- 从 GitHub 固定提交获取完整的 `plugins/devops/git-commit-smart/skills/generating-smart-commits` 目录。
- 复制到目标项目的 `.claude/skills/`,确认 `.claude/skills/generating-smart-commits/SKILL.md`,再从项目根目录启动 Claude Code,输入 `/generating-smart-commits`。
中文摘要
用 Claude Code 从 git 暂存区识别变更类型、影响范围与兼容性,起草 Conventional Commits 消息。
SKILL.md 中文导读
可复现示例
只暂存帮助文档链接修复,另外留一个未暂存的重构。根据暂存内容起草 docs(help): fix the export guide link。工作步骤
- 查看 git diff --cached --stat 和 git diff --cached。按实际行为变化分类并寻找公开接口变动。
- 用动词明确说明结果。若确有破坏性变化,补写迁移说明与对应标记。
验收方法
消息准确覆盖已暂存文档改动,未把工作区中的重构写进提交内容。
GitHub 原文 · 更新日期
适用环境
准备自己的 Git 测试分支与已暂存变更,核对仓库最近提交使用的格式。
常见问题
怎么判断提交类型是 fix 还是 refactor?
看已暂存变化是否修正用户可见行为。保持原行为的结构整理通常写 refactor。
相关指南
相关推荐
groq-install-auth 技能
jeremylongshore/claude-code-plugins-plus-skills
anima-common-errors 技能
jeremylongshore/claude-code-plugins-plus-skills
apple-notes-hello-world 技能
jeremylongshore/claude-code-plugins-plus-skills
castai-hello-world 技能
jeremylongshore/claude-code-plugins-plus-skills
cohere-local-dev-loop 技能
jeremylongshore/claude-code-plugins-plus-skills
figma-security-basics 技能
jeremylongshore/claude-code-plugins-plus-skills