setup-pre-commitby Matt PocockDevelopmentGitHub stars: 273k
Setup Pre-Commit skill: what it does and how to install it
Sets up Husky pre-commit hooks with lint-staged, type checking and tests in the current repo.
Install
$ npx skills add mattpocock/skills --skill setup-pre-commitRun it in a terminal. If your agent is already running, start a new session so it picks the skill up.
About this skill
Sets up Husky pre-commit hooks with lint-staged, type checking and tests in the current repo.
Similar skills
- Code ReviewReviews the changes since a commit or branch on two axes: the repo's coding standards and the originating spec.
- Setup Matt Pocock SkillsConfigures a repo for Matt Pocock's engineering skills: issue tracker, triage labels and domain doc layout.
- Git Guardrails for Claude CodeSets up Claude Code hooks that block dangerous git commands such as push, reset --hard and clean before they run.