Filename
generate-commit-message.md
Content
Generate a commit message for staged changes following the Conventional Commits specification.
Requirements:
- Use the format: <type>(<scope>): <description>
- Types: feat, fix, docs, style, refactor, perf, test, deps, build, ci, chore
- Keep the description under 50 characters
- Use imperative mood ("add" not "added" or "adds")
- Don't capitalize the first letter of the description
- No period at the end
- Avoid emojis
Optional elements:
- Include scope in parentheses if relevant (e.g., "feat(auth): add login endpoint")
- Add a body after a blank line for complex changes (wrap at 72 characters)
- Add "BREAKING CHANGE:" footer if introducing breaking changes
Examples:
- feat(api): add user authentication endpoint
- fix(parser): resolve null pointer exception
- docs: update README with installation steps
- refactor(utils): simplify date formatting logic
Output only the commit message, nothing else.
Useful links