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\"; case \"$FILE\" in *design-tokens*.json|*tokens.json) python3 -c \"import json,sys; data=json.load(open(sys.argv[1])); tokens=[k for k in data if not k.startswith(chr(36))] if isinstance(data,dict) else []; print(f\\\"✓ Valid design tokens: {len(tokens)} root keys\\\") if tokens else print(\\\"⚠ No tokens found\\\")\" \"$FILE\" 2>/dev/null || echo \"✓ Token file saved\";; esac; true'",
"timeout": 5
}
],
"matcher": "Write|Edit|MultiEdit"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 1
},
"eventStats": {
"PostToolUse": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}