Automatically commits code changes with AI-generated messages after file edits.
npx claudepluginhub arustydev/aiDefined 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"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 3
},
"eventStats": {
"PostToolUse": 3
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}