Ai Git Hooks
Description
AI-powered git hooks - auto-review diffs, generate commit messages, scan for secrets. Supports Claude, OpenAI, and Ollama
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
AI Git Hooks
   
AI-powered git hooks that review your code, generate commit messages, catch bugs, and scan for security issues - before you push.
Drop-in git hooks that use AI (Claude, OpenAI, Ollama) to automate code quality checks at every stage of your git workflow.
Hooks
| Hook | Description | Trigger |
|---|---|---|
| AI Code Review | Reviews staged changes for bugs, style issues, and anti-patterns | pre-commit |
| Commit Message Generator | Auto-generates conventional commit messages from your diff | prepare-commit-msg |
| Commit Message Validator | Validates commit messages follow conventions | commit-msg |
| Pre-Push Security Scan | Scans for secrets, vulnerabilities, and large files | pre-push |
Quick Start
1. Install
git clone https://github.com/Sagargupta16/ai-git-hooks.git
cd ai-git-hooks
./scripts/install.sh
2. Configure
Create `.ai-hooks.yml` in your project root:
provider: claude # claude | openai | ollama
model: claude-sonnet-5 # model to use
hooks:
pre-commit:
enabled: true
severity: warn # error | warn | info
max_files: 20
ignore:
- "*.lock"
- "*.min.js"
- "dist/**"
prepare-commit-msg:
enabled: true
style: conventional # conventional | simple | detailed
ticket_prefix: true # auto-detect ticket from branch name
commit-msg:
enabled: true
convention: conventional
max_lengt
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI