Streamlines the creation of event-driven hooks to validate, log, and modify Claude's behavior during the development lifecycle.
This skill provides a comprehensive framework for implementing custom hooks within Claude Code, allowing developers to intercept tool usage and session events. It covers the configuration of hooks.json, the implementation of both script-based command hooks and AI-driven prompt hooks, and the management of critical event lifecycles like PreToolUse and SessionStart. By utilizing this skill, developers can enforce coding standards, automate cache refreshes, and capture session learnings, ensuring a more controlled and efficient AI interaction.
주요 기능
01Comprehensive event lifecycle coverage from SessionStart to Stop
020 GitHub stars
03Support for script-based Command hooks and semantic Prompt hooks
04Standardized hooks.json configuration and schema guidance
05Pre-built templates for validation scripts and exit code management
06Advanced tool matching using regex patterns for specific tool interception
사용 사례
01Automating environment setup or cache refreshing at the beginning of a Claude session
02Capturing architectural decisions or session learnings automatically when a task concludes
03Enforcing file modification standards by validating code before a Write or Edit tool executes