hook-creator

Create and configure Claude Code hooks for lifecycle events.

6|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/GzuPark/claude-plugin-pack --skill hook-creator-gzupark
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hook-creator
Source: https://github.com/GzuPark/claude-plugin-pack/tree/main/plugins/creators/skills/hook-creator
Command: npx skills add https://github.com/GzuPark/claude-plugin-pack --skill hook-creator-gzupark

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Create and configure Claude Code hooks to customize agent behavior, enabling precise control over tool lifecycle, formatting, logging, notifications, permissions, and session actions.

Core Features & Use Cases

  • Hook creation and configuration for Claude Code across lifecycle events (PreToolUse, PostToolUse, PermissionRequest, UserPromptSubmit, SessionStart, SessionEnd, etc).
  • Templates and workflows to design, test, and deploy custom hooks, with a structured matcher and command pattern.
  • Real-world use case: automatically enforce code formatting after edits, log user prompts, and block unsafe edits through guardrails.

Quick Start

Create a new hook skeleton for Claude Code by running the hook-creation workflow and then customize its command, matcher, and storage location for your project.

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 hooks to customize agent behavior?

To create Claude Code hooks, you use a structured definition format with matchers and commands to control tool lifecycle events like PreToolUse, PostToolUse, and PermissionRequest. This allows precise customization of agent actions during workflows.

Can I automatically enforce code formatting and block unsafe edits with Claude Code?

Yes, you can automate code formatting after edits and block unsafe edits by configuring PostToolUse and PreToolUse hooks. These hooks act as guardrails to enforce security and formatting rules automatically during your workflow.

What lifecycle events are available for Claude Code hook configuration?

Claude Code hook configuration supports multiple lifecycle events including PreToolUse, PostToolUse, PermissionRequest, UserPromptSubmit, SessionStart, and SessionEnd. These events allow you to trigger actions like logging, notifications, and file protection.

How do I design, test, and deploy hooks for Claude Code workflows?

You design, test, and deploy hooks for Claude Code workflows by running a hook-creation workflow to generate a skeleton. You then customize the command, matcher, and storage location for your project using provided templates.

Does hook configuration work for session handling and logging user prompts?

Yes, hook configuration works for session handling and logging user prompts by utilizing SessionStart, SessionEnd, and UserPromptSubmit events. This enables you to capture session activity and log inputs automatically.