Skip to content
Back to skills

Husky Gen

ASecurity

Set up git hooks tailored to your project. Use when adding pre-commit hooks.

  • 21 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 7, 2026
toolsbashnodegitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill husky-gen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Husky Gen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Husky Gen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-husky-gen/badge)](https://www.skillsdirectory.com/skills/modbender-husky-gen)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: husky-gen
description: Set up git hooks tailored to your project. Use when adding pre-commit hooks.
---

# Husky Generator

Git hooks are powerful but setting them up is a pain. This tool analyzes your project and creates the right hooks for your workflow.

**One command. Zero config. Just works.**

## Quick Start

```bash
npx ai-husky
```

## What It Does

- Installs and configures Husky
- Creates pre-commit hooks for linting staged files
- Sets up pre-push hooks for running tests
- Adds commit-msg hook for conventional commits

## Usage Examples

```bash
# Install git hooks
npx ai-husky

# Preview without installing
npx ai-husky --dry-run
```

## Best Practices

- **Lint staged files only** - don't lint the whole codebase
- **Run tests on push** - catch issues before PR
- **Keep hooks fast** - slow hooks get bypassed
- **Make them skippable** - --no-verify for emergencies

## When to Use This

- Setting up a new project with git hooks
- Adding code quality checks to existing project
- Enforcing commit message format
- Standardizing pre-commit workflow

## Part of the LXGIC Dev Toolkit

This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.

**Find more:**
- GitHub: https://github.com/LXGIC-Studios
- Twitter: https://x.com/lxgicstudios
- Substack: https://lxgicstudios.substack.com
- Website: https://lxgic.dev

## Requirements

No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAI_API_KEY environment variable.

```bash
npx ai-husky --help
```

## How It Works

Analyzes your package.json to determine what linters, formatters, and test runners you use. Then generates appropriate Husky hooks that run the right commands at the right times.

## License

MIT. Free forever. Use it however you want.

Files in this skill

  • README.md601 B
  • SKILL.md1.9 KB
  • package-lock.json31 KB
  • package.json613 B
  • src/cli.ts1.3 KB
  • src/index.ts1.8 KB
  • tsconfig.json221 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.