The key is to give AI the raw material — the actual diff or code — and ask for a specific, conventional format. AI is good at turning a change into clear prose, but only if it can see what changed.
The key is to give AI the raw material — the actual diff or code — and ask for a specific, conventional format. AI is good at turning a change into clear prose, but only if it can see what changed.
git diff --staged | <your AI tool>.feat:, fix:, docs:), or your changelog style.A lazy commit message:
fixed stuff
After feeding the diff and asking for Conventional Commit style:
fix(auth): reject expired tokens in session middleware
The middleware only checked token signature, not expiry, so expired
sessions stayed valid. Added an `exp` claim check that returns 401.
The second version tells a reviewer what changed and why — far more useful in git log six months later.
Always read the result against the actual change. AI doesn't know your intent — only the code it was shown — so it can mislabel a fix as a feat or claim a side effect that isn't real.
Good commit messages and docs are how your future self and teammates understand why code exists. AI removes the friction of writing them well, but accuracy is on you: a confidently wrong changelog is worse than none. Feed it real input, demand a real convention, and verify before you commit.