hook-creator

Design and deploy Claude Code hooks for tool events and agent interactions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers rapidly design, configure, and manage Claude Code hooks to control agent behavior across tool events, reducing boilerplate and ensuring predictable lifecycles.

Core Features & Use Cases

  • Hook design and configuration: Define event-based hooks (PreToolUse, PostToolUse, Stop, etc.) and matcher patterns to tailor agent actions.
  • Workflow templates: Provide reusable workflows for common scenarios like logging, validation, or sequential agent execution.
  • In-Skill integration: Incorporates hooks directly in SKILL.md and supports Skill-level vs global hook scopes for precise control.
  • Use Case: Build a hook that logs tool usage, validates input, and triggers follow-up tasks after specific events.

Quick Start

Create a new Skill named hook-creator and add a SKILL.md frontmatter defining name and description; within SKILL.md, include a hooks block for PreToolUse and PostToolUse and optionally reference a references/ directory for examples.

Frequently Asked Questions about hook-creator

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

FAQPage Schema
How do I configure Claude Code hooks to orchestrate sequential agent execution?

Claude Code hooks orchestrate sequential agent execution by defining event-based configurations in SKILL.md. You specify PreToolUse and PostToolUse events with matcher patterns and simple command actions to trigger follow-up tasks automatically after specific tool interactions complete.

Can I scope Claude Code hooks to specific skills instead of applying them globally?

Claude Code hooks support both global and skill-scoped configurations for precise control over agent behavior. Skill-scoped hooks are defined directly in SKILL.md, ensuring event handling logic applies only when that specific skill is active rather than across all interactions.

What is the best way to log tool usage and validate input during Claude Code events?

Logging tool usage and validating input during Claude Code events requires defining PostToolUse and PreToolUse hooks with appropriate matcher patterns. This approach captures tool interactions for auditing and enforces input constraints before execution proceeds.

How do I add matcher patterns to PreToolUse hooks in SKILL.md?

Matcher patterns for PreToolUse hooks are configured in the SKILL.md frontmatter block. You define event names alongside these patterns to tailor agent actions, specifying simple command actions that execute when matching tool events occur during the lifecycle.

Does hook-creator support access control workflows for Claude Code agents?

Hook-creator supports access control workflows for Claude Code agents through configurable event-based hooks. By applying PreToolUse matchers and validation commands, you can restrict tool usage permissions and enforce security boundaries before agent actions execute.