husky-hooks-config

Community

Automate Git hooks, enforce code quality.

Authormetasaver
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manually enforcing code quality standards (formatting, linting, sensitive file checks) before commits or pushes is inconsistent and error-prone. This skill automates the setup and validation of Husky Git hooks, ensuring consistent code quality and security.

Core Features & Use Cases

  • Pre-commit Auto-Fix: Automatically runs prettier:fix and lint:fix before commits, then stages the changes, ensuring code is always formatted and linted.
  • Smart Sensitive File Detection: Intelligently blocks .env files and prevents .npmrc files (with smart multi-mono repo logic) from being committed, preventing secret leakage.
  • Pre-push Validation: Runs prettier, lint, lint:tsc, and test:unit before pushes, with CI detection to skip in automated environments.
  • Fail-Fast Execution & Clear Output: Uses set -e for immediate exit on errors and provides emoji-enhanced, step-by-step output for clear feedback.
  • Use Case: Set up Husky hooks for a new repository to automatically format code, run linters, and prevent sensitive files from being committed before a developer pushes their changes, ensuring a clean and secure codebase.

Quick Start

Create pre-commit and pre-push Husky hooks for the current repository.

Dependency Matrix

Required Modules

None required

Components

assets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: husky-hooks-config
Download link: https://github.com/metasaver/claude-marketplace/archive/main.zip#husky-hooks-config

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository