| name | commit |
| description | Create a git commit with auto-generated message |
| user_invocable | true |
Context
- Current branch: !
git branch --show-current
- Recent commits: !
git log --oneline -5
- Current git status: !
git status --short
- Staged changes: !
git diff --cached
- Unstaged changes: !
git diff
Your task
Based on the above changes:
- Review the staged and unstaged changes
- If there are unstaged changes that should be included, stage them with
git add
- Write a concise commit message that:
- Summarizes the "why" rather than the "what"
- Follows the style of recent commits
- Is 1-2 sentences max
- Create the commit with the message ending with:
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Show the final
git status to confirm