hook-design

Community

Automate Claude Code hook design for deterministic enforcement.

Authorarielybarak
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies the creation of Claude Code hooks for deterministic enforcement of rules and actions without requiring the model to remember them.

Core Features & Use Cases

  • Design & Write Hooks: Create effective Claude Code hooks for various events, such as PreToolUse, PostToolUse, UserPromptSubmit, etc.
  • Hook Types: Choose between blocking and advisory hooks, and determine the right event to trigger them.
  • Templates & Testing: Use bundled templates for common hook types and test them with sample events before wiring them into the setup.
  • Safety Laws: Adhere to safety laws such as fail open, be fast, and advisory by default to ensure reliable and effective hooks.
  • Archetypes & Reference: Offers archetypes and a deep dive reference for event taxonomy, exit-code semantics, and JSON output control.

Quick Start

Run the hook-design skill to design a Claude Code hook for a specific event.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hook-design
Download link: https://github.com/arielybarak/agent-lab/archive/main.zip#hook-design

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.