Skip to main content
start-here

When: you are about to run git commit · Input: {{diff}} (optional, else your agent reads git diff --staged) · Output: a short commit message, subject line plus optional body · In a terminal: ple get write-a-commit-message --var diff="$(git diff --staged)" · keywords: git commit message

0
Nov 1, 2026
v1
Import with the CLI:ple import ple:zeynepaslierhan/start-here/3c48c2f3
14 lines
Write a git commit message for my changes.

{{#if diff}}Changes:

{{diff}}
{{else}}Run `git diff --staged` (if that is empty, `git diff`) and read it.
{{/if}}

Format:
- Subject line: imperative mood, 50 characters or fewer, no trailing period (for example "Fix off-by-one in pagination").
- Blank line.
- Body, only if the change is not obvious: why it was needed and what behavior changed, wrapped at 72 characters. Do not repeat the diff.

Output only the message, ready to paste into `git commit`. If the changes are unrelated, say they should be separate commits and suggest the split.

Related prompts