
Description
setup-pre-commit is an agent skill from Matt Pocock's skills collection, listed on skills.sh. It sets up Husky pre-commit hooks with lint-staged running Prettier on staged files, plus type check and test scripts, detecting npm, pnpm, yarn or bun. A skill is a SKILL.md file of instructions (sometimes with scripts and reference notes) that an AI agent loads only when a task calls for it, so the agent knows the steps to follow and what to avoid. It is free and open source.…
Highlights
- Husky and lint-staged
- Prettier on staged files
- Typecheck and tests before commit
Ratings & Reviews
No ratings yet
Be the first to rate setup-pre-commit.
People also visit

content-research-writer
Assists in writing high-quality content by conducting research

batch-grill-me
A relentless interview that asks every frontier question at once, round by round

coding-agent
Delegate coding work to Codex, Claude Code, or OpenCode as background workers

canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy
setup-pre-commit FAQ
What does the setup-pre-commit skill do?
It sets up Husky pre-commit hooks with lint-staged running Prettier on staged files, plus type check and test scripts, detecting npm, pnpm, yarn or bun.
How do I install the setup-pre-commit skill?
Run: npx skills add https://github.com/mattpocock/skills --skill setup-pre-commit
Is it free?
Yes. It is free and open source.
What is an agent skill?
A SKILL.md file of instructions, sometimes with scripts and reference notes, that an AI agent such as Claude Code loads when a task needs it, so it handles that task the same careful way every time.
Has it been checked for security?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass. A Warn is worth reading before you install.
What are the best setup-pre-commit alternatives?
Popular alternatives to setup-pre-commit include content-research-writer, batch-grill-me and coding-agent. See all setup-pre-commit alternatives
