commitcraft-ai
v1.7.0
Published
tool tht suggests and generates better git commit messages
Downloads
850
Maintainers
Readme
CommitCraft - AI commit generator
AI-based commit generator that turns your staged diff into clean, conventional, and detailed commits in an instant.

Introduction
We all hate writing commit messages like:
- "fix"
- "final final fix"
- "update file"
CommitCraft is capable of generating clean, readable, meaningful commit messages automatically based on your staged changes
Features
- Auto stage + commit + push (one command workflow) -
commitcraft push --ai - PR message generator -
commitcraft pr(creates polished Pull Request descriptions from recent commits) - Undo last commit-
commitcraft undo(reverts to previous commit safely) - Reads your staged files from Git
- AI-powered commit messages using your OpenRouter key
- commits each file with a relevant message
- conventional commits format
- Easy setup and use
- Works in any repo
Installation
- Install the package
npm install -g commitcraft-ai- Then set your API key (i got myself one from OpenRouter.ai)
commitcraft-setupUsage
- Stage your files:
git add .- Use the AI-powered version!! (--ai or dont use a flag at all for rule based version)
commitcraft --ai- Accept the suggested commit message by pressing Enter
Before:
After:
Roadmap
- [x] Add AI-powered commit suggestions
- [ ] Git hook integration
- [ ] PR auto-creation to GitHub via API
- [ ] Interactive commit message refinement mode
⭐ Support CommitCraft
If this tool saved you time (or your sanity), a star on the repository is appreciated- it helps others discover the project and supports future development
🤝 Contributing
If you’d like to report a bug, request a feature, or open a PR, please create an issue first so we can discuss the approach.
License
MIT License
Copyright (c) 2025 Sukhdev Thukral
See the LICENSE file for details.
