Pre Commit Hooks

MANDATORY setup for all projects. Automated code quality enforcement before commits. Prevents bad code from entering repository.

8 stars 3 forksSoftware Development Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add Freddy-CHEN-ux/00_claude_skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Freddy-CHEN-ux/00_claude_skills --skill pre-commit-hooks
Manual install
git clone --depth 1 https://github.com/Freddy-CHEN-ux/00_claude_skills.git /tmp/00_claude_skills
mkdir -p ~/.claude/skills
cp -r /tmp/00_claude_skills/skills/pre-commit-hooks ~/.claude/skills/pre-commit-hooks

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Pre-Commit Hooks

## Core Principle

**Automate quality gates - humans forget, machines don't.**

## When to Use This Skill

- Setting up new projects (MANDATORY)
- Onboarding team members
- Improving code quality
- Preventing bad commits
- Enforcing standards

## The Iron Law

**NO PROJECT WITHOUT PRE-COMMIT HOOKS.**

Every repository MUST have automated quality checks before commits are allowed.

## Why Pre-Commit Hooks Are Mandatory

**Without hooks:**
- ❌ Unformatted code enters repository
- ❌ Type errors slip through
- ❌ Tests broken by commits
- ❌ Secrets/credentials committed
- ❌ Linting errors ignored

**With hooks:**
- ✅ Automatic code formatting
- ✅ Type checking enforced
- ✅ Tests run before commit
- ✅ No secrets committed
- ✅ Consistent code quality

**Authority**: 95% of professional teams use pre-commit hooks. Not using them is unprofessional.

## Setup by Language

### JavaScript/TypeScript Projects

**Install pre-commit framework:**

```bash
npm install --save-dev husky lint-staged
npx husky install
npm set-script prepare "husky install"
```

**Create `.husky/pre-commit`:**

```bash
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
```

**Configure `package.json`:**
Read the full skill on GitHub

Details

Skill name
pre-commit-hooks
Path
skills/pre-commit-hooks/SKILL.md
Repo updated
10 January 2026

FAQ

What does the Pre Commit Hooks skill do?

MANDATORY setup for all projects. Automated code quality enforcement before commits. Prevents bad code from entering repository.

How do I install the Pre Commit Hooks skill?

Claude Code plugin: /plugin marketplace add Freddy-CHEN-ux/00_claude_skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Pre Commit Hooks popular?

It lives in Freddy-CHEN-ux/00_claude_skills, which has 8 GitHub stars and 3 forks.

Related skills

Add Integration

8

Freddy-CHEN-ux/00_claude_skills

Build a new API integration for Nexus. Load when user mentions "add integration", "new integration", "integrate with", "connect to [service]", or "build [service] integration". Interactive workflow that discovers API endpoints, plans the integration, and creates a project for implementation.

Software Development

AI Agents

8

Freddy-CHEN-ux/00_claude_skills

Production-grade AI agent patterns with MCP integration, agentic RAG, handoff orchestration, multi-layer guardrails, and observability (modern best practices)

AI, LLMs & Agents

AI LLM

8

Freddy-CHEN-ux/00_claude_skills

Production LLM engineering skill. Covers strategy selection (prompting vs RAG vs fine-tuning), dataset design, PEFT/LoRA, evaluation workflows, deployment handoff to inference serving, and lifecycle operations with cost/safety controls.

AI, LLMs & Agents

Product Development Flow

5

vnovakovits/claude-skills

Apply Don Reinertsen's "The Principles of Product Development Flow" (Celeritas, 2009), the quantitative case for flow in product work. Covers its 175 principles across eight areas (economics, queues, variability, batch size, WIP constraints, flow control under uncertainty, fast feedback, decentralised control) with verified codes; cost of delay and the SJF, HDCF and WSJF (CD3) sequencing rules; utilisation, Little's formula and why you control queue size rather than cycle time; the batch-size U-curve; congestion collapse; cadence; pooled versus dedicated capacity; and how to handle interrupt,

Software Development

Pragmatic Programmer

5

vnovakovits/claude-skills

Apply the broad heuristics from Andy Hunt & Dave Thomas's "The Pragmatic Programmer" (1999, 20th-anniversary ed. 2019) — DRY, orthogonality, tracer bullets, reversibility, programming by coincidence, design by contract, broken windows, knowledge portfolio, good-enough software, and the dozens of tips that shape a craftsperson's everyday judgment. Use when stuck on a non-pattern-specific problem, when reasoning about engineering trade-offs, when picking up a new technology, when growing as a developer, or when articulating habits and stances that don't fit neatly into any single methodology.

Software Development

QA Debugging

8

Freddy-CHEN-ux/00_claude_skills

Systematic debugging methodologies, troubleshooting workflows, logging strategies, error tracking, performance profiling, stack trace analysis, and debugging tools across languages and environments. Covers local debugging, distributed systems, production issues, and root cause analysis.

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.