Enhanced git commit workflow with conventional commit prompts and AI-powered reviews.
- 🎯 Conventional Commit Prompts - Interactive prompts for all commit aspects
- 🤖 AI-Powered Reviews - Optional OpenCode integration for commit quality checks
- 📦 Smart Staging - Automatically offers to stage unstaged changes
- ✅ Commit Validation - Ensures commit message quality
# Clone and install
git clone <repository-url>
cd commitplus
npm install
# Make the CLI executable
chmod +x bin/commitplus.js# Run the enhanced commit workflow
npm run commitSet your OpenCode API key to enable AI-powered commit reviews:
export OPENCODE_API_KEY=your_api_key_here- Stage Changes - Automatically detects and offers to stage unstaged changes
- Commit Prompts - Interactive prompts for:
- Type (feat, fix, docs, style, etc.)
- Scope (optional)
- Subject (short description)
- Body (detailed description)
- Breaking changes (optional)
- Issue references (optional)
- AI Review - Sends diff and commit info to OpenCode for quality review
- Final Review - Shows commit preview and AI review for final approval
- Commit - Creates the commit with the conventional format
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
feat: A new featurefix: A bug fixdocs: Documentation only changesstyle: Changes that do not affect the meaningrefactor: A code change that neither fixes a bug nor adds a featureperf: A code change that improves performancetest: Adding missing tests or correcting existing testsbuild: Changes that affect the build systemci: Changes to CI configuration files and scriptschore: Other changes that don't modify src or test files
OPENCODE_API_KEY- Your OpenCode API key for AI reviews (optional)
npm run commit- Run the enhanced commit workflow
src/commit.js- Main commit workflow orchestratorsrc/commit-prompt.js- Conventional commit promptssrc/opencode-review.js- OpenCode API integrationbin/commitplus.js- CLI entry point
MIT