github-hooks

Automate local Git hook installation and enforcement for pre-commit checks.

3|1|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/edfenton/claude-skills --skill github-hooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-hooks
Source: https://github.com/edfenton/claude-skills/tree/main/shared/github-hooks
Command: npx skills add https://github.com/edfenton/claude-skills --skill github-hooks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Local development teams struggle with inconsistent code quality and unsafe commits. This skill installs and configures pre-commit, commit-msg, and pre-push hooks to enforce linting, formatting, tests, and secret scanning before commits reach remotes.

Core Features & Use Cases

  • Install and configure git hooks (pre-commit, commit-msg, and pre-push) across MERN, NEAN, and iOS projects.
  • Integrate with existing scaffolds to share hook policies and improve security posture.
  • Onboard new teams quickly with a clear setup and troubleshooting guide.

Quick Start

Install the git hooks into your repository and verify by making a sample commit.

Frequently Asked Questions about github-hooks

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

FAQPage Schema
How do I enforce local Git hooks for pre-commit linting and secret scanning?

To enforce local Git hooks, you can automate the installation of pre-commit, commit-msg, and pre-push hooks to run linting, formatting, secret scanning, and commit message validation before commits reach remotes.

Does this Git hooks setup work with MERN, NEAN, and iOS projects?

Yes, the Git hooks setup works across MERN, NEAN, and iOS projects, applying pre-commit lint and format checks, secret scanning, and commit message validation seamlessly across different tech stacks.

What do I need to integrate Husky, lint-staged, and commitlint into my workflow?

You need a Git repository to integrate Husky, lint-staged, and commitlint, enabling the enforcement of code quality standards through automated pre-commit and commit-msg hooks with minimal manual setup.

Why use local pre-commit hooks instead of just running CI pipeline checks?

Local pre-commit hooks prevent inconsistent code quality and unsafe commits by catching formatting issues, linting errors, and leaked secrets before they reach remotes, providing immediate developer feedback compared to delayed CI checks.

Can I configure commit message validation and gitleaks scanning together?

Yes, you can configure both commit message validation and gitleaks scanning together by installing commit-msg and pre-commit hooks, ensuring commit standards and secret scanning are enforced simultaneously.

How do I onboard new developers to share Git hook policies effectively?

You can onboard new developers quickly by integrating hook policies with existing scaffolds, providing a clear setup and troubleshooting guide to ensure local Git hooks enforce code quality consistently across the team.