husky-hooks-config
CommunityAutomate 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:fixandlint:fixbefore commits, then stages the changes, ensuring code is always formatted and linted. - Smart Sensitive File Detection: Intelligently blocks
.envfiles and prevents.npmrcfiles (with smart multi-mono repo logic) from being committed, preventing secret leakage. - Pre-push Validation: Runs
prettier,lint,lint:tsc, andtest:unitbefore pushes, with CI detection to skip in automated environments. - Fail-Fast Execution & Clear Output: Uses
set -efor 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 requiredComponents
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.