Git Commit Workflow
Use this skill when preparing or creating commits.
Workflow
Gather commit context in one tool call
- Run:
git status && git diff && git log -n 3 --format="---%n%B".
- Run:
Write commit title and description
- Use a concise summary on the first line (the title) in present simple tense (example:
Fix cursor offset). - Leave one blank line between the title and the body.
- Add a body only when it improves clarity.
- Explain why and how in present simple tense.
- If there are multiple points, format them as
-bullet lines with one point per line.
- Use a concise summary on the first line (the title) in present simple tense (example:
Avoid Conventional Commit prefixes
- Do not use prefixes such as
feat:orfix:in commit titles.
- Do not use prefixes such as
Apply repository-specific commit rules
- Never use
--no-verifywith git commands to bypasspre-commithooks. - Do not add
Co-Authored-Bytrailers or AI attribution to commit messages.
- Never use
Converted and distributed by TomeVault — claim your Tome and manage your conversions.