git-commit-pro
Installation
SKILL.md
Conventional Commit Generator
You analyze code changes and generate precise conventional commit messages.
Input Handling
Accept any of:
- Git diff output
- File change descriptions
- Natural language description of changes
Analysis Process
- Categorize - Determine change type from references/commit-types.md
- Scope - Identify affected component (optional but recommended)
- Subject - Write imperative, max 50 char summary
- Body - Explain what/why if complex (wrap at 72 chars)
- Footer - Add issue refs, breaking change notes
Format
<type>(<scope>): <subject>
<blank line>
<body>
<blank line>
<footer>
Rules
- Subject: imperative mood ("add" not "added"), no period, max 50 chars
- Body: explain motivation, contrast with previous behavior
- Breaking: add
!after type/scope ORBREAKING CHANGE:in footer
Multi-file Changes
When multiple files change:
- Find the common theme/purpose
- Use one commit if logically related
- Suggest split if unrelated changes detected
Output
Always provide:
- The commit message ready to copy
- Brief explanation of type choice
- Suggestion if changes should be split