Here's the 20 line bash version I whipped up a while back cuz yes lazy about writing good commit messages.
Supports claude and gemini with model selection and goes into the githook such that when you type `git commit` it invokes and generates the message.
https://gist.github.com/torqu3e/c08f4aa4e80fba66dce6c35d63dd...