hook-creator

Create and configure Claude Code hooks for lifecycle events like PreToolUse and PostToolUse.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/jeehoon0310/claude-code-config --skill hook-creator-jeehoon0310
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hook-creator
Source: https://github.com/jeehoon0310/claude-code-config/tree/main/project/skills/hook-creator
Command: npx skills add https://github.com/jeehoon0310/claude-code-config --skill hook-creator-jeehoon0310

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Hook creators streamline building Claude Code hooks to automatically run commands and enforce policies at lifecycle events such as PreToolUse, PostToolUse, and Notification, reducing manual setup and errors.

Core Features & Use Cases

  • Workflow-driven hook creation: define events, matchers, and actions to plug into Claude Code.
  • Reusable templates and references: leverage provided examples to accelerate integration with your projects.
  • Project-scoped storage and validation: ensures hooks align with repository policies and run in the intended scope.

Quick Start

Create a new hook by selecting an event, configuring a matcher, and saving the configuration to your project’s hook repository.

Frequently Asked Questions about hook-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Claude Code behavior using lifecycle events?

You can automate Claude Code behavior by creating hooks that trigger custom actions on lifecycle events like PreToolUse and PostToolUse. Configure event matchers and actions to enforce policies, run commands, or send notifications automatically.

What are Claude Code hooks and when do I need them?

Claude Code hooks are event-driven configurations that execute commands at specific lifecycle stages. You need them to automate formatting, logging, and custom actions across projects without manual intervention.

How do I configure a hook for PreToolUse or PostToolUse events?

To configure a hook, select a lifecycle event like PreToolUse or PostToolUse, define a matcher pattern to target specific tools, specify the action or command, and save the validated configuration to your project’s hook repository.

Can I use templates and references to create Claude Code hooks?

Yes, you can leverage provided templates and references to accelerate hook creation. These examples help you quickly integrate event-driven configurations into your projects while ensuring correct setup and safe operation.

Does Claude Code hook configuration support project-scoped validation?

Yes, Claude Code hook configuration enforces project-scoped storage and validation. This ensures hooks align with repository policies and run only in the intended scope, preventing configuration errors.

Why are my Claude Code hooks not triggering on specific events?

Hooks may fail to trigger if matcher patterns are incorrectly configured or if the hook is not saved in the correct project-scoped repository. Use the built-in validation mechanisms to check configurations and ensure proper event alignment.