ln-742-precommit-setup

Solid

Configures Husky, lint-staged, commitlint, and Python pre-commit hooks. Use when adding Git hook automation to a project.

Code & Development 479 stars 67 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

> **Paths:** File paths (`shared/`, `references/`, `../ln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If `shared/` is missing, fetch files via WebFetch from `https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}`. # ln-742-precommit-setup **Type:** L3 Worker **Category:** 7XX Project Bootstrap Sets up Git hooks for automated code quality enforcement before commits. --- ## Purpose & Scope **Does:** - Installs hook management tools (Husky or pre-commit) - Configures staged file linting (lint-staged or pre-commit hooks) - Sets up commit message validation (commitlint) - Verifies hooks trigger correctly **Does NOT:** - Configure linters themselves (ln-741 does this) - Set up test infrastructure (ln-743 does this) - Modify source code --- ## Supported Stacks | Technology | Hook Manager | Staged Linting | Commit Validation | |------------|--------------|----------------|-------------------| | Node.js | Husky | lint-staged | commitlint | | Python | pre-commit | pre-commit hooks | pre-commit hook | | Mixed | Both (if needed) | Stack-specific | commitlint | --- ## Phase 1: Check Existing Hooks Before installing, check for existing hook configurations. **Files to Check:** | Tool | Indicators | |------|------------| | Husky | `.husky/` directory, `husky` in package.json | | pre-commit | `.pre-commit-config.yaml` | | lint-staged | `lint-staged` in package.jso...

Details

Author
levnikolaevich
Repository
levnikolaevich/claude-code-skills
Created
7 months ago
Last Updated
yesterday
Language
JavaScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category