Git Hook

Assess, adopt, or harden repository-local Git-hook automation. Use when setting up or standardizing project hooks, choosing between Lefthook and git-hook-pure, migrating an existing hook manager, reusing hook configuration or scripts, or bootstrapping hooks for fresh clones.

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add bolasblack/claude-skills --skill git-hook
Manual install
git clone --depth 1 https://github.com/bolasblack/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/skills/git-hook ~/.claude/skills/git-hook

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

From the SKILL.md

# Git Hook

When modifying or reviewing this skill, read [SPEC.md](SPEC.md) first. It holds the
user-owned requirements that must survive tool branches and rewrites; ordinary Git-hook
adoption does not need it.

This skill automates two explicit manager branches: Lefthook and git-hook-pure. A
generic setup request starts with assessment and recommendation, not installation. The
user owns the manager choice. If the request already names a manager, that choice gate
is satisfied unless it conflicts with an existing hook owner.

Both documented branches require Git 2.31 or newer and a POSIX/Bourne-compatible
shell. Their supported Windows surface is Git Bash.

`<SKILL_PATH>` means the loaded base directory of this skill. Copy a resource only when
the selected branch explicitly identifies it as bundled; never link a repository back
to the installed skill. The Lefthook runner is bundled here. git-hook-pure remains
upstream-owned and is obtained from an exact upstream version by the target repository.

## Ownership

- The user owns the manager selection and every migration decision.
- An existing hook manager, `core.hooksPath`, or hand-written hook remains the current
  owner until the user explicitly chooses replacement or composition.
- The selected manager branch owns its installation and runtime model.
- The repository owns hook policy, commands, tracked configuration, and handler
  scripts.
- Git owns clone-local hooks under its resolved hooks directory. CI or server-side
Read the full skill on GitHub

Details

Skill name
git-hook
Path
skills/git-hook/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Git Hook skill do?

Assess, adopt, or harden repository-local Git-hook automation. Use when setting up or standardizing project hooks, choosing between Lefthook and git-hook-pure, migrating an existing hook manager, reusing hook configuration or scripts, or bootstrapping hooks for fresh clones.

How do I install the Git Hook skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add bolasblack/claude-skills --skill git-hook. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Git Hook popular?

It lives in bolasblack/claude-skills, which has 5 GitHub stars and 0 forks.

Related skills

Caveman

5

bolasblack/claude-skills

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

Images, Video & Audio

Agent Centric

5

bolasblack/claude-skills

Track decisions (AGD) with validation and indexing. Use when making design decisions, recording important choices, discussing trade-offs, or when user mentions AGD or decision record.

AI, LLMs & Agents

Codex

5

bolasblack/claude-skills

OpenAI Codex second opinion via the codex CLI — three modes. Review: independent diff review with a pass/fail gate. Challenge: adversarial pass that tries to break the code. Consult: ask Codex anything, with session continuity for follow-ups. Use when the user says "codex review", "codex challenge", "ask codex", or wants a second opinion from Codex.

Software Development

Git Platform CLI

8

Freddy-CHEN-ux/00_claude_skills

MANDATORY: Use gh (GitHub) or glab (GitLab) CLI for ALL issue/task management. Unified workflow across platforms.

Git & Code Review

Git Commit Message

8

Freddy-CHEN-ux/00_claude_skills

Auto-generates conventional commit messages from git diffs with tiered format enforcement. Analyzes staged changes to produce meaningful commit messages following Conventional Commits specification.

Git & Code Review

Git Workflow

8

Freddy-CHEN-ux/00_claude_skills

Use when making commits, creating branches, or managing Git operations. Ensures consistent Git practices and proper commit messages.

Git & Code Review

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.