Defined in ./hooks/hooks.json
{
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "dart format --set-exit-if-changed $CLAUDE_PROJECT_DIR/lib || true",
"timeout": 30,
"description": "Auto-format Dart files after Edit tool"
}
],
"matcher": "Edit"
},
{
"hooks": [
{
"type": "command",
"command": "dart format --set-exit-if-changed $CLAUDE_PROJECT_DIR/lib || true",
"timeout": 30,
"description": "Auto-format Dart files after Write tool"
}
],
"matcher": "Write"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/check-flutter-sdk.sh || true",
"timeout": 10,
"description": "Verify Flutter SDK is available"
}
],
"matcher": "*"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "echo \"[PRPROMPTS] User submitted prompt at $(date)\" >> $CLAUDE_PROJECT_DIR/.prprompts/activity.log || true",
"timeout": 5,
"description": "Log user activity for analytics"
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 4
},
"eventStats": {
"PostToolUse": 2,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 3
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}