hook-developer
Complete Claude Code hooks reference - input/output schemas, registration, testing patterns
Security Assessment
Detected risks:
About hook-developer
The 'hook-developer' skill provides a comprehensive reference for developing and managing Claude Code hooks. It assists developers in crafting hooks with the correct input and output schemas, ensuring compatibility and functionality within the Claude system. This skill is designed to help users integrate hooks into their processes, debug their input/output formats, and register hooks within the settings.json configuration. It offers a structured framework for understanding when and how different hooks are triggered, which is critical for both new development and troubleshooting existing hooks.
FAQ
How do I create a new hook?
To create a new hook, define the input and output schemas according to the provided reference for each specific hook type. Follow the registration guidelines in the settings.json file to activate the hook.
Can I modify tool execution using hooks?
Yes, hooks like 'PreToolUse' allow you to block or modify tool execution before it happens. You can customize the behavior based on the hook's input and output schema.
What are the possible values for 'permission_mode'?
The 'permission_mode' field can have values such as 'default', 'plan', 'acceptEdits', and 'bypassPermissions'. These determine how the system handles permissions during hook events.
Are hooks compatible with all tool types?
Hooks are designed to work with both bash commands and LLM (Large Language Model) evaluations. The tool-specific behavior depends on the type of hook, whether 'command' (bash) or 'prompt' (LLM evaluation).
What happens if a hook blocks execution?
If a hook blocks execution, it will stop the process and provide a reason. The system message or stderr will be shown, depending on the specific hook event. For example, 'PreToolUse' will block tool execution if the permission decision is 'deny'.
Install hook-developer
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
parcadei/Continuous-Claude-v2