From 2e997ff366d93dc7ecbfadc08261b43880af44f9 Mon Sep 17 00:00:00 2001 From: diaco Date: Wed, 1 Jul 2026 14:38:46 +0330 Subject: [PATCH] Add commit message guidelines for concise and effective writing --- .cursor/skills/commit-messages/SKILL.md | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .cursor/skills/commit-messages/SKILL.md diff --git a/.cursor/skills/commit-messages/SKILL.md b/.cursor/skills/commit-messages/SKILL.md new file mode 100644 index 0000000..2acb569 --- /dev/null +++ b/.cursor/skills/commit-messages/SKILL.md @@ -0,0 +1,39 @@ +--- +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.