Stats
Actions
Tags
From build-second-brain
{"riskFlags": {"touchesBash": true, "matchAllTools": false, "touchesFileWrites": true}, "typeStats": {"command": 6}, "eventStats": {"Stop": 1, "PreCompact": 1, "PreToolUse": 2, "PostToolUse": 1, "SubagentStop": 1}, "originCounts": {"absolutePaths": 0, "pluginScripts": 0, "projectScripts": 0}, "timeoutStats": {"commandsWithoutTimeout": 0}}
5 events · 6 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
*bash -c 'PD="${CLAUDE_PROJECT_DIR:-$PWD}"; if [ -f "$PD/.second-brain/config.md" ]; then profile="$PD/second-brain/profile/engineer-profile.md"; progress="$PD/.second-brain/progress.md"; errors=""; if [ ! -f "$profile" ]; then errors="Profile not generated at $profile."; fi; if [ -f "$progress" ] && grep -qE "^[[:space:]]*- \[ \]" "$progress"; then errors="$errors Incomplete items in progress.md."; fi; if [ -n "$errors" ]; then echo "STOP BLOCKED: $errors" >&2; exit 2; fi; echo "Build complete — all checks passed."; fi; exit 0'10ms*bash -c 'PD="${CLAUDE_PROJECT_DIR:-$PWD}"; if [ -f "$PD/.second-brain/config.md" ]; then echo "Context compacting — re-read $PD/.second-brain/config.md and $PD/.second-brain/progress.md to restore state. All findings are in scratchpad files on disk."; else echo "Context compacting — all findings should already be in scratchpad files on disk."; fi'5msWrite|Editbash "$CLAUDE_PLUGIN_ROOT/hooks/scripts/validate-write-paths.sh"15msBashbash -c 'PD="${CLAUDE_PROJECT_DIR:-$PWD}"; if [ -f "$PD/.second-brain/config.md" ]; then input=$(cat); cmd=$(printf "%s\n" "$input" | jq -r ".tool_input.command // empty"); if echo "$cmd" | grep -qE "\./\.second-brain/|\./second-brain/"; then echo "WARN: Relative path in bash command. Use absolute paths from config.md." >&2; exit 2; fi; fi; exit 0'10msWritebash "$CLAUDE_PLUGIN_ROOT/hooks/scripts/validate-scratchpad-output.sh"15ms*bash "$CLAUDE_PLUGIN_ROOT/hooks/scripts/validate-agent-completion.sh"15msnpx claudepluginhub boparaiamrit/build-second-brain --plugin build-second-brain