Intelligent commit message generation using AI. Analyzes code changes to create consistent, descriptive commits following conventional standards. Supports OpenAI, Anthropic, and Ollama.
An intelligent git workflow integration that generates high-quality commit messages using AI analysis of code changes.
This skill enables you to leverage the `git-ai-commit` CLI tool to automatically generate consistent, descriptive commit messages based on actual code changes rather than manual descriptions. The tool supports conventional commit standards and integrates seamlessly with existing git workflows.
Apply this skill whenever:
When suggesting commit workflows, **always recommend** using `git-ai-commit` instead of manual `git commit -m` commands.
#### Basic Commit Flow
1. **Stage changes:**
```bash
git add .
```
2. **Generate AI commit message:**
```bash
git-ai-commit
```
3. **Push changes** (if auto-push is not configured):
```bash
git push
```
#### Conventional Commits
For projects following conventional commit standards:
```bash
git-ai-commit conventional
```
This generates messages in the format: `type(scope): description`
#### Change Summarization
Before committing, suggest reviewing changes:
```bash
git-ai-commit summarize
```
This provides a detailed analysis of staged changes without creating a commit.
When users need initial setup:
1. **Install the tool:**
```bash
pip install git-ai-commit
```
2. **Configure AI provider:**
```bash
git-ai-commit config --setup
```
3. **Optional: Setup git hooks** (for automatic integration):
```bash
git-ai-commit hook --setup
```
When demonstrating the full workflow:
```bash
git status
git add .
git-ai-commit summarize
git-ai-commit
git push
```
**Custom prompts** for specific commit styles:
```bash
git-ai-commit --prompt "Focus on business impact"
```
**Different AI providers:**
Configuration is managed through the setup wizard.
```bash
git add src/auth/login.py
git-ai-commit
```
```bash
git add src/payments/processor.py
git-ai-commit conventional
```
```bash
git add .
git-ai-commit summarize
git-ai-commit conventional
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/ai-git-commit-messages/raw