hook-creator

Scaffold Claude Code CLI hooks with JSON schema validation and templates.

60|6|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/evan043/claude-cli-advanced-starter-pack --skill hook-creator-evan043
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hook-creator
Source: https://github.com/evan043/claude-cli-advanced-starter-pack/tree/main/templates/skills/hook-creator
Command: npx skills add https://github.com/evan043/claude-cli-advanced-starter-pack --skill hook-creator-evan043

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines the creation of Claude Code CLI hooks by providing standardized templates, robust guidance, and a consistent project layout, reducing setup time and potential mistakes.

Core Features & Use Cases

  • JSON schema configuration and clear event types to enforce consistent hook behavior.
  • Matcher patterns, validation, and error-handling templates to prevent misfires and security issues.
  • Common use case: when adding new hooks, updating existing ones, or refining hook architectures across projects.

Quick Start

  • Run the hook-creator to scaffold a new hook skeleton.
  • Customize the generated files to match your project's security and workflow requirements.
  • Integrate the new hook into your Claude CLI configuration and test with sample events.

Frequently Asked Questions about hook-creator

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

FAQPage Schema
How do I create Claude Code CLI hooks with proper JSON schema validation?

Create Claude Code CLI hooks using standardized templates that enforce JSON schema validation and structured directory layouts. This approach ensures consistent hook behavior and reduces setup time by providing scaffolding for event types and matchers.

What are the best practices for configuring event types and matchers in Claude hooks?

Configuring event types and matchers in Claude hooks requires defining clear JSON schema patterns and applying validation templates. Using structured directory layouts and error-handling templates prevents misfires and ensures secure hook behavior across projects.

Can I use this hook scaffolding process to update existing Claude Code hooks?

Yes, the hook scaffolding process supports both new hook creation and existing hook updates. It provides standardized templates and robust guidance to refine hook architectures, ensuring JSON schema validation and secure configuration across updates.

How do I validate Claude Code hook configurations to prevent security issues?

Validate Claude Code hook configurations by applying JSON schema validation and matcher pattern templates. This skill enforces error-handling templates and structured directory layouts to prevent security issues and misfires during hook execution.

Does the hook-creator skill work without external dependencies for CLI hook scaffolding?

Yes, the hook-creator skill operates without external dependencies to scaffold CLI hook skeletons. It provides built-in templates for JSON schema configuration, event types, and matchers to standardize hook behavior independently.

Why do my Claude Code hooks misfire when triggering on specific events?

Claude Code hooks misfire when event types and matchers lack proper JSON schema validation. Implementing structured directory layouts and error-handling templates prevents misfires by enforcing consistent hook behavior and secure configuration patterns.