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 **/posts/**/*.md) python3 -c \"import sys,yaml; yaml.safe_load(open(sys.argv[1]).read().split('\\''---'\\''[1])\" \"$FILE\" 2>/dev/null && echo \"✓ Frontmatter valid\" || echo \"⚠ Frontmatter validation skipped\";; esac; true'",
"timeout": 10
},
{
"type": "command",
"command": "bash -c 'FILE=\"$TOOL_INPUT_FILE_PATH\"; case \"$FILE\" in **/posts/**/*.md) if grep -qE \"^\\`\\`\\`$\" \"$FILE\" 2>/dev/null; then echo \"⚠ Code block without language tag found\"; fi;; esac; true'",
"timeout": 5
}
],
"matcher": "Write|Edit"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 2
},
"eventStats": {
"PostToolUse": 2
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}