Git Commit
Context
Run in parallel:
- •
git status(never -uall) - •
git diff HEAD - •
git log --oneline -10
Message Style
Match repo's existing commit patterns from log.
- •Extreme concision, sacrifice grammar for brevity
- •Focus on "why" not "what"
- •Imperative mood
Workflow
- •Review status and diff
- •Analyze recent commit style from log
- •Stage files explicitly (avoid
git add .or-A) - •Commit with HEREDOC format matching repo style
- •Run
git statusafter to verify
Rules
- •NEVER amend unless requested
- •NEVER skip hooks
- •NEVER commit secrets
- •Only commit when requested
- •Match existing commit patterns