add-hook

This skill should be used when creating, modifying, or debugging Claude Code hooks. Triggers on phrases like "create a hook", "add a hook", "make a PreToolUse hook", "automate before tool runs", "block tool execution", "validate tool input", "log tool output", "hook for Write/Edit/Bash", "PostToolUse handler", "session start hook", or when working with files in .claude/hooks/ directory.

$ 安裝

git clone https://github.com/cmtkdot/xanbzs-toolkit /tmp/xanbzs-toolkit && cp -r /tmp/xanbzs-toolkit/skills/add-hook ~/.claude/skills/xanbzs-toolkit

// tip: Run this command in your terminal to install the skill