Skip to content
S

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged

by mattpocockFree

#138in AI Skills
0In stores

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-st…

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

S

setup-pre-commit

在当前仓库设置 Husky pre-commit hooks,集成 lint-staged

AI Skills
Get
B

block-no-verify-hook

Configure a PreToolUse hook to prevent AI agents

AI Skills
Get
C

create-hook

Create and configure git hooks

AI Skills
Get
C

commit

Create well-formatted commits with conventional commit messages and emoji

AI Skills
Get
P

precommit

Phoenix precommit alias automation

AI Skills
Get
H

hygiene

Making code changes to ensure they pass VS Code's hygiene checks

AI Skills
Get

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 setup-pre-commit, block-no-verify-hook and create-hook. See all setup-pre-commit alternatives

Developer Stuff

Badges