What problem does it solve?
This Skill empowers you to programmatically control Claude's behavior, automating tasks, enforcing standards, and customizing workflows without altering core code. It eliminates manual intervention for repetitive checks, notifications, and context injections, saving you time and reducing complexity in your development process.
Core Features & Use Cases
- Event-Driven Automation: Execute shell commands or LLM prompts in response to various Claude Code events like tool usage (
PreToolUse, PostToolUse), session lifecycle (SessionStart, SessionEnd), or user interactions (UserPromptSubmit).
- Workflow Customization & Safety: Implement custom validation logic (e.g., blocking destructive
git commands), automate code formatting after edits, inject project-specific context at session start, or trigger desktop notifications when Claude needs input.
- Flexible Hook Types: Choose between
command hooks for deterministic tasks (logging, external tool execution) and prompt hooks for complex, context-aware decision-making using an LLM.
Quick Start
"I need to create a hook that logs every bash command Claude executes to a file. Show me how to set it up."