一键导入
commit-message
Draft a concise, well-formatted git commit message from the currently staged changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Draft a concise, well-formatted git commit message from the currently staged changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | commit-message |
| description | Draft a concise, well-formatted git commit message from the currently staged changes. |
When the user invokes this skill, follow this workflow exactly:
Run git status --porcelain via execute_command to confirm something is staged.
If nothing is staged, stop and tell the user to stage their changes first.
Run git diff --cached to see the staged changes.
Run git log -n 5 --pretty=format:"%s" so you can match the repo's existing
commit-message style (sentence case vs. lowercase, prefix tags, scopes, etc.).
Draft a commit message:
Show the message to the user inside a fenced code block. Do NOT commit —
the user will copy the message and run git commit themselves.
Keep it tight. Do not list every file changed; the diff already does that.