Streamlines the creation of type-safe Claude Code hooks using TypeScript and the cc-hooks-ts library.
This skill provides a standardized framework for developing robust, type-safe hooks to customize Claude Code's behavior. By utilizing the cc-hooks-ts library, developers can implement sophisticated event-driven logic for session initialization, pre-tool validation, and post-tool processing. It is particularly useful for teams looking to enforce security policies, automate documentation updates, or inject custom context into AI interactions using a familiar TypeScript environment and the Bun runtime.
主な機能
01Type-safe definitions for all major Claude Code event hooks
02Conditional execution logic based on environment or platform
03Support for custom tool schema extensions via TypeScript module augmentation
04Granular tool-level triggers for Read, Write, and Edit operations
05Structured context API for blocking actions or returning additional context
060 GitHub stars
ユースケース
01Validating project environment and dependencies during SessionStart
02Implementing security guardrails to prevent unauthorized directory access
03Automating the suggestion of 'knowledge' or 'learned' files after code modifications