create-hooks

Create and manage Claude Code hooks for event-driven governance.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor --skill create-hooks-sjdjdiejdrirhdkjej
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-hooks
Source: https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor/tree/main/.claude/skills/create-hooks
Command: npx skills add https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor --skill create-hooks-sjdjdiejdrirhdkjej

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams implement consistent and safe event-driven hooks in Claude Code by guiding you through creation, configuration, and debugging of hooks, ensuring reliable automation and governance.

Core Features & Use Cases

  • Hook creation and management for PreToolUse, PostToolUse, Stop, SessionStart, and UserPromptSubmit
  • Validation, safety checks, and governance to block unsafe commands or inject context
  • Context injection, logging, and workflow automation to streamline development sessions

Quick Start

Create a hooks.json at the project or user level that defines a sample PreToolUse hook to log commands and block dangerous patterns, then run claude --debug to verify hook execution and decisions.

Frequently Asked Questions about create-hooks

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

FAQPage Schema
How do I create hooks in Claude Code to automate workflows?

To create Claude Code hooks, you define event-driven configurations in a hooks.json file to automate workflows, inject context, and validate tool usage across sessions. This skill guides you through authoring and managing these JSON-based hook setups.

What Claude Code hook events can I use for session governance?

Claude Code hook events for session governance include PreToolUse, PostToolUse, Stop, SessionStart, and UserPromptSubmit. These events allow you to block unsafe commands, log tool executions, and inject context for reliable automation.

How do I debug Claude Code hooks that are not triggering?

To debug Claude Code hooks that are not triggering, run your session with the claude --debug command to verify hook execution and decisions. This skill provides guidance on validating hook configurations and troubleshooting event-driven workflows.

Do I need shell scripting experience to configure Claude Code hooks?

You need basic familiarity with shell scripting or JSON-based hook configurations to set up Claude Code hooks. This skill assumes foundational knowledge of these formats to help you author, validate, and manage event-driven governance.

Can I block dangerous commands automatically with Claude Code hooks?

You can block dangerous commands automatically by defining a PreToolUse hook in your hooks.json file to validate commands and enforce safety checks. This skill helps you implement these validation and governance rules across your sessions.