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:
asepharyana
2026-07-26 12:09:48 +07:00
parent 6612cd9163
commit f149899ad5
2 changed files with 31 additions and 65 deletions
+23
View File
@@ -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
}]
}]
}
}