Defined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/check-skill-used.sh"
}
],
"matcher": "Write|Edit|Update|Create|Read|Grep|Search"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/update-docs.sh ${CLAUDE_PLUGIN_ROOT}"
},
{
"type": "command",
"command": "SESSION_ID=$(jq -r '.session_id') && rm -f /tmp/rosie_skill_usage_${SESSION_ID}.log"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "INPUT=$(cat) && SESSION_ID=$(echo \"$INPUT\" | jq -r '.session_id') && echo \"$INPUT\" | jq -r '.tool_input.skill' >> /tmp/rosie_skill_usage_${SESSION_ID}.log"
}
],
"matcher": "Skill"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/check-version.sh ${CLAUDE_PLUGIN_ROOT}"
},
{
"type": "command",
"command": "SESSION_ID=$(jq -r '.session_id') && rm -f /tmp/rosie_skill_usage_${SESSION_ID}.log"
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 6
},
"eventStats": {
"PreToolUse": 1,
"SessionEnd": 2,
"PostToolUse": 1,
"SessionStart": 2
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 3,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 6
}
}