Автоматические pre-commit хуки с Husky и Prettier

engineering

setup-pre-commit is a Claude Code skill that configures Husky pre-commit hooks with lint-staged in the current repository, wiring up automatic Prettier formatting, type-checking, and test runs that fire before every commit. The skill handles the full setup — installing dependencies, defining lint-staged rules, and registering the corresponding Husky hooks — so nothing needs to be done by hand. Once applied, improperly formatted or type-invalid code is blocked from entering the repository's history entirely. It's a practical fit for tech leads and teams who want a reliable commit-time quality gate without repeating the same boilerplate configuration across projects.