一键导入
committing-staged-with-message
Generate commit message for staged changes, pause for approval, then commit. Stage files first with `git add`, then run this skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate commit message for staged changes, pause for approval, then commit. Stage files first with `git add`, then run this skill.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Context compression for verbose outputs. Use when conversation context exceeds 70% capacity or when summarizing large outputs.
Academic/technical writeups with Pandoc-compatible markdown. Use for documentation, reports, or technical explanations.
Evidence-based codebase investigation. Use when exploring unfamiliar code, understanding architecture, or gathering context for implementation.
| name | committing-staged-with-message |
| description | Generate commit message for staged changes, pause for approval, then commit. Stage files first with `git add`, then run this skill. |
| compatibility | Designed for Claude Code |
| metadata | {"model":"haiku","disable-model-invocation":true,"argument-hint":"(no arguments needed)","allowed-tools":"Bash, Read, Glob, Grep"} |
If staged changes exceed 10 files OR 500 lines: skip full diff analysis,
use git diff --staged --stat only for the commit body.
Using Bash tool:
git diff --staged --stat - Summary of changed files and line countsgit diff --staged - Full diff (skip if size guard triggers)git log --oneline -5 - Check recent commit styleUsing Read/Glob tools as needed to understand file purposes.
See .gitmessage for expected syntax.
Format:
<type>(<scope>): <subject>
<body>
<diff stats>
Rules:
--stat output)Please review the commit message.
Once approved:
git commit -m "[message]" - Commit with approved messagegit status - Verify success