npx claudepluginhub arustydev/agents --plugin homebrew-devDefined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash -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'",
"timeout": 10
},
{
"type": "command",
"command": "bash -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'",
"timeout": 30
},
{
"type": "command",
"command": "bash -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'",
"timeout": 60
}
],
"matcher": "Write|Edit"
}
]
}"Runs shell command after PostToolUse on Edit|Write events to handle post-edit dependencies. Performs file writes."