creating-hooks
CommunityCreate Claude Code hooks to automate tasks.
AuthorBrendanShields
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you create Claude Code hooks to automate events within Claude Code workflows, reducing manual setup time and repetitive configuration.
Core Features & Use Cases
- Define hook events (PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, SessionEnd, Stop) and their behavior.
- Configure hook scripts and hook wiring in settings.json using templates from the templates/ directory.
- Automate common workflows such as logging, context injection, and validation at key moments to speed up development.
Quick Start
- Select a hook event to automate (e.g., PreToolUse or SessionStart).
- Create or customize a hook script in templates/ and reference it in your settings.json.
- Add the hook configuration to
.claude/settings.json. - Test the hook with a sample JSON input, e.g. echo '{"hook_event_name":"PreToolUse","tool_name":"Write"}' | bash ".claude/hooks/my-hook.sh"
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: creating-hooks Download link: https://github.com/BrendanShields/spec-flow/archive/main.zip#creating-hooks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.