// commit-message-generator

Paste a unified git diff and get a Conventional Commits message. Heuristic parser, fully client-side — review and edit before you commit.

Part of the CodeIntel tools roadmap — built for the blog, not for production.
Presets:
Generated message
Paste a diff and press “Generate Message”.

// how-it-works

Parse

Reads diff --git headers, hunk markers, and counts added/removed lines per file. Detects new, deleted, and renamed files.

Classify

Applies ordered heuristics over changed paths and added lines to pick a Conventional Commits type: feat, fix, refactor, test, docs, and more.

Summarize

Derives a scope from the common path segment and an imperative summary from changed symbols and filenames — never generic filler.

Compose

Assembles a header, per-file body bullets with real counts, and a BREAKING CHANGE footer when public signatures were removed.

// limitations