← 教程列表
news

hooks.json using the reusable wrapper

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 11 阅读

```json { "hooks": { "SessionStart": [ { "matcher": "startup", "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd\" session-start.sh" } ] } ], "PreToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/run-hook.cmd\" validate-bash.sh" } ] } ] } } ```

← 返回教程列表 AI8899 · 内容仅供学习参考