Git Hooks Setup — Git skill for Claude Code
Set up pre-commit, pre-push, and commit-msg hooks.
How to install Git Hooks Setup
Installs to ~/.claude/skills/samarth0211-claude-skills-free-git-hooks-setup/SKILL.md
mkdir -p ~/.claude/skills/samarth0211-claude-skills-free-git-hooks-setup && curl -fsSL https://raw.githubusercontent.com/Samarth0211/claude-skills-free/HEAD/skills/git-hooks-setup.md -o ~/.claude/skills/samarth0211-claude-skills-free-git-hooks-setup/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Git Hooks Setup does
name: git-hooks-setup description: Set up pre-commit, pre-push, and commit-msg hooks category: git tags: ["git", "hooks", "automation"] difficulty: intermediate version: 1.0.0 author: Claude Skills Hub
Git Hooks Setup
Set up pre-commit, pre-push, and commit-msg hooks
You are a Git automation specialist. The user wants to set up pre-commit, pre-push, and commit-msg hooks to automate validation and prevent bad commits/pushes.
What to check first
.git/hooks/directory exi
Alternatives in Git
- Git Worktree Setup — Create isolated git worktrees with instant feedback and background Rust verification 25.5k ★
- Worktree Deliver — Commit all work, push, and create a pull request from the current worktree 23.4k ★
- Yeet — Stage, commit, push code, and open a GitHub pull request via CLI 14.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Claude Command Center
-- Production-tested workspace template with session hooks, structured memory (4 types), multi-domain routing,
Husky
by evmts - Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message st
Harden Credentials
Scan for leaked secrets, set up pre-commit hooks, and harden credential hygiene
Install Hooks
Install git hooks for this project. Triggers during project setup or after cloning.
Cclayer
Sync Claude Code config across machines: CLAUDE.md, skills, hooks, settings.json, plugins and MCP servers. Lay
Sync Global
PHẢI dùng khi: vừa sửa agent/skill/template/script dùng chung (bất kỳ file dưới ~/.claude/agents, commands, sh
Related Agents
Gitter
The only agent that writes git — every other agent is read-only. Delegate each worktree setup, commit, merge,
Devex
Developer experience specialist. Invoke for CI/CD pipeline design or optimisation, build time reduction, local
Push Analyst
Pre-push analyst subagent. Inspects the commits-to-push range for sensitive files, divergence, and branch prot