Skip to content
S

setup-pre-commit

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

by vinvcnFree

#4742in AI Skills
0In stores

Description

The setup-pre-commit skill sets up Husky pre-commit hooks in the current repository and connects them to lint-staged. When it runs, it detec…

Highlights

  • Sets up Husky pre-commit hooks
  • lint-staged runs Prettier on staged files
  • Detects npm, pnpm, yarn or bun
  • Adds a Prettier config if one is missing
  • Runs typecheck and test scripts on commit

Ratings & Reviews

No ratings yet

Be the first to rate setup-pre-commit.

People also visit

S

setup-pre-commit

Set up Husky pre-commit hooks with lint-staged

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
B

block-no-verify-hook

Configure a PreToolUse hook to prevent AI agents

AI Skills
Get
P

precommit

Phoenix precommit alias automation

AI Skills
Get
C

commit-work

Create high-quality git commits: review/stage intended changes

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, Prettier, and the project's typecheck and test scripts.

How does it pick a package manager?

It checks for package-lock.json (npm), pnpm-lock.yaml (pnpm), yarn.lock (yarn) or bun.lockb (bun), and falls back to npm if the choice is unclear.

How do I install it?

Run npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn --skill setup-pre-commit.

What are its security audit results?

Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.

What are the best setup-pre-commit alternatives?

Popular alternatives to setup-pre-commit include setup-pre-commit, create-hook and commit. See all setup-pre-commit alternatives

Developer Stuff

Badges