commit
Create a conventional commit with auto-generated message
Context
- Current branch: !
git branch --show-current - Git status: !
git status --short - Staged changes: !
git diff --cached --stat - Staged diff: !
git diff --cached - Recent commits (for style reference): !
git log --oneline -5
Task
Based on the staged changes above, create a single git commit:
- Analyze the staged diff to understand what changed
- Generate a conventional commit message following the format:
type(scope): description- Types: feat, fix, docs, style, refactor, perf, test, chore
- If no changes are staged, inform the user and suggest staging files
- Execute the commit
$ARGUMENTS