Giverny

Setup Pre Commit

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo.

by Matt Pocock★ 336,218General

What Setup Pre Commit does

Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

How to install Setup Pre Commit in Claude Code

Giverny gives you a ready prompt with the exact install command from mattpocock/skills. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone mattpocock/skills and copy the skills/misc/setup-pre-commit folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Setup Pre Commit on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the setup-pre-commit skill on my current project.”

More Claude skills for general