Stats
Actions
Tags
From dev-core
Preserves session state across events (Stop, PreCompact), blocks dev servers unless run in tmux, and checks for console.log in modified files on stop. Uses bash scripts, may write state files.
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 0npx claudepluginhub tadokoro-ryusuke/cc-plugins --plugin dev-core