一键导入
git-commit-message
Best practices for writing clear, structured, and meaningful git commit message.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Best practices for writing clear, structured, and meaningful git commit message.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | git-commit-message |
| description | Best practices for writing clear, structured, and meaningful git commit message. |
type(scope): summary
| type | 用途 |
|---|---|
| feat | 新功能(用户能感知) |
| fix | bug |
| refactor | 重构(不改变行为) |
| perf | 性能优化 |
| chore | 杂项 |
| docs | 文档 |
| style | 格式 |
| test | 测试 |
A commit represents a logical change (intent), not a sequence of actions.
Classify the change:
featfixrefactorperfchoreUse the most relevant module:
Examples:
Rules:
Good:
feat(texture): add Perlin noise with turbulence
perf(bvh): optimize traversal performance
refactor(camera): simplify ray generation logic
Bad:
feat: update texture
feat: improve things
feat: fix bug
If multiple commits represent iterations of the same idea:
feat: tweak interpolation
feat: fix interpolation
feat: tweak again
→ Rewrite as:
perf(texture): improve interpolation stability
featDO NOT use feat for:
If change is not a core feature:
chore(scene): update Cornell box setup
DO NOT describe process:
feat: try new method
feat: fix previous mistake
refactor(texture): replace interpolation method
A good commit should:
Return ONLY the commit message:
type(scope): summary
No explanation unless explicitly requested.
type(scope): summary
- key change 1
- key change 2
- reason (optional)
Make git history readable as a high-level evolution of the system, not a log of developer actions.
基于 SOC 职业分类