setup-pre-commit

Builds automatic checks that run before you save code, so formatting and tests happen without you doing it by hand.

Installation
Run `npx skills add "https://github.com/vinvcn/mattpocock-skills-zh-cn" --skill "setup-pre-commit"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

What this skill does
What it does: - Sets up Husky, which is a tool that runs checks before you save code changes - Installs Prettier, which automatically fixes how your code looks - Runs type checking to catch mistakes - Runs tests to make sure your code works - All of this happens automatically when you try to save your changes When to use it: - When you want to make sure bad code never gets saved to your project - When your team wants everyone's code to look the same - When you want tests and type checking to run automatically before saving - When you are starting a new project and want to set up these safety checks from the beginning

The full skill text could not be loaded right now. It installs fine with the command above, or read it at the source.

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us