husky-gen
✓Verified·Scanned 2/18/2026
This skill analyzes package.json and generates Husky git hooks, writing them into .husky/ and configuring git. It calls the OpenAI API via openai.chat.completions.create (requires OPENAI_API_KEY) and runs git config core.hooksPath .husky.
from clawhub.ai·v774dcce·40.4 KB·0 installs
Scanned from 1.0.0 at 774dcce · Transparency log ↗
$ vett add clawhub.ai/lxgicstudios/husky-gen
ai-husky
Set up git hooks tailored to your project. Analyzes your package.json and creates pre-commit, pre-push, and commit-msg hooks.
Install
npm install -g ai-husky
Usage
npx ai-husky
# → Git hooks installed in .husky/
npx ai-husky --dry-run
# → Preview the hooks without installing
Setup
export OPENAI_API_KEY=sk-...
What it creates
- pre-commit - Lints staged files, runs type-check
- pre-push - Runs your test suite
- commit-msg - Validates conventional commit format
License
MIT