skills/git-commit-gen/SKILL.md
根据 git status 和 git diff 自动生成符合规范的中文 commit message,支持 Conventional Commits 格式,包含模块名称。当用户说"生成 commit"、"生成提交信息"、"commit message"、"帮我写 commit"、"提交信息"、"git commit"时触发。不适用于:查看 git log、切换分支、合并冲突等通用 git 操作。
npx skillsauth add snailuu/skill git-commit-genInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本项目使用中文 Conventional Commits 格式:
<type>(<scope>): <subject>
[可选的详细描述]
| Type | 说明 | 示例 | |------|------|------| | feat | 新功能 | feat(聊天对话): 新增消息引用功能 | | fix | Bug 修复 | fix(聊天对话): 修复消息流式渲染问题 | | docs | 文档变更 | docs(README): 更新安装说明 | | style | 代码格式调整(不影响功能) | style(按钮): 调整按钮边距 | | refactor | 重构(既不是新功能也不是修复) | refactor(API): 优化请求处理逻辑 | | perf | 性能优化 | perf(列表): 优化虚拟滚动性能 | | test | 测试相关 | test(工具函数): 添加单元测试 | | build | 构建系统或外部依赖变更 | build(deps): 升级 React 到 18.3 | | ci | CI 配置文件和脚本变更 | ci(github): 添加自动化测试流程 | | chore | 其他不修改源码的变更 | chore(配置): 更新 eslint 规则 |
根据修改的模块确定:
* 表示全局git status --short
如果工作区干净(无修改),提示用户没有需要提交的更改。
git diff --stat
git diff --cached
git diff
git log --oneline -10
确保生成的格式与项目现有风格一致。
src/pages/chat/ → 聊天对话)生成 2-3 个候选 commit message,按推荐度排序。每个候选项后提供简短说明。
如果变更较复杂,附带多行详细描述。
详细输出示例和执行提交流程见 references/examples.md。
documentation
Use when 需要根据 git 历史生成或更新 CHANGELOG.md,尤其在发版前整理 Unreleased、版本区间、tag diff 或 Keep a Changelog 条目时。
development
Semantic Design System Skill for Google Stitch. Generates agent-friendly DESIGN.md files that enforce premium, anti-generic UI standards — strict typography, calibrated color, asymmetric layouts, perpetual micro-motion, and hardware-accelerated performance.
development
Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.
development
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.