What problem does it solve?
This skill removes the guesswork and manual setup of commit-time quality gates by configuring automated pre-commit hooks that run formatting, type checks, and tests consistently.
Core Features & Use Cases
- Husky pre-commit hook setup: Initializes Husky and creates a
.husky/pre-commit file that runs your commit-time checks.
- lint-staged + Prettier formatting: Configures lint-staged to format only staged files with Prettier using sensible defaults.
- Typecheck and test integration: Adds
npm run typecheck and npm run test to the hook when those scripts exist, ensuring the repo stays green.
Use case: when joining an engineering team or starting a new repo, you want every developer to automatically apply formatting and catch type/test failures before code lands.
Quick Start
Ask the agent to set up Husky pre-commit hooks with lint-staged (Prettier), and to add typecheck and test commands if the repo defines those scripts.