smart-commit
Installation
SKILL.md
Smart Commit
Generate precise, conventional commit messages from staged git changes and optionally commit in one step.
Workflow
- Run
git diff --cached --statto see what's staged. If nothing is staged, checkgit diff --statand ask the user if they want to stage all changes first. - Run
git diff --cachedto get the full diff (if very large, use--statsummary + sample key hunks). - Analyze the diff and generate a commit message following the rules below.
- Present the message to the user. If approved, run
git commit -m "<message>".
Commit Message Format
Follow Conventional Commits:
<type>(<scope>): <subject>
[optional body]