Provides comprehensive guidance and implementation patterns for creating event-driven automation hooks in Claude Code plugins.
This skill empowers developers to extend Claude Code's capabilities through custom hooks that intercept and react to lifecycle events. Whether implementing safety validations with PreToolUse, verifying task completion with Stop hooks, or automating environment setup via SessionStart, it provides standardized patterns for both LLM-driven prompt hooks and deterministic bash-based command hooks. It is an essential resource for teams looking to enforce coding standards, prevent dangerous operations, and create seamless, context-aware development workflows that integrate Claude directly into their existing toolchains.
주요 기능
01Environment variable persistence across sessions via CLAUDE_ENV_FILE
02Lifecycle management for PreToolUse, PostToolUse, Stop, and SessionStart events
030 GitHub stars
04Support for advanced prompt-based hooks for context-aware reasoning and validation
05Command-based bash hooks for deterministic system checks and external tool integration
06Comprehensive security patterns for path safety and input validation in autonomous agents
사용 사례
01Automatically loading project-specific context and environment variables upon session start
02Enforcing quality gates by validating task completion criteria before Claude stops work
03Blocking dangerous bash commands or unauthorized file writes during autonomous sessions