Automates workflows and enforces guardrails by creating custom event-driven shell hooks for the Claude Code CLI.
This skill empowers developers to extend Claude Code's functionality by implementing event-driven hooks that trigger shell commands or LLM prompts. By integrating with core lifecycle events like tool usage, permission requests, or session starts, users can build robust guardrails, automate repetitive tasks such as linting and testing, and enforce organizational policies directly within their AI-driven development environment. It provides a standardized framework for managing these extensions, including security-focused snapshots, wildcard tool matching, and detailed input/output schemas for sophisticated automation logic.
Key Features
01Flexible wildcard matching for tools like Bash, npm, or Git commands
02Event-driven shell command execution for Pre and Post-tool usage
03Context-aware Prompt hooks for intelligent, AI-driven decision making
042 GitHub stars
05Custom guardrails to block dangerous operations using specific exit code patterns
06Comprehensive lifecycle event support including session management and subagent tasks
Use Cases
01Automatically running linters and formatters after Claude edits source code files
02Creating a security firewall to block or audit specific high-risk CLI commands
03Preventing accidental pushes to protected Git branches like main or master