@fridzema/cmt
v0.3.0
Published
AI-powered git commit messages. Fast.
Maintainers
Readme
cmt
AI-powered git commit messages. Fast.
Generates conventional commit messages from your staged diff using Claude.
Install
# Run directly
npx @fridzema/cmt # npm
yarn dlx @fridzema/cmt # yarn
bunx @fridzema/cmt # bun
# Install globally
npm i -g @fridzema/cmt
yarn global add @fridzema/cmt
bun add -g @fridzema/cmtPrerequisites
- git
- Claude CLI (
claude)
Usage
# Generate a commit message (interactive)
cmt
# Skip confirmation, commit immediately
cmt --direct
# Commit with a specific message
cmt "feat: add user auth"
# Use a different model (default: haiku)
cmt --model sonnet
# Skip automatic git add
cmt --no-addOptions
-d, --direct Skip confirmation, commit immediately
-m, --model <model> Claude model to use (default: haiku)
--no-add Skip automatic 'git add -A'
-v, --version Show version
-h, --help Show helpHow it works
- Stages all changes (
git add -A, unless--no-add) - Sends the diff to Claude
- Gets back a conventional commit message
- Shows the message for confirmation:
- Accept — commit as-is
- Edit — type your own message
- Regenerate — ask Claude for a new message
- Quit — abort without committing
- Use
--directto skip confirmation and commit immediately
License
MIT
