Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Git safety hooks for Claude Code that enforce branch workflow, block dangerous commands, and suggest worktrees for feature work.
Unified entry point that runs all git safety checks:
--no-verify/-n on git commit/push-m/--message
text and -m "$(cat <<'EOF' ...)" heredoc bodies; can't see messages from
-F/editor-based commits)Detects PR merges and provides worktree cleanup instructions.
By default, commits on main/master are blocked. To allow direct commits in
specific repos (e.g., documentation-only repos), add them to
~/.config/claude-hooks/config.json:
{
"protected_branch_allowlist": [
"~/code/work/thoughts"
]
}
Paths support ~ expansion. Matched against the repo root
(git rev-parse --show-toplevel). Allowlisted repos get an approval prompt
instead of a hard block.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub steeef/claude-hooks --plugin git-hooksPlugins from other owners that cover similar ground