commit-message
Installation
SKILL.md
Git Commit Message Generator
Generate concise, descriptive and intent-driven Git commit messages in English.
Process
- Run
git diff --cacheddirectly to check for staged changes - If staged changes exist: generate commit message based on staged changes only
- If no staged changes: run
git diffdirectly andgit statusdirectly to view unstaged and untracked files - For untracked files, intelligently assess which need content review (code/config files) vs which can be inferred from filename (assets, dependencies)
- Combine the diff with the intent supported by the conversation context; do not invent motivation that is not evident
- Generate a single-line commit message that prioritizes known intent, then observable outcome, then the concrete change
Output
Output ONLY the commit message — a single line, no explanation, no code block fencing.