Generate a short, imperative commit message for the current changes. Output only the message; do not run git commit unless asked.
- Review changes:
git statusandgit diff(orgit diff --cachedif staged) - Write a single-line message under 72 characters
- Use imperative mood: "add", "fix", "update" — not "added", "fixed", "updated"
- Start with a verb, no period at the end
- Output only the message text (e.g.
add login and signup buttons to home page)
Prefer conventional commits when it helps clarity:
type(scope): description— e.g.fix(auth): handle expired session- Or plain imperative:
add dashboard logout form
- Concise: One line, ideally under 50 characters
- Imperative: "fix bug" not "fixed bug"
- Specific: Describe what changed, not vague labels
- No period at the end