From safety-hooks
Before a tool call (^[Bb][Aa][Ss][Hh]$): runs bash -c 'if test -f "${CLAUDE_PLUGIN_ROOT}/hooks/bash_hook.py"; then python3 "${…. Before a tool call (^[Ee][Dd][Ii][Tt]$): runs bash -c 'if test -f "${CLAUDE_PLUGIN_ROOT}/hooks/file_length_limit_hook.py"; the…. And 3 more.
2 events · 5 hooks
Ships in safety-hooks. Installing the plugin adds it to Claude Code.
Safety signals detected in this hook configuration
Event handlers and matchers — expand Raw configuration for the full JSON
^[Bb][Aa][Ss][Hh]$bash -c 'if test -f "${CLAUDE_PLUGIN_ROOT}/hooks/bash_hook.py"; then python3 "${CLAUDE_PLUGIN_ROOT}/hooks/bash_hook.py"; else echo "{\"decision\":\"approve\"}"; fi'10s^[Ee][Dd][Ii][Tt]$bash -c 'if test -f "${CLAUDE_PLUGIN_ROOT}/hooks/file_length_limit_hook.py"; then python3 "${CLAUDE_PLUGIN_ROOT}/hooks/file_length_limit_hook.py"; else echo "{\"decision\":\"approve\"}"; fi'10s^[Ww][Rr][Ii][Tt][Ee]$bash -c 'if test -f "${CLAUDE_PLUGIN_ROOT}/hooks/file_length_limit_hook.py"; then python3 "${CLAUDE_PLUGIN_ROOT}/hooks/file_length_limit_hook.py"; else echo "{\"decision\":\"approve\"}"; fi'10s^[Rr][Ee][Aa][Dd]$bash -c 'if test -f "${CLAUDE_PLUGIN_ROOT}/hooks/read_env_protection_hook.py"; then python3 "${CLAUDE_PLUGIN_ROOT}/hooks/read_env_protection_hook.py"; else echo "{\"decision\":\"approve\"}"; fi'10sbash -c 'if test -f "${CLAUDE_PLUGIN_ROOT}/hooks/allow_git_hook.py"; then python3 "${CLAUDE_PLUGIN_ROOT}/hooks/allow_git_hook.py"; else echo "{\"decision\":\"approve\"}"; fi'10sWhere this hook configuration is defined
Defined in hooks/hooks.json
56 plugins in 50 repositories ship this exact hooks config · first indexed Dec 17, 2025
npx claudepluginhub pchalasani/claude-code-tools --plugin safety-hooksOther plugins' hooks for the same job