Stats
Actions
Tags
From homebrew-dev
After every Write/Edit tool call, checks if a specification or plan document was written and nudges the user to do a preflight review.
1 event · 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
Write|Editbash -c 'FILE="$TOOL_INPUT_FILE_PATH"; if [[ "$FILE" == Formula/*/*.rb ]]; then echo "🔍 Validating formula: $FILE"; ruby -c "$FILE" && echo "✓ Ruby syntax OK" || exit 1; fi'10msbash -c 'FILE="$TOOL_INPUT_FILE_PATH"; if [[ "$FILE" == Formula/*/*.rb ]]; then echo "🎨 Style check..."; brew style "$FILE" 2>&1 | head -20; echo "✓ Style check complete"; fi'30msbash -c 'FILE="$TOOL_INPUT_FILE_PATH"; if [[ "$FILE" == Formula/*/*.rb ]]; then echo "📋 Audit check..."; brew audit --new "$FILE" 2>&1 | head -30 || echo "⚠ Audit issues found (review above)"; fi'60msnpx claudepluginhub arustydev/agents --plugin homebrew-dev