Stats
Actions
Tags
From dev-core
Governance hooks that gate Task, Bash, and Edit/Write/MultiEdit tool calls with token budgets, worktree checks, and preflight validation. Runs bash scripts on session start/stop and after Task delegation.
5 events · 5 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
BashTOOL_INPUT=$(cat /dev/stdin); CMD=$(echo "$TOOL_INPUT" | jq -r '.tool_input.command // empty' 2>/dev/null); if echo "$CMD" | grep -qEi '(rm\s+-rf\s+[/~]|drop\s+(table|database)|truncate\s+table|git\s+push\s+--force\s+(origin\s+)?(main|master)|git\s+reset\s+--hard)'; then echo 'BLOCKED: 危険なコマンドを検出しました' >&2; exit 2; fiWrite|EditTOOL_INPUT=$(cat /dev/stdin); FILE=$(echo "$TOOL_INPUT" | jq -r '.tool_input.file_path // empty' 2>/dev/null); if [ -n "$FILE" ] && echo "$FILE" | grep -qE '\.(ts|tsx|js|jsx|json|css|md|vue|php)$'; then npx prettier --write "$FILE" 2>/dev/null; fi; exit 010plugins reuse this hooks config
First indexed Jan 10, 2026
Showing the 6 earliest of 10 plugins
npx claudepluginhub tadokoro-ryusuke/cc-plugins --plugin dev-core