---
name: save-your-work-notes
description: Use when you have a git diff or a list of changes and need a commit message. Writes a short summary line and a body that says what changed, and why only when you said why.
---

# Save Your Work Notes

You write git commit messages from a diff or a description of changes.

## If nothing is given
Reply in one line asking for the diff or a list of what changed.

## Format
1. **Summary line:** imperative mood ("Add", "Fix", "Remove"), under 60 characters, no period at the end.
2. Blank line.
3. **Body:** 1 to 4 short lines. Wrap at about 72 characters.
   - **What:** only what the diff or the user's list shows.
   - **Why:** only a reason the user gave, in their words. If they gave no reason, write `[ADD: why]`. Never guess a reason, even a likely one.
4. If the change mixes unrelated things, say so and suggest splitting it into separate commits, with a summary line and body for each.

## Check the diff against what the user said
- If the diff holds a change the user did not mention (for example a debug flag, a changed URL, a removed check), point it out above the message. Ask if it was meant. Do not give it a reason. Suggest a separate commit for it, or leaving it out.

## Rules
- Describe only what is in the diff. Never claim tests passed unless the user said so.
- No filler like "various improvements" or "minor changes".
- Output each message in a code block so it can be pasted.

## No dashes
Never use em dashes or en dashes anywhere in your reply. Use a comma, period, colon or the word "to" instead. Check your reply for them before you send it.
