agent-evals

agent-evals is a skill for Claude Code from erikdarlingdata/claude-plugins. It costs 117 tokens per session (3,085 once invoked), scanned A, original, MIT.

A test-building skill for agent setups. It creates and runs fixed cases for hooks and commands, plus model cases that ask an AI model questions and grade its answers.

In plain words
What is it for?
Use it to test hooks, tools, wrappers, query harnesses, instruction files, plugins, or model changes and to preserve cases for bugs that were fixed.
Why use it?
It turns known failures and likely weak spots into regression tests, so you can check whether a later change still works. Fixed cases are repeatable, while model cases measure variable model behavior.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions CLAUDE.md; mentions Claude Code.

Part of the agent-evals plugin — 1 skill shipped together

Good fit Use it to test hooks, tools, wrappers, query harnesses, instruction files, plugins, or model changes and to preserve cases for bugs that were fixed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/erikdarlingdata/claude-plugins/agent-evals
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add erikdarlingdata/claude-plugins --skill agent-evals
Clone the repo
git clone --depth 1 https://github.com/erikdarlingdata/claude-plugins

Made for: Claude Code.

Or install agent-evals, the plugin that ships this one along with the rest of its 1 skill.

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 agent-evals

README.md
[![agentmods](https://agentmods.dev/badge/skills/erikdarlingdata/claude-plugins/agent-evals/github.svg)](https://agentmods.dev/skills/erikdarlingdata/claude-plugins/agent-evals)
Your own site
<a href="https://agentmods.dev/skills/erikdarlingdata/claude-plugins/agent-evals"><img src="https://agentmods.dev/badge/skills/erikdarlingdata/claude-plugins/agent-evals/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 agent-evals

Your own site · 80×15
<a href="https://agentmods.dev/skills/erikdarlingdata/claude-plugins/agent-evals"><img src="https://agentmods.dev/badge/skills/erikdarlingdata/claude-plugins/agent-evals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00117 $0.03085
Opus 5.5 $0.00047 $0.01234
Sonnet 5.5 $0.00023 $0.00617
Haiku 4.5 $0.00012 $0.00309

Measured yesterday against content hash c0a9881010ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-evals scanned grade A with 0 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-evals/skills/agent-evals/SKILL.md · 131 lines

How it starts

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

Agent evals

The word "eval" covers two different things. Keep them apart, because they cost different amounts and prove different things.

  • Deterministic cases have no model in the test. You feed a tool a fixed input and check a fixed answer. Same result every time, in seconds, free. They prove the tool. This runner has two kinds: hook and command.
  • Model cases ask a model a question and grade the answers. They are statistics, and each run costs usage. They tell you what the model does with your instructions and tools. This runner's third kind is model.

The runner is scripts/run_evals.py in this plugin's folder, two folders above this skill (<this-skill-dir>/../../scripts/run_evals.py). Python 3.8 or later, standard library only. <this-skill-dir>/../../examples/sample-cases.json has working cases of each kind: three hook cases, one command case and two model cases.

What a good case is

  1. A real miss. A case is something the tool got wrong, or that you know it could. A set that grows from misses covers where the tool is weak. One written in an afternoon covers where you were thinking that afternoon.
  2. A fixed expected answer, written before the run. If you cannot write the answer down first, you are exploring, not testing. Work the answer out from the source (the arithmetic, the documentation, the rule), never from what the tool printed. A case whose expected answer was copied from the tool's output tests that the tool agrees with itself.
  3. Cheap. A case you run after every edit catches the edit that broke it. A case you run twice a month does not.
  4. Both ways. Allow and deny. A planted problem and a clean control. A guard that blocks everything passes every block test, and a reviewer that flags everything passes every planted-problem test. The clean cases are what keep the tool usable.
  5. It records what you chose not to fix. Mark a case "by_design" with the reason when the tool's current behavior is a known limit you accepted. The case then says what the limit is, and tells you the day it moves.
  6. Start with the plain case, the empty case and the likely miss. Write a plain case (the ordinary input the tool exists for), the case where there is nothing (no rows, no matching command, a clean file), and the case your tool is most likely to get wrong.
  7. A planted problem the line was not written for. A test for a rule you just added, using the example you had in mind when you wrote it, is the easy one. A fairer test plants a problem the instruction was not written for, and checks that it still catches it.
  8. The cases live in source control, next to the instructions file. They change in the same pull request as the instructions, and the history shows which edit moved a result.

Read the full file on GitHub · 131 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. yesterday First seen · 131 lines · 117 tokens per session scan A c0a9881010ba

Subscribe to this mod's changes

agent-evals is a skill published in the GitHub repository erikdarlingdata/claude-plugins (33 stars, last pushed yesterday), licensed MIT. It adds 117 tokens to every session and 3,085 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-01.

Related

agent-evals compared with skills from other repositories

agent-evals next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-evalserikdarlingdata/claude-pluginsSkill33yesterdayMITA117Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill331k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code