hooks.json in ~/.claude/skills/hub-guide/hooks/hooks.json IS auto-detected by Claude Code for skills-dir plugins. Remove from settings.local.json to avoid duplication. - hooks.json restored with hooks wrapper + proper matchers - install.sh simplified, no settings.json manipulation
24 lines
542 B
JSON
24 lines
542 B
JSON
{
|
|
"hooks": {
|
|
"SessionStart": [{
|
|
"matcher": "startup|resume|compact",
|
|
"hooks": [{
|
|
"type": "command",
|
|
"command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-project.sh\"",
|
|
"shell": "bash",
|
|
"timeout": 10,
|
|
"async": false
|
|
}]
|
|
}],
|
|
"PreToolUse": [{
|
|
"matcher": "Write|Edit",
|
|
"hooks": [{
|
|
"type": "command",
|
|
"command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/scripts/detect-file-type.sh\"",
|
|
"shell": "bash",
|
|
"timeout": 10
|
|
}]
|
|
}]
|
|
}
|
|
}
|