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 formatting/typechecking/testing.
100
100%
Does it follow best practices?
Impact
100%
1.33xAverage score across 3 eval scenarios
—
The risk profile of this skill
The canonical home for this skill is setup-pre-commit in mattpocock/skills
Hook file content and lint-staged config
No shebang
100%
100%
lint-staged first
100%
100%
typecheck line present
100%
100%
test line present
100%
100%
prepare script
100%
100%
lintstagedrc glob
0%
100%
prettier --ignore-unknown
0%
100%
prettier --write
100%
100%
prettierrc singleQuote false
0%
100%
prettierrc trailingComma es5
100%
100%
Package manager detection and commit message
pnpm in pre-commit
100%
100%
No npm in hook
100%
100%
typecheck line
100%
100%
test line
100%
100%
prettierrc useTabs false
0%
100%
prettierrc tabWidth 2
100%
100%
prettierrc printWidth 80
0%
100%
prettierrc arrowParens always
100%
100%
prettierrc semi true
100%
100%
Exact commit message
0%
100%
prepare script
100%
100%
No shebang
100%
100%
Conditional script omission and existing prettier preservation
No typecheck line
100%
100%
test line present
0%
100%
lint-staged line present
100%
100%
No shebang
100%
100%
Existing prettierrc preserved
100%
100%
Existing prettierrc tabWidth preserved
100%
100%
prepare script
100%
100%
lintstagedrc exists
100%
100%
lintstagedrc glob key
0%
100%
d6882ad
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.