add-hook

Create and configure Claude Code hooks with structured setup and validation.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/youhei-ushio/dotclaude-public --skill add-hook-youhei-ushio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-hook
Source: https://github.com/youhei-ushio/dotclaude-public/tree/main/skills/global/add-hook
Command: npx skills add https://github.com/youhei-ushio/dotclaude-public --skill add-hook-youhei-ushio

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of adding new hooks to Claude Code, ensuring the correct setup and minimizing the risk of configuration errors that can block tools.

Core Features & Use Cases

  • Automated Hook Creation: Provides a structured approach to create new hooks for various events like PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, and PermissionRequest.
  • Configuration Assistance: Guides through the steps of setting up settings.json and validating the hook's configuration.
  • Safety Checks: Includes checks for missing hook files to prevent critical issues that can block tools.

Quick Start

Create a new hook for the PreToolUse event named 'my-custom-hook' and add it to the settings.

Frequently Asked Questions about add-hook

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

FAQPage Schema
How do I add a hook to Claude Code settings.json without blocking tools?

Adding a Claude Code hook safely requires structured setup and validation in settings.json. This process includes safety checks for missing hook files to prevent configuration errors that block tools.

What Claude Code hook events can I configure for tool management?

Configurable Claude Code hook events include PreToolUse, PostToolUse, UserPromptSubmit, SessionStart, and PermissionRequest. These events allow structured management of tool usage and event handling.

Why do my Claude Code hooks block tools after configuration?

Claude Code hooks block tools when configuration errors occur from missing hook files. Validating the hook's configuration and running safety checks prevents these critical tool blockages.

Can I automate Claude Code hook creation for multiple events?

Automated Claude Code hook creation provides a structured approach to generate hooks for multiple events. It guides you through setting up and validating settings.json to ensure robust event handling.

What is the best way to configure Claude Code hooks for PreToolUse events?

Configuring Claude Code hooks for PreToolUse events is best handled through automated creation. This provides structured setup, configuration assistance for settings.json, and validation to prevent errors.