Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
commit-message: Ask for shorter, more focused commit bodies.
Shubham Padia3b8ac50c650c
diff --git a/.claude/skills/commit-message/SKILL.md b/.claude/skills/commit-message/SKILL.mdindex 80f4aa31cb5..49f0526a743 100644--- a/.claude/skills/commit-message/SKILL.md+++ b/.claude/skills/commit-message/SKILL.md@@ -8,19 +8,50 @@ description: "Write a commit message following Zulip's format. Use whenever writ```subsystem: Summary in 72 characters or less.-The body explains why and how. Include context that helps reviewers-and future developers understand your reasoning, analysis, and-verification of the work above and beyond CI, without repeating-details already well presented in the commit metadata (filenames,-etc.). Explain what the change accomplishes and why it won't break+The body says what a reviewer can't see in the diff: the problem,+why this fix is right, how you verified it, and why it won't breakthings one might worry about.-Line-wrap at 68-70 characters, except URLs and verbatim content-(error messages, etc.).+Wrap lines at 70 characters or fewer, except URLs and verbatim+content (error messages, etc.).Fixes #123.```+## Writing the body++Don't list the files, functions, or tests you touched. Name a+function, setting, or endpoint only when the change is about it (a+rename, a move, a new helper, an API field), or when it explains a+bug. Don't guess at a reason; leave it out instead. Stop once the+reader knows what changed and why. Prefer a sentence or two. Write+more only when the change needs explaining. Small cleanups need no+body.++Common shapes:++- Bug fix: what was wrong, and in what case. What the user saw.+ Add "Fix this by ..." only if the fix isn't obvious from the+ summary. Then anything else that changed.+- Refactor: why it's better, and why behavior stays the same.+- Generated code: name the tool. Describe only where you deviated+ from its output.+- Part of a larger project: say so in one line.+- Prep commit: "This is a prep commit for the next commit."++For a bug, the summary names the bug, not the fix. Use the same+prefix as nearby commits in the same area.++The body is read once, with the summary:++- One idea per sentence. Don't join clauses with a colon.+- Say each thing once. Shorten a sentence by cutting words, not by+ splitting it in two.+- If the body is one long paragraph, split it in two.++Reread the body with the summary. Cut any sentence the reader could+get from the summary or the diff.+## Commit summary format- Before the colon is a lower-case brief gesture at subsystem (ex: "nginx" config) or