/plugin marketplace add Xpycode/LLM-Directions/plugin install xpycode-directions@Xpycode/LLM-DirectionsDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Before stopping: Was significant work done this session? Check if today's session log exists in docs/sessions/. If meaningful work was done but not logged, remind the user to run /log first. Approve if already logged or if this was a trivial session (just questions, no code changes)."
}
],
"matcher": "*"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "If this Bash command was a git commit that includes architectural changes (new patterns, tech choices, structural changes, new dependencies), briefly suggest running /decide to log the decision. Otherwise, continue silently without any message."
}
],
"matcher": "Bash"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/scripts/session-start.py\"",
"timeout": 10
}
],
"matcher": "*"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/scripts/doc-suggester.py\"",
"timeout": 5
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"prompt": 2,
"command": 2
},
"eventStats": {
"Stop": 1,
"PostToolUse": 1,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 2,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}