skill · Testing & QA
Setup Pre Commit
by mattpocock
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time…
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Gemini CLI
- ★ 327k on GitHub
- Updated 2026-11-18
- MIT
Calyban is a free desktop app. It checks Setup Pre Commit for red flags before installing, lets you choose the agent and folder, and undoes it in one click.
Install Setup Pre Commit manually
Prefer the terminal? This does the same thing as Calyban's install.
Claude Code
git clone --depth 1 https://github.com/mattpocock/skills.git calyban-tmp-setup-pre-commit
mkdir -p ~/.claude/skills
cp -r calyban-tmp-setup-pre-commit/skills/misc/setup-pre-commit ~/.claude/skills/setup-pre-commit
rm -rf calyban-tmp-setup-pre-commitCodex
git clone --depth 1 https://github.com/mattpocock/skills.git calyban-tmp-setup-pre-commit
mkdir -p ~/.codex/skills
cp -r calyban-tmp-setup-pre-commit/skills/misc/setup-pre-commit ~/.codex/skills/setup-pre-commit
rm -rf calyban-tmp-setup-pre-commitStart a new Claude Code, Codex & more session afterwards so it picks up the change.
Similar skills
Migrate To ShoehornmattpocockMigrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.TddmattpocockTest-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.Finishing A Development BranchobraUse when implementation is complete, all tests pass, and you need to decide how to integrate the workSystematic DebuggingobraUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesTest Driven DevelopmentobraUse when implementing any feature or bugfix, before writing implementation codeUi Canvasaffaan-mPreview a UI component mockup in a local browser canvas where the human directly edits it (move, resize, edit text, delete, restyle), switches mobile/desktop/custom viewports, tests it, chats with you, and clicks Save…
Guides
Listed in the public Calyban catalog. Setup Pre Commit is made by mattpocock, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.