eval-hooks

Featured

Audit Claude Code hooks defined in settings.json files for validity, performance safety, and correctness. Resolves each command against the filesystem, checks exit-code strategy for blocking hooks, flags missing timeouts, and reviews interactive vs async patterns. Use when setting up hooks for the first time, debugging a hook that never fires or hangs the agent, or doing a periodic hooks hygiene pass.

AI & Automation 6,616 stars 850 forks Updated today CC-BY-SA-4.0

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Hooks Evaluator Discover all Claude Code hooks across every settings file in scope, validate each one against the filesystem and hook semantics, then run an interactive session to confirm or improve them. The goal is not just to score; it is to leave every hook working, correctly scoped, and safe to run. ## When to Use - First time adding hooks (validate before committing) - A hook never fires, or fires on every tool call - The agent hangs noticeably before executing a tool - A PreToolUse hook is supposed to block but doesn't - After copying hooks from another project or machine - Periodic hygiene: "are all these hooks still doing something useful?" ## Key Concepts ### Event types | Event | When it fires | Can block? (exit 2) | |---|---|---| | `PreToolUse` | Before any tool call | Yes | | `PermissionRequest` | When a permission dialog appears | Yes | | `PostToolUse` | After tool completes successfully | No (shows stderr to Claude) | | `PostToolUseFailure` | After a tool fails | No | | `PostToolBatch` | After a full batch of parallel tool calls resolves | Yes (stops agentic loop) | | `UserPromptSubmit` | When user submits a prompt | Yes | | `UserPromptExpansion` | When a slash command expands | Yes | | `Stop` | When Claude finishes responding | Yes (continues the turn) | | `SubagentStop` | When a subagent finishes | Yes (continues the subagent) | | `TeammateIdle` | When an agent team teammate goes idle | Yes | | `TaskCreated` | When a task is being created | Yes | | `...

Details

Author
FlorianBruniaux
Repository
FlorianBruniaux/claude-code-ultimate-guide
Created
10 months ago
Last Updated
today
Language
Python
License
CC-BY-SA-4.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

hooks-configuration

Claude Code hooks creation and debugging assistant. Configures PreToolUse, PostToolUse, Stop, SessionStart, UserPromptSubmit, and other lifecycle hooks in settings.json. Creates command hooks (Bash/Python scripts), prompt-based hooks (LLM evaluation), and agent hooks. Handles exit codes (0=allow, 1=error, 2=deny), matchers, async execution, and security enforcement patterns. Use when creating a hook, debugging a hook, blocking dangerous commands, auto-formatting on save, running tests on stop, or adding session logging.

1 Updated 1 months ago
seanwinslow28
AI & Automation Listed

writing-hooks

How to write Claude Code hooks -- event selection, hook types, matcher patterns, blocking vs advisory, portable paths. Use when creating hooks for quality gates, automation, or policy enforcement.

157 Updated today
xiaolai
AI & Automation Listed

hook-development

Use for auditing, reviewing or debugging Claude Code hooks, and for questions about how they behave - a hook that never fires, fires on the wrong calls, or has its block, deny, allow, exit code 2 or additionalContext ignored; a check of the hooks in settings.json, hooks/hooks.json or skill and agent frontmatter before a release; the debug log; or how an event, matcher, if filter, handler type, exit code, JSON output, timeout or async hook works. Covers command, HTTP, MCP tool, prompt and agent hooks, workspace trust and mods in the same chain, checked against the current docs and the changelog for the installed version, with a config linter, a hook probe and a changelog script. Use it even when the user only pastes a hook or says it does nothing. Not for writing a new hook (writing-hooks), Git hooks, React hooks or webhooks.

1 Updated today
nerymurillohnd