JavaScript is disabled. Some features may not work.
setup-pre-commit — ★ 143.3K GitHub Stars — Install Guide | SkillsNav
🇺🇸 English🇨🇳 中文
SkillsNav
Home

setup-pre-commit

★ 143K repogenerationSafeIntermediateClaude
🤖 AI Summary

This skill automates the setup of a Git pre-commit hook using Husky and lint-staged to run Prettier, typecheck, and test scripts on staged files, and ensures a Prettier config is present if missing.

How to Install

Claude Code:
git clone --depth 1 https://github.com/mattpocock/skills.git && cp skills/skills/misc/setup-pre-commit ~/.claude/skills/setup-pre-commit -r
- **Husky** pre-commit hook - **lint-staged** running Prettier on all staged files - **Prettier** config (if missing) - **typecheck** and **test** scripts in the pre-commit hook

Details

Category Coding → generation
Sourcemattpocock/skills
SKILL.mdView on GitHub →
Repo Stars★ 143.3K
Est. per Skill~3.2K (shared across 45 skills from this repo)
DifficultyIntermediate
Risk LevelSafe

Related Skills

Works Well With

Skills from the same repository — often designed to work together