Staged Changes
!git diff --cached --stat 2>/dev/null || echo "Nothing staged. Showing unstaged:"; git diff --stat 2>/dev/null | head -15
Full Diff
!git diff --cached 2>/dev/null || git diff 2>/dev/null | head -100
Instructions
- Analyze the changes above
- If nothing is staged, suggest which files to stage with
git add - Generate a commit message using conventional commits format:
type(scope): short description (under 72 chars)
- Bullet point explaining what changed and why
- Another bullet if needed
Types: feat, fix, refactor, docs, test, chore, perf, style, ci Scope: the module/component/area affected
- Show me the proposed commit command
- Wait for my approval before executing