Stats
Actions
Tags
From trunk-sync
Runs shell scripts before Write/Edit/Bash to remind of skills, and after Skill events to mark completion. Executes bash commands and writes files.
2 events · 3 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
BashINPUT=$(cat); CMD=$(printf '%s' "$INPUT" | jq -r '.tool_input.command // ""'); case "$CMD" in git\ clone\ *|git\ diff*|git\ log*|git\ show*|git\ -C\ *\ diff*|git\ -C\ *\ log*|git\ -C\ *\ show*|git\ -C\ *\ clone\ *) ;; git\ *|git) echo 'TRUNK-SYNC: Do NOT run git commands. The trunk-sync hook handles all git operations. Your only job is to fix file contents using Edit.' >&2; exit 2;; esaclocal_shellINPUT=$(cat); CMD=$(printf '%s' "$INPUT" | jq -r 'if (.tool_input.command | type) == "array" then .tool_input.command | join(" ") else .tool_input.command // "" end'); case "$CMD" in git\ clone\ *|git\ diff*|git\ log*|git\ show*|git\ -C\ *\ diff*|git\ -C\ *\ log*|git\ -C\ *\ show*|git\ -C\ *\ clone\ *) ;; git\ *|git) echo 'TRUNK-SYNC: Do NOT run git commands. The trunk-sync hook handles all git operations. Your only job is to fix file contents using Edit.' >&2; exit 2;; esacEdit|Write|Bash|apply_patch|local_shell${CLAUDE_PLUGIN_ROOT}/scripts/trunk-sync.shnpx claudepluginhub elimydlarz/claude-code-plugins --plugin trunk-sync