commit
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
/commit
This skill analyzes code changes and generates a high-quality commit message that follows the project's existing style.
Pre-fetched Context
- Recent commits: !
git log --oneline -15 2>/dev/null || echo "No git history" - Current branch: !
git branch --show-current 2>/dev/null - Staged changes: !
git diff --staged --stat 2>/dev/null | head -30 - Unstaged changes: !
git diff --stat 2>/dev/null | head -20 - File status: !
git status -s 2>/dev/null | head -20
Actions
- Step 1: Analyze Context
- Review the pre-fetched git information above.
- If there are no changes (both staged and unstaged empty), inform the user and stop.