Defined inline in plugin.json manifest
{
"Stop": [
{
"hooks": [
{
"type": "prompt",
"prompt": "${CLAUDE_PLUGIN_ROOT}/hooks/stop-auto-commit.py",
"timeout": 30
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/git-to-jj-translator.py"
}
],
"matcher": "Bash",
"condition": "args.command matches '^git '"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "jj fix -s @ 2>/dev/null || true"
}
],
"matcher": "Edit|MultiEdit"
},
{
"hooks": [
{
"type": "command",
"command": "jj fix -s @ && echo '✓ Formatting applied' || echo '⚠️ Formatting failed but continuing'"
}
],
"matcher": "Bash",
"condition": "args.command matches '(jj (describe|new|commit)|/jj:(commit|new))'"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "prompt",
"prompt": "${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt-commit.py",
"timeout": 30
}
]
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"prompt": 2,
"command": 3
},
"eventStats": {
"Stop": 1,
"PreToolUse": 1,
"PostToolUse": 2,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 3
}
}