4 ms·
A tiny Go tool for generating conventional commits using Claude
- deleted 2y ago[deleted]
- joehewett 2y agoI know there are lots of these, but this one is my no-frills CLI tool for generating conventional commits from whatever is staged. It's super small, super fast, super fun. git add . commit a (to accept, e to open Vim to edit, r to reject) Conventional commits for everyone! <3
- kenmacd 2y agoNice tool. To add a workflow to the 'lots of these', I usually use an aichat[^1] role. The prompt is stored in `~/.config/aichat/roles/gitcommit.md` and then I do this: ``` git diff --cached | aichat -m deepseek:deepseek-chat -r gitcommit | git commit --edit --file - ``` I like that your tool includes some previous commit messages... I'm not sure if that can be done with `aichat` but it seems like a great idea. I'd be tempted to wrap individual commit messages in pseudo-xml <commit> tags, as Claude really likes those[^2] and the `%B` format doesn't really show the breaks between commit messages. 1: https://github.com/sigoden/aichat https://github.com/sigoden/aichat 2: https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/use-xml-tags https://docs.anthropic.com/en/docs/build-with-claude/prompt-...
- deleted 2y ago[deleted]