Gitsloth
AI-powered Git commit message generator enforcing Conventional Commits
Install / Use
/learn @saccofrancesco/GitslothREADME
📌 TL;DR
gitsloth is a minimal Go CLI that reads your staged Git diff, generates a Conventional Commit message using OpenAI, and asks for confirmation before committing.
💡 Why gitsloth
- Writing good commit messages is repetitive
- Conventional Commits are useful but tedious
- This tool automates it without adding complexity
It focuses on:
- zero unnecessary dependencies
- simple UX
- predictable output
🔑 Key Features
- AI-Generated Commit Messages – Uses OpenAI to turn diffs into clean Conventional Commits
- Conventional Commits Ready – Enforces proper format and style automatically
- Interactive Confirmation – You always approve before committing
- Zero Dependencies – Uses only the Go standard library
- Fast CLI Workflow – Designed to fit seamlessly into your Git routine
⚡ Quickstart
git clone https://github.com/saccofrancesco/gitsloth.git
cd gitsloth
go build -o gitsloth
Setup
export OPENAI_API_KEY=your_api_key_here
Usage
# Stage your changes
git add .
# Generate commit message
./gitsloth
# Or let the tool stage everything for you
./gitsloth -a
🧪 Example
$ ./gitsloth
⣾ Generating commit message...
Proposed commit message:
feat: add custom spinner and remove external dependencies
Accept and commit? (y/n):
📬 Emailware: Share Your Thoughts
gitsloth is emailware. If you find it useful or interesting, I’d like to hear from you.
📩 francescosacco.github@gmail.com
🙏 Support
If you like this project:
- ⭐️ Star the repo
- ☕️ Buy me a coffee
- 💌 Send feedback or ideas
📎 You Might Also Like…
- DeepShot: Predict NBA games using machine learning and advanced stats.
- Supremebot: A NiceGUI-powered bot for Supreme drops.
📜 License
This project is licensed under the MIT License — feel free to use it in your own projects!
GitHub @saccofrancesco
Related Skills
apple-reminders
354.2kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
354.2kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
healthcheck
354.2kHost security hardening and risk-tolerance configuration for OpenClaw deployments
imsg
354.2kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
