git-style-commit
Installation
SKILL.md
Git Style-Aware Commit
This skill instructs the agent to autonomously analyze repository commit conventions, logically group pending changes into atomic commits, and generate matching commit messages.
🎯 Trigger Conditions
- User asks to "commit changes", "save work", or "create a commit".
- User provides specific files to commit.
- User wants to ensure commit messages follow existing repository standards.
🛠️ Execution Steps
1. Analyze Commit Style
Run git log -n 15 --pretty=format:"%s" to detect the prevailing pattern:
- Format: Conventional Commits (
feat:,fix:), bracket prefixes ([API]), or plain text. - Capitalization & Tense: Sentence case, title case, lowercase; present vs. past tense.
- Emoji Usage: Detect if Gitmoji or other emoji conventions are used.