Write commit messages

GoalCoding · Summarize what changed and why in a commit.

Help me write a clear commit message. Known material: [the changes or diff] and [affected modules], for [teammates]. Give one subject line under fifty characters plus body points explaining what changed and why. When information is thin, list what needs confirming first; do not invent changes that are not in the diff and avoid heavy jargon.

Open this template in the optimizer →

Placeholders to fill in

  • the changes or diff
  • affected modules
  • teammates

Placeholders stand for your own facts. Never invent figures, sources or credentials the model was not given.

How to use it

  1. Copy the template, or open the optimizer and it is filled in for you.
  2. Replace every placeholder in brackets with your own material.
  3. Add constraints such as length, audience, tone, and what must not change.
  4. Generate, then refine in three directions and copy the result.

Adapted from LobeHub agent “Git 提交总结专家” by cjahv (MIT)

More coding goals

Browse other tasks

Canonical version: https://www.prompt.dx3906.net/zh/templates/coding/purpose-write-commit-message