fix(hooks): restore hooks.json in plugin dir, remove from settings.local
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
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"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
|
||||
}]
|
||||
}]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user