git-hooks-setup

Automate Git hook setup with Husky, lint-staged, and commitlint.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/efiadm/informatik-ai-studio --skill git-hooks-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-hooks-setup
Source: https://github.com/efiadm/informatik-ai-studio/tree/main/.claude/skills/git-hooks-setup
Command: npx skills add https://github.com/efiadm/informatik-ai-studio --skill git-hooks-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the setup and configuration of essential Git hooks (pre-commit, commit-msg, pre-push) to enforce code quality and consistency directly within the development workflow.

Core Features & Use Cases

  • Automated Husky & Lint-staged Setup: Installs and configures Husky for hook management and lint-staged for efficient pre-commit checks.
  • Commit Message Validation: Enforces Conventional Commits standard using commitlint.
  • Pre-push Checks: Integrates tests, type checking, and build validation before pushing code.
  • Use Case: When starting a new project or onboarding a new developer, this Skill can be invoked to automatically set up a robust Git hook system, ensuring all code adheres to project standards from the very first commit.

Quick Start

Run the setup script to configure Git hooks for your project.

Frequently Asked Questions about git-hooks-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Git hooks setup for Husky and lint-staged?

Automate Git hooks setup by installing and configuring Husky and lint-staged to enforce pre-commit, commit-msg, and pre-push checks. The setup parses project requirements and updates package.json scripts to manage commit-time code quality automatically.

How do I enforce Conventional Commits validation with commitlint?

Enforce Conventional Commits validation with commitlint by configuring the commit-msg Git hook. This setup automatically validates commit messages against the standard during the Git workflow, ensuring consistency from the first commit.

Does this Git hooks setup work with pnpm, npm, and yarn?

Yes, this Git hooks setup works with pnpm, npm, and yarn. It integrates directly with these package managers to install dependencies like Husky and lint-staged, and automatically updates package.json scripts.

What's the best way to run tests and build validation before pushing code?

Run tests and build validation before pushing code by configuring pre-push Git hooks. Integrating pre-push checks ensures type checking and build validation execute automatically to prevent broken code from reaching the repository.

How does this setup configure pre-commit hooks for project-specific requirements?

This setup configures pre-commit hooks by parsing CLAUDE.md for project-specific requirements. It uses these parsed instructions to customize Husky and lint-staged behavior, ensuring the automated code quality enforcement aligns with project standards.