--- name: commit-messages description: >- 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 1. **One line** — subject only; no body unless the user asks for one. 2. **Imperative mood** — "Add table", not "Added table" or "Adds table". 3. **Say what changed** — lead with the action; drop filler ("this commit", "in order to"). 4. **No lists** — one change per commit when possible; if many changes, summarize the main one. 5. **Count words** before committing; trim if over 20. ## Format ``` [] ``` 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.