eval-hooks

eval-hooks is a skill for Claude Code from FlorianBruniaux/claude-code-plugins. It costs 115 tokens per session (8,563 once invoked), scanned A, original, MIT.

An evaluator for Claude Code hooks, which are commands that run when events such as tool calls or user prompts occur. It checks their files, timing, exit codes, and use of interactive or background behavior.

In plain words
What is it for?
Use it when adding hooks, investigating hooks that misbehave, or checking copied settings before committing them.
Why use it?
A misconfigured hook may never run, run too often, block the wrong operation, or make the agent wait unnecessarily.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-methodology plugin — 20 skills, 1 agent, 1 hook shipped together

Good fit Use it when adding hooks, investigating hooks that misbehave, or checking copied settings before committing them.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add FlorianBruniaux/claude-code-plugins
Claude Code
/plugin install ai-methodology

Made for: Claude Code.

Or install ai-methodology, the plugin that ships this one along with the rest of its 20 skills, 1 agent, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for eval-hooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/eval-hooks/github.svg)](https://agentmods.dev/skills/florianbruniaux/claude-code-plugins/eval-hooks)
Your own site
<a href="https://agentmods.dev/skills/florianbruniaux/claude-code-plugins/eval-hooks"><img src="https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/eval-hooks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for eval-hooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/florianbruniaux/claude-code-plugins/eval-hooks"><img src="https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/eval-hooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,563 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.08563
Opus 5.5 $0.00046 $0.03425
Sonnet 5.5 $0.00023 $0.01713
Haiku 4.5 $0.00012 $0.00856

Measured 1mo ago against content hash 7d95f309d080, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

eval-hooks scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| `~/.claude/settings.json` | User | Not read by cloud sessions |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. Flag slow operations (`curl`, `sleep`, network calls) without an internal timeout guard in hooks on the interactive path.
plugins/ai-methodology/skills/eval-hooks/SKILL.md · 513 lines

How it starts

The opening of the file, as written. The whole thing — 513 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hooks evaluator

Discover every Claude Code and Codex hook in scope, validate each one against the filesystem and the host's documented 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.

Sources of truth: the official Claude Code hooks reference (https://code.claude.com/docs/en/hooks) and the Codex hooks documentation (https://developers.openai.com/codex/hooks). When a rule below and the live documentation disagree, the documentation wins; report the disagreement instead of scoring against stale text.

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 policy hook is supposed to block but doesn't
  • After copying hooks from another project, machine, or host
  • Periodic hygiene: "are all these hooks still doing something useful?"

Scope

Argument Audit
none Every Claude Code and Codex location listed below that exists
claude or codex That host only
a file path That file only (settings JSON, hooks.json, config.toml, skill or agent file)
audit-only, or the user asks for no changes Steps 1-4 and 6 only: list each proposed change instead of asking or editing, and omit the user-feedback lines from the report

Audit each host with its own rules. Never score a Codex hook against Claude Code semantics or the reverse.

When a ctxharness doctor --format json report generated during this task is available, reconcile against it: every hook-layer finding it reports must appear in the audit, and every extra finding needs file:line evidence.


Claude Code: Key concepts

Event types (33)

Event When it fires Exit 2 effect
SessionStart Session begins or resumes Stderr to user only
Setup --init-only, or --init / --maintenance in -p mode Ignored
UserPromptSubmit Prompt submitted, before processing Blocks and erases the prompt
UserPromptExpansion A typed command expands into a prompt Blocks the expansion
PreToolUse Before a tool call executes Blocks the tool call
PermissionRequest A tool call needs a permission decision Not honored: deny through the JSON decision object
PermissionDenied Auto mode denies a tool call Ignored (only hookSpecificOutput.retry is read)
PostToolUse After a tool call succeeds Stderr to Claude; the tool already ran
PostToolUseFailure After a tool call fails Stderr to Claude
PostToolBatch After a full batch of parallel tool calls Stops the agentic loop
Notification Claude Code sends a notification Ignored
MessageDisplay While assistant text is displayed Original text displayed
SubagentStart A subagent is spawned Stderr to user only
SubagentStop A subagent finishes Prevents the subagent from stopping
TaskCreated A task is being created Rolls back the creation
TaskCompleted A task is being marked completed Prevents completion
Stop Claude finishes responding Prevents stopping, continues the turn
StopFailure The turn ends on an API error Ignored (except terminalSequence)
TeammateIdle An agent team teammate is about to go idle Keeps the teammate working
InstructionsLoaded A CLAUDE.md or .claude/rules/*.md file loads Ignored
ConfigChange A configuration file changes mid-session Blocks the change (except policy_settings)
CwdChanged The working directory changes Stderr to user only
DirectoryAdded A directory is added via /add-dir or SDK register_repo_root Stderr to debug log; already added
FileChanged A watched file changes on disk Stderr to user only
WorktreeCreate A worktree is being created Any non-zero exit fails creation
WorktreeRemove A worktree is being removed Any non-zero exit fails removal if the directory remains
PreCompact Before compaction Blocks compaction
PostCompact After compaction Stderr to user only
PreModelSwitch Before a requested model switch Blocks the switch
PostModelSwitch After the session model changes Stderr to user only
Elicitation An MCP server requests user input Denies the elicitation
ElicitationResult After the user answers an elicitation Blocks the response (becomes decline)
SessionEnd Session terminates Stderr to user only

Read the full file on GitHub · 513 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +160 lines · +37 tokens per session 7d95f309d080
  2. 3mo ago First seen · 353 lines · 78 tokens per session scan A 25e1616567ad

Subscribe to this mod's changes

eval-hooks is a skill published in the GitHub repository FlorianBruniaux/claude-code-plugins (47 stars, last pushed 5d ago), licensed MIT. It adds 115 tokens to every session and 8,563 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

eval-hooks compared with skills from other repositories

eval-hooks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
eval-hooksFlorianBruniaux/claude-code-pluginsSkill475d agoMITA115Claude Code
app-store-screenshotsfatihkan/badiSkill81mo agoMITA68Claude Code
contentfatihkan/badiSkill81mo agoMITA0Claude Code
expo-app-configfatihkan/badiSkill81mo agoMITA86Claude Code
expo-config-pluginfatihkan/badiSkill81mo agoMITA85Claude Code
expo-eas-buildfatihkan/badiSkill81mo agoMITA75Claude Code
expo-eas-submitfatihkan/badiSkill81mo agoMITA75Claude Code