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-stagedrunning 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: