/plugin marketplace add webdevike/autoclaude/plugin install webdevike-autoclaude@webdevike/autoclaudeDefined in hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "filepath=\"$CLAUDE_FILE_PATH\"; if [[ \"$filepath\" == *.ts ]]; then npx tsc --noEmit \"$filepath\" 2>&1 | head -20 || true; fi"
}
],
"matcher": "Edit|Write|MultiEdit"
},
{
"hooks": [
{
"type": "command",
"command": "filepath=\"$CLAUDE_FILE_PATH\"; if [[ \"$filepath\" == *tasks.yaml ]]; then check-jsonschema --schemafile \"${CLAUDE_PLUGIN_ROOT}/skills/PRD/schemas/tasks.schema.json\" \"$filepath\" 2>&1 || echo '{\"decision\": \"block\", \"reason\": \"tasks.yaml failed schema validation\"}'; fi"
}
],
"matcher": "Edit|Write"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 2
},
"eventStats": {
"PostToolUse": 2
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 2
}
}