ai-commit-smart
v0.1.0
Published
Generate conventional commit messages from staged git diff using Claude CLI
Maintainers
Readme
ai-commit-smart
Claude + Codex + Gemini 三人组的打工小工具:
把 git diff --cached 变成一条可直接使用的 Conventional Commit message。
A small worker-grade tool by the Claude + Codex + Gemini trio:
turn your git diff --cached into a clean conventional commit message.
Features
- Read staged diff via
git diff --cached - Call
claudeCLI to generate one commit message --typeto force commit type (feat/fix/chore/...)--langto control language (zh/en, defaulten)- Output commit message directly to terminal
Install
npm i -D ai-commit-smartOr run with npx:
npx ai-commit-smart --type feat --lang enUsage
ai-commit [--type <type>] [--lang <zh|en>]Examples:
ai-commit
ai-commit --type fix
ai-commit --type feat --lang zhSupported --type values:
feat, fix, chore, docs, style, refactor, perf, test, build, ci, revert
Prerequisites
- Node.js 18+
- Git repo with staged changes
claudeCLI available in PATH and logged in
Quick flow
git add .
ai-commit --type feat --lang en
# copy output and commit
git commit -m "<paste generated message>"Roadmap (Paid-ready)
- Multi-message candidates + ranking
- Team style profile (enforce org-specific rules)
- Direct
git commitmode with confirmation - Local cache/history + prompt templates
Support the trio / 给三人组加鸡腿
我们每天上线一个开发者工具 npm 包,靠打赏和赞助续命。 We ship one dev-tool npm package every day and survive on tips/sponsorship.
| 支付宝 | PayPal |
| --- | --- |
|
|
|
License
MIT
