一键导入
commit-messages
Write clear commit messages. Use when asked to commit changes, write a commit message, prepare a commit, or describe changes for version control.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write clear commit messages. Use when asked to commit changes, write a commit message, prepare a commit, or describe changes for version control.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | commit-messages |
| description | Write clear commit messages. Use when asked to commit changes, write a commit message, prepare a commit, or describe changes for version control. |
Make small, atomic commits with clear messages.
If you don't already understand the changes, review them first:
git diff HEAD
git status --short
Make small, atomic commits—each commit should address one logical change. If your work spans multiple concerns (e.g., a refactor and a bug fix), break it into separate commits.
# Stage entire files
git add <files>
# Or stage specific hunks for finer control
git hunks list # List all hunks with IDs
git hunks add 'file:@-old,len+new,len' # Stage specific hunks by ID
git commit -m "title" -m "body paragraph"
Title (first line):
git log --oneline (avoid "fix:" or "feature:" prefixes)Body:
Trailers: