CLI tool to generate README, CHANGELOG, and PR descriptions using Groq AI
Project description
git-ai-summary
CLI tool that auto-generates README, CHANGELOG, and PR descriptions from your git history using Groq AI (Llama 3.3 70B).
Features
git-ai readme— scans your repo and generates a professional README.mdgit-ai changelog --since <tag>— generates a Keep-a-Changelog section from commitsgit-ai pr-desc— generates a GitHub PR description from staged changes- Rich Markdown preview in terminal (
--preview) - Pipe-friendly: raw Markdown goes to stdout by default
Requirements
- Python 3.9+
- A Groq API key (free tier available)
Installation
pip install git-ai-summary
Or from source:
git clone https://github.com/wquintili88/git-ai-summary
cd git-ai-summary
pip install -e .
Configuration
cp .env.example .env
# Open .env and set your GROQ_API_KEY
Or export directly in your shell:
export GROQ_API_KEY=gsk_...
Usage
# Generate README (print to stdout)
git-ai readme
# Save directly to file
git-ai readme -o README.md
# Render Markdown preview in terminal
git-ai readme --preview
# Generate CHANGELOG since a tag
git-ai changelog --since v1.0.0
git-ai changelog --since v1.0.0 --version-label v1.1.0 -o CHANGELOG.md
# Generate PR description from staged changes
git add .
git-ai pr-desc
git-ai pr-desc --preview
Options
| Command | Flag | Description |
|---|---|---|
| all | --repo PATH |
Path to git repo (default: .) |
| all | --output / -o PATH |
Write output to file |
| all | --preview / -p |
Render Markdown in terminal |
changelog |
--since / -s REF |
Tag or SHA to compare from (required) |
changelog |
--version-label |
Release label (e.g. v1.2.0) |
Security
- Never commit your
.envfile — it is listed in.gitignore - The
.env.examplefile contains only placeholder values and is safe to commit
Contributing
Pull requests are welcome. For major changes, open an issue first to discuss what you'd like to change.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git_ai_summary-0.1.0.tar.gz.
File metadata
- Download URL: git_ai_summary-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f3992aa4bb510aa59557527d6acadeb8c987085413ecd9f7eea2ab67394525
|
|
| MD5 |
1bdb669b71e88341967a52ac78a5b458
|
|
| BLAKE2b-256 |
e782d78096262bd16d88df3c451254f5c4a2a9a999c31d1e6c9f27d678e20ad6
|
File details
Details for the file git_ai_summary-0.1.0-py3-none-any.whl.
File metadata
- Download URL: git_ai_summary-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efd6f23907078c449f1c9970f08cd2c20dad00fa4059f5db659998fea2dafe19
|
|
| MD5 |
dae10425ee3f9f23defb4a5156c647f2
|
|
| BLAKE2b-256 |
c8af73060f6677259d4a2f6a3808c55429c0fcf395810aee9eee496d18e8a257
|