| name | commit |
| allowed-tools | Bash(git:*), Bash(cat:*), Read, Write, Bash(git commit:*) |
| description | Create professional git commits with bullet-point messages and Co-Authored-By footer |
Đọc staged changes → Format commit message → Create commit
Format:
type: subject (<70 chars, imperative)
- What changed (bullet, no markdown)
- Why it matters
Types: feat | fix | refactor | docs | test | chore | perf | style
Steps:
git status + git diff --staged
- Format message theo template
git commit -m "$(cat <<'EOF'\n...\nEOF)"
git log -1 verify
Rules:
- Subject < 70 chars, imperative mood
- Bullets use
-, no markdown
- WHAT & WHY, not HOW
- Always include Co-Authored-By footer
- ALWAYS commit directly, no confirmation prompt