Skill Detail

Enforce local Git hook checks in JavaScript repos with Husky

Use Husky to wire pre-commit, pre-push, and commit-msg checks into a repo so agents and developers run the same local guardrails before changes leave the workstation.

Templates & WorkflowsMulti-Framework
Templates & Workflows Multi-Framework Published
⭐ 35k GitHub stars ⬇ 25.7M/wk npm
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill enforce-local-git-hook-checks-in-javascript-repos-with-husky Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Git, Node.js, npm or pnpm or yarn
Install & setup
Install the package in the target repo, enable Husky, then add hook scripts such as pre-commit or commit-msg for the required local checks.
Author
typicode
Publisher
Open Source
Last updated
Apr 24, 2026
Quick brief

This skill sets up and maintains Husky-based Git hooks for a JavaScript or TypeScript repository. Invoke it when you want an agent to install or update local repo guardrails such as pre-commit linting, test gates, formatting, or commit message validation, rather than manually editing hook scripts by hand. The scope stays skill-shaped because the agent is performing one bounded workflow: attach concrete local checks to Git lifecycle events for a specific repository, not merely describing Husky as a package.