Lightlines
By anthropics

hook-development

anthropics

Build safer, event-driven Claude Code hooks.

plugin development

What it does

Guides creation of Claude Code hooks that validate operations, enforce policies, add context, and integrate external tools.

When to use it

Use when creating Claude Code hooks, adding hook events, validating tool use, or blocking dangerous commands.

How to use it

Give it a Claude Code plugin project and the hook you want; it creates and tests the hook configuration and scripts.

What you provide

  • An existing project

Access · 1

This skill

claude --debug

Execute

Starts a Claude Code debug session

What you need · 3

The Claude Code CLI is used to load and test the completed hooks in debug mode.

jq is required by the testing helper to validate and display hook JSON.

The testing helper requires the timeout command to limit hook execution time.


About this skill

Visibility
Public
Repository
anthropics/claude-plugins-official
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
11