claude-code-hooks
CommunityAutomate Claude with custom event-driven scripts.
Authorhgeldenhuys
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides comprehensive guidance for implementing automated scripts that execute at specific points in Claude Code's workflow. It solves the problem of needing custom logic, validation, or context injection that isn't natively supported, enabling you to automate repetitive tasks and enforce consistent behavior without manual intervention.
Core Features & Use Cases
- Event-Driven Automation: Learn to trigger scripts at 9 key Claude Code events, such as
PreToolUse(before a tool runs) orUserPromptSubmit(before Claude processes your input). - Custom Logic & Validation: Implement security checks to block dangerous commands, enforce coding standards, or dynamically inject session information into Claude's context.
- Use Case: Automatically format code after Claude writes or edits a file, ensuring all generated code adheres to your project's style guidelines without you lifting a finger.
Quick Start
Ask me how to implement a PostToolUse hook to automatically format TypeScript files after Claude writes them.
Dependency Matrix
Required Modules
None requiredComponents
Standard packageđź’» Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: claude-code-hooks Download link: https://github.com/hgeldenhuys/claude-hooks-sdk/archive/main.zip#claude-code-hooks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.