/plugin marketplace add judigot/ai/plugin install judigot-ai@judigot/aiDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Before finishing: Ensure commit messages are short and semantic. Verify no console.log statements were added."
}
],
"matcher": "*"
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Before writing files: Verify this change follows the coding standards (no console.log, use unknown instead of any, interfaces prefixed with 'I', handle null/undefined explicitly, use braces for void arrow functions)."
}
],
"matcher": "Write|Edit"
},
{
"hooks": [
{
"type": "prompt",
"prompt": "Before running bash: Use MSYS2 bash terminal, not PowerShell. Use POSIX-compliant sh syntax. Prefer awk over grep."
}
],
"matcher": "Bash"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "cat ${CLAUDE_PLUGIN_ROOT}/settings/rules.md"
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"prompt": 3,
"command": 1
},
"eventStats": {
"Stop": 1,
"PreToolUse": 2,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 1
}
}