commit-message
Installation
SKILL.md
Commit Message
Draft commit-message text from the real git state. Default to Conventional Commits. Prefer concise bodies that explain behavior, impact, and required follow-up. This skill only drafts the message; staging, committing, amending, and pushing belong to the surrounding workflow.
Workflow
- Determine scope.
- If the user explicitly narrowed the scope, honor that boundary and ignore unrelated changes.
- If staged changes exist, default to staged changes unless the user asks to summarize all changes.
- If no staged changes exist, use the relevant unstaged, untracked, or provided changes.
- Inspect in-scope untracked files before summarizing them;
git diffwill not show their contents. - If there are no relevant changes, say so instead of inventing a message.
- If unrelated changes would distort a single summary, separate them clearly or ask before mixing them into one message.