Automates file modifications and command execution triggered by tool usage, session events, and user prompts.
npx claudepluginhub xobotyi/cc-foundryDefined in hooks/hooks.json
{
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/sef-hook.js pre-compact",
"timeout": 5
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/sef-hook.js read",
"timeout": 5
}
],
"matcher": "Read"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/sef-hook.js write",
"timeout": 5
}
],
"matcher": "Edit|Write"
},
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/sef-hook.js skill",
"timeout": 5
}
],
"matcher": "Skill"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/sef-hook.js session-start",
"timeout": 5
}
],
"matcher": "startup|resume|clear|compact"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/sef-hook.js prompt",
"timeout": 5
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 6
},
"eventStats": {
"PreCompact": 1,
"PostToolUse": 3,
"SessionStart": 1,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 6,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}