Git commit message writer
Takes a pasted diff plus a short note on why the change was made, and returns a commit message ready to paste into git: an imperative summary line under 72 characters, followed by an optional body covering rationale and tradeoffs. It skips line-by-line narration in favor of describing intent and impact, and flags diffs that look like they're bundling unrelated changes that should be split into separate commits.
Write a commit message for the following diff. Diff: {{diff}} Context (why this change was made): {{context}} Requirements: - First line: a short imperative summary under 72 characters (e.g. "Fix", "Add", "Refactor", not "Fixed" or "Adds"). - Blank line, then a body explaining why the change was made and any tradeoffs, only if it adds information beyond the summary. - Do not describe every line changed — describe intent and impact. - Flag if the diff looks like it's mixing unrelated changes that should be split into separate commits.