Commit Workflow
Commit changes quickly and keep output minimal. Do not provide a long post-commit summary unless the user asks.
- •Run
git status --shortandgit diff --statto understand scope. - •Run
git diffandgit log --oneline -5to review details and recent message style. - •Group unrelated edits into separate commits when needed.
- •For each commit:
- •
git add <files> - •
git diff --cached --stat - •
git commit -m "<message>"
- •
- •Write commit messages in Conventional Commits format:
- •
type(scope): description - •English
- •Imperative mood
- •72 chars or less on the subject line
- •Add a body that briefly explains why the change was made and any relevant background. Keep it concise — just enough for a future reader to understand the motivation without re-reading the diff.
- •Omit the body only when the subject line alone is self-explanatory (e.g., fixing a typo).
- •
- •Ask the user before committing only if:
- •Changes span many unrelated concerns and grouping is unclear
- •Potential secrets are present
- •Generated files may be accidental