hook-creator

Create and configure JSON-based Claude Code hooks for lifecycle events.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Wondermove-Inc/wlab-claude-code-marketplace --skill hook-creator-wondermove-inc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hook-creator
Source: https://github.com/Wondermove-Inc/wlab-claude-code-marketplace/tree/main/plugins/plugin-creator/skills/hook-creator
Command: npx skills add https://github.com/Wondermove-Inc/wlab-claude-code-marketplace --skill hook-creator-wondermove-inc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill lets you create and tune hooks that run at Claude Code lifecycle events to automate formatting, logging, and governance.

Core Features & Use Cases

  • Event-driven hooks for PreToolUse, PostToolUse, Notification, etc.
  • Matcher patterns to target specific tools or allow all
  • Storage location options: user settings or project settings
  • Common use cases: auto-formatting, logging, and enforcement of policies

Quick Start

Create a JSON hook configuration file under your chosen storage location (project .claude/settings.json or user ~/.claude/settings.json) describing events and tools to hook into, as shown in the examples in references/hook-events.md.

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 with hooks?

Hooks are event-driven configurations that run at Claude Code lifecycle events like PreToolUse and PostToolUse. Create a JSON hook configuration in your project's .claude/settings.json or user ~/.claude/settings.json to automate formatting, logging, and policy enforcement across tool execution.

What events can I hook into with Claude Code?

Claude Code supports PreToolUse (before tool execution), PostToolUse (after tool execution), and Notification events. Each event type lets you define matcher patterns to target specific tools or apply actions globally, with full control over execution context and exit code semantics.

Can I use hooks to enforce file protection and custom permissions?

Yes. Hooks support file protection and custom permission enforcement as part of their governance capabilities. Define matchers and commands in your hook configuration to apply policies at PreToolUse or PostToolUse events across user, project, or session contexts.

Where should I store my Claude Code hook configuration?

Store hook configurations as JSON in either your user settings (~/.claude/settings.json) for personal use or in project settings (.claude/settings.json) for team-wide policies. Choose based on whether you want hooks to apply globally or to a specific project.

How do I test a new hook before deploying it?

Define your hook configuration in JSON with event type, matcher patterns, and command logic, then place it in your chosen storage location. Test by triggering the matching event—Claude Code parses stdin JSON input with jq and executes your hook command, allowing you to verify formatting, logging, or policy enforcement before rollout.

Do hooks work across different contexts in Claude Code?

Hooks operate across user, project, and session contexts. This lets you set global policies at the user level, override them per project, and apply temporary hooks for specific sessions—giving you fine-grained control over when and where automation and governance run.