BrowserLeaksUSBrowserLeaksUS

AI Commit Message Generator

Paste a diff or change summary → Conventional Commits message

Input

Output of `git diff` or a plain-English description

What this tool does

Analyzes a git diff or change summary and writes a Conventional Commits-compliant message: proper type (feat / fix / docs / refactor / test / chore / perf / style / build / ci), scope, concise subject line under 72 characters, optional body explaining why, plus 2 alternative phrasings.

Who it's for: Developers working in teams that follow Conventional Commits - and anyone who wants a clean, searchable git history.

When to use

  • •Draft commit messages for a batched set of changes.
  • •Rewrite a messy commit before pushing to a public repo.
  • •Onboard to a Conventional Commits workflow quickly.
  • •Generate release notes by extracting types and scopes from history.

How it works

  1. 1Paste the output of `git diff` (or a written summary of changes).
  2. 2AI detects the commit type and suggests a scope.
  3. 3Primary message is generated under 72 chars, with optional multi-line body.
  4. 4Two alternative messages are provided in case you want to rephrase.

Tips

  • •Include the diff, not just a summary - the AI catches nuances humans miss.
  • •Always review the suggested type - feat vs fix is semantically loaded.
  • •Use the body for WHY, keep the subject line for WHAT.

Using this output

How to read a generated commit message

01

Subject, body, and the type

The subject should be a conventional prefix, a scope if one fits, and an imperative summary: feat, fix, refactor, docs, test, chore. The summary names the change a reader of the history needs, not the ticket number alone and not a file list. Fifty to seventy characters is the range that fits a log line. The body explains why, and it should mention the behavior a user or a caller will notice. A body that restates the diff hunk by hunk is a worse diff.

The message is only as honest as the diff you pasted. Paste the staged diff, not the whole file and not a description from memory. If the diff contains two unrelated changes, the tool will still write one message, and that message will hide one of them. Split the diff first. A generated 'fix: handle edge cases' with no edge case in the diff is filler. Edit it until every clause points at a hunk.

02

What you still have to know

The tool does not run tests and does not know whether the change compiles. Do not raise a fix to a feat because the wording sounds larger. Do not include secrets that were in the diff. If a key appeared in the paste, rotate it. The message is a convenience. The history is yours after you save the commit.

A good check is to read the subject next to the file list. If you cannot see how the subject follows from those files, the scope is wrong. Compare with the explanation you would write in Code Explainer for the same hunk. The commit message is the one-line version of that explanation, not a new theory about the code.