Commit Message
Quick start
From diff or summary, output:
<type>(<scope>): <subject ≤72 chars>
<body: what and why, wrap at 72>
Conventional types
| Type | When |
|---|---|
| feat | New capability |
| fix | Bug fix |
| docs | Docs only |
| refactor | No behavior change |
Pick the closest type; omit scope if unclear.
Error handling
No diff? Request git diff --staged or a one-line change summary.
Example
feat(auth): add JWT login endpoint
Add POST /login issuing tokens; validate credentials against user store.