CtrlK
BlogDocsLog inGet started
Tessl Logo

setup-pre-commit

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

1.33x
Quality

100%

Does it follow best practices?

Impact

100%

1.33x

Average score across 3 eval scenarios

SecuritybySnyk

The risk profile of this skill

The canonical home for this skill is setup-pre-commit in mattpocock/skills

SKILL.md
Quality
Evals
Security

Evaluation results

100%

30%

Add Pre-Commit Automation to a TypeScript Project

Hook file content and lint-staged config

Criteria
Without this skill
With this skill

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%

100%

25%

Automate Code Quality Checks on Commit for a pnpm Monorepo Package

Package manager detection and commit message

Criteria
Without this skill
With this skill

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%

100%

20%

Set Up Commit-Time Formatting for a Node.js Library

Conditional script omission and existing prettier preservation

Criteria
Without this skill
With this skill

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%

Repository
SnowingFox/ai-skills
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.