1.4 KiB
1.4 KiB
name, description
| name | description |
|---|---|
| commit-messages | Write short git commit messages, preferably under 20 words. Use when drafting commits, writing commit messages, amending commits, or creating pull request titles and summaries. |
Commit Messages
Keep commit messages short. Prefer under 20 words total.
Rules
- One line — subject only; no body unless the user asks for one.
- Imperative mood — "Add table", not "Added table" or "Adds table".
- Say what changed — lead with the action; drop filler ("this commit", "in order to").
- No lists — one change per commit when possible; if many changes, summarize the main one.
- Count words before committing; trim if over 20.
Format
<verb> <what> [<optional context>]
Optional conventional prefix when it helps: feat:, fix:, refactor:, docs:.
Examples
| Bad (too long) | Good |
|---|---|
| Add structured tables for test conditions and ink formula in product test template. | Add horizontal ink formula table |
| Refactor templates for consistency and clarity across travel and product test reports. | Align product test header with travel template |
| Update README to reflect new templates and usage examples for both report types. | Update README with template examples |
PR titles
Apply the same limit to PR titles. PR body can be slightly longer but keep the summary to 1–3 short bullets.