claude-hook-builder

Generate Claude Code hook configurations with YAML frontmatter and JSON schemas.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/stericishere/skills --skill claude-hook-builder-stericishere
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-hook-builder
Source: https://github.com/stericishere/skills/tree/main/anthropic/claude-hook-builder
Command: npx skills add https://github.com/stericishere/skills --skill claude-hook-builder-stericishere

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hooks creation for Claude Code can be error-prone and manual; this Skill provides an interactive, guided workflow to design, validate, and wire Claude Code hooks quickly and safely.

Core Features & Use Cases

  • Guided generation of hook configurations for PreToolUse, PostToolUse, UserPromptSubmit, Stop, and SessionStart events.
  • Templates and patterns for tool matchers, event scopes, and JSON outputs to streamline integration into settings.json.
  • Quick-start prompts and references to official docs to accelerate implementation and reduce misconfigurations.

Quick Start

Describe the hook you want to implement and Claude Code will guide you through creating and wiring it into settings.json.

Frequently Asked Questions about claude-hook-builder

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

FAQPage Schema
How do I create Claude Code hooks for PreToolUse and PostToolUse events?

Claude Code hooks for PreToolUse and PostToolUse events are created by configuring tool matchers and JSON outputs within settings.json. This Skill provides a guided workflow to generate, validate, and wire these event configurations quickly and safely.

What is a Claude Code hook and when do I need SessionStart or Stop events?

A Claude Code hook is an automation configuration that triggers scripts on events like SessionStart, Stop, or UserPromptSubmit. You need them to automate tasks and enforce specific behaviors before or after tool executions within your development environment.

Can I use templates to automate Claude Code hook creation in settings.json?

Yes, you can automate Claude Code hook creation using templates for tool matchers, event scopes, and JSON outputs. This Skill provides standardized schemas and templates to streamline integration into your settings.json file and reduce misconfigurations.

How do I add YAML frontmatter with name and description to a SKILL.md file?

Adding YAML frontmatter with name and description to a SKILL.md file requires defining standardized input/output schemas for hook events. This Skill ensures your SKILL.md includes the correct frontmatter and optional resource directories for hook generation.

Why are my Claude Code hooks not working with UserPromptSubmit events?

Claude Code hooks may fail with UserPromptSubmit events due to misconfigured tool matchers or invalid JSON outputs in settings.json. This Skill provides an interactive validation workflow to identify and fix these common hook misconfigurations.