Stats
Actions
Tags
From wigtn-plugins
Prevents unsafe operations during Bash/Write/Edit tool calls (stdin, process storms, cwd deletion) and validates file edits with version, dependency, native binary, and lint checks. Runs cleanup and linting on stop.
3 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
bash -c 'echo "Pipeline session complete. Review changes before pushing."'Bashbash -c 'INPUT=$(cat); CMD=$(echo "$INPUT" | jq -r ".tool_input.command // empty"); if echo "$CMD" | grep -qE "rm\s+-rf\s+/|git\s+push\s+.*--force|git\s+push\s+.*-f\s|git\s+reset\s+--hard|drop\s+database|DROP\s+TABLE"; then echo "BLOCKED: Dangerous command detected. Please confirm before executing: $CMD" >&2; exit 2; fi'Bashbash -c 'INPUT=$(cat); CMD=$(echo "$INPUT" | jq -r ".tool_input.command // empty"); if echo "$CMD" | grep -qE "git[[:space:]]+commit" && echo "$CMD" | grep -q "Quality Score:"; then ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo .); if [ -z "$(find "$ROOT/.wigtn/gate-pass" -mmin -30 2>/dev/null)" ]; then echo "BLOCKED: WIGTN quality gate did not pass for this pipeline commit. Message has a Quality Score: line but no fresh PASS verdict ($ROOT/.wigtn/gate-pass). Run the /auto-commit quality gate, or use --no-review for an emergency hotfix (omits the Quality Score line)." >&2; exit 2; fi; if [ -x "$ROOT/.wigtn/checks.sh" ]; then if ! ( cd "$ROOT" && ./.wigtn/checks.sh >/tmp/wigtn-checks.log 2>&1 ); then echo "BLOCKED: WIGTN objective checks (.wigtn/checks.sh) failed — a fabricated review cannot pass real test/typecheck exit codes. See /tmp/wigtn-checks.log." >&2; exit 2; fi; fi; fi'Write|Editbash -c 'INPUT=$(cat); FILE=$(echo "$INPUT" | jq -r ".tool_input.file_path // .tool_input.filePath // empty"); if echo "$FILE" | grep -qE "\.(tsx?|jsx?|css|scss)$"; then echo "Reminder: Run formatter (prettier/eslint) on $FILE before committing."; fi'bash -c 'INPUT=$(cat); FILE=$(echo "$INPUT" | jq -r ".tool_input.file_path // .tool_input.filePath // empty"); if echo "$FILE" | grep -qE "\.(ts|js|py|go|java)$"; then echo "Reminder: Verify backend pattern compliance (error handling, input validation, logging) for $FILE."; fi'npx claudepluginhub wigtn/wigtn-plugins --plugin wigtn-plugins46plugins reuse this hooks config
First indexed Dec 13, 2025
Showing the 6 earliest of 46 plugins