Lightlines
By anthropics

hook development

anthropics13.9k installs

Build Claude Code hooks that check tool use.

What it does

Guides the creation and testing of Claude Code plugin hooks for validating tool use and automating session events.

When to use it

Use when asked to create hooks, validate tool use, block dangerous commands, or implement event-driven automation.

How to use it

Give it a plugin hook requirement; it creates the hook configuration and any command scripts, validates them, and documents their use.

What you provide

  • An existing project

Latest review

What you need · 1

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


Access · 1

This skill

$CLAUDE_ENV_FILE

Write

Deletes the test environment file