setup-pre-commit

Installation
SKILL.md

Setup Pre-Commit Hooks

Set up a repo-appropriate Husky pre-commit hook using the existing package manager and scripts. Prefer the smallest change that fits the repo.

What This Sets Up

  • Husky pre-commit hook.
  • lint-staged running Prettier on staged files.
  • Prettier config only if the repo does not already have one.
  • Existing typecheck/check and test scripts in the pre-commit hook when available.

Process

1. Inspect The Repo

Read package.json and check for lockfiles:

Installs
3
GitHub Stars
63
First Seen
Jul 13, 2026
setup-pre-commit — stolinski/s-stack