What problem does it solve?
Manually configuring pre-commit hooks with Husky, lint-staged and Prettier is time-consuming and prone to configuration errors, especially for teams that need to enforce consistent code formatting and quality checks across all commits.
Core Features & Use Cases
- Automated Husky Initialization: Automatically sets up the Husky git hook framework and configures the pre-commit hook to run lint-staged, type checking and test suites.
- Lint-staged & Prettier Integration: Configures lint-staged to run Prettier on all staged files, skipping unparseable files like images, and creates a default Prettier config if none exists.
- Use Case: For a JavaScript/TypeScript development team, use this Skill to enforce consistent code formatting and run basic quality checks before any code is committed, reducing code review overhead and preventing broken code from entering the shared repository.
Quick Start
Use the setup-pre-commit skill to configure Husky pre-commit hooks with lint-staged, Prettier formatting, type checking and test runs for the current project.