PythonbeginnercliAI Generated
Commit Message Generator
Python CLI that reads git diff --staged, sends it to an LLM, and suggests a conventional commit message (feat/fix/refactor etc.).
5 stepsPython · click · anthropic · subprocess · rich
Project Roadmap
- 01
Git diff capture
Runs subprocess git diff --staged --unified=3 and captures the output.
- 02
LLM prompt
Sends the diff to Claude with instructions for Conventional Commits format.
- 03
Multiple suggestions
Generates 3 message variants (feat, fix, refactor if applicable).
- 04
Interactive select
Rich prompt: choose one of 3, edit, or cancel.
- 05
Git hook install
Install command: sets as prepare-commit-msg hook.
Resources
Ready to build this?
Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.
5 steps
Tech Stack
Pythonclickanthropicsubprocessrich