Skip to main content
skill CX Codex

agent-evaluation · sickn33 — Claude Code skill: testing agent behaviour

A skill for comparing agent, prompt or tool changes against versioned cases with explicit verifiers. Useful for reproducing a failure or running a regression pass.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sickn33/agentic-awesome-skills --skill agent-evaluation -a claude-code
Open on GitHub

What agent-evaluation does

The skill lays out a procedure for judging observable agent behaviour: freeze the contract, validate the harness, run the cases, investigate disagreement, compare baseline with candidate, then fix and verify. Cases carry expected outcomes and permission boundaries, while model, prompt, tool and runtime versions are recorded separately.

You need a case set with a revision, a known baseline and a candidate, synthetic or redacted inputs, isolated targets, and a budget for tokens, time and cost. The verifier has to tell a wrong outcome apart from an expected safe rejection, a verifier fault and an infrastructure outage. Provider access matters only where the declared evaluation calls that provider.

A JavaScript helper wilson95(passes, trials) ships with the skill: it returns an approximate 95% Wilson interval and throws on invalid counts. Ten passes out of ten do not prove full reliability, and repeated runs of a single case are not independent samples. Safety and authorization failures stay separate from average quality, because a higher score cannot offset them.

What it helps with

  • compare agent behaviour before and after a prompt change
  • reproduce an observed failure on a frozen case
  • separate agent errors from verifier or infrastructure faults
  • estimate reliability on a declared task distribution with uncertainty
  • catch an unauthorized tool call in a negative case

Example prompts for the agent

  • Run the frozen case set for baseline and candidate and report per-case disagreement
  • Validate the harness with a known-pass case, a known-fail case and a deliberate verifier failure
  • Compute the Wilson interval for 10 passes out of 10 trials with wilson95

How to install agent-evaluation

1Skills CLI (Vercel)

npx skills add sickn33/agentic-awesome-skills --skill agent-evaluation -a claude-code

2Manually: put the files in place

~/.claude/skills/agent-evaluation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/agent-evaluation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about agent-evaluation

How do I install agent-evaluation in Claude Code?

Run npx skills add sickn33/agentic-awesome-skills --skill agent-evaluation -a claude-code. The skill file lands at ~/.claude/skills/agent-evaluation/SKILL.md.

What does agent-evaluation do?

It describes how to evaluate agent behaviour on versioned cases: freezing the contract, validating the harness, running the cases, investigating variation, comparing revisions and recording pass, fail or inconclusive.

Can a public benchmark score tell me whether a product is ready?

No. The skill states that product readiness should not be inferred from a public benchmark percentage or a generic score threshold.

Source text

SKILL.md · MIT
---
name: agent-evaluation
description: "Evaluate agent behavior with versioned cases and explicit verifiers. Use when comparing agent or prompt changes, reproducing failures, or running agent regression tests."
risk: safe
source: vibeship-spawner-skills (Apache 2.0)
date_added: 2026-02-27
---

# Agent Evaluation

Evaluate observable agent behavior against task-specific cases. Modified by AAS maintainers on 2026-09-05 to remove unsupported benchmark claims, correct uncertainty/error reporting and separate optional architecture sketches from the operating procedure.

## When to Use

Use when comparing a changed agent, prompt or tool configuration, reproducing an observed failure, or estimating reliability on a declared task distribution. Do not infer product readiness from a public benchmark percentage or a generic score threshold.

## Prerequisites

- A versioned case set with expected observable outcomes and permission boundaries.
- A known baseline and candidate revision, including model, prompt, tools, configuration and runtime versions.
- Authorized synthetic or redacted inputs, isolated targets and a bounded token, time and cost budget.
- A verifier that distinguishes wrong outcomes, expected safe rejections, evaluator failures and infrastructure outages. Provider access is needed only if the declared evaluation calls that provider.

## Evaluation procedure

1. **Freeze the contract.** Record case IDs and dataset revision, baseline/candidate identities, target environment, repeat plan, budgets, stopping rule and decision criteria before execution. Keep critical safety and authorization failures separate from average quality; they cannot be compensated by a higher score.
2. **Validate the harness.** Run a known-pass case, a known-fail case and a deliberate verifier/infrastructure failure. Confirm that each is classified correctly and that trace retention excludes credentials and private input bodies. If classification is wrong, fix the harness and repeat these checks before measuring the agent.
3. **Run the frozen cases.** Use the same case definitions and budgets for baseline and candidate, with independent fixture state and recorded execution order. Retain every attempt and its run ID, outcome, reason, latency and resource totals. An exception is not evidence that an unsafe request was safely rejected.
4. **Investigate variation.** Preserve the original failure. Classify disagreement as agent behavior, shared-state contamination, verifier ambiguity or an outage. Use only the predeclared repeat budget; do not retry until green, silently drop failures or change the expected outcome to fit the candidate. An unresolved harness fault makes the affected result inconclusive.
5. **Compare and decide.** Report per-case results and uncertainty, regressions, critical failures and incomplete cases. Repeated runs of one case are not independent samples of the task distribution. A changed expectation needs a separately reviewed contract revision and reruns of both baseline and candidate; keep the old results.
6. **Fix and verify.** Make a bounded fix, rerun the failing case to verify the mechanism, then rerun the applicable frozen regression suite from clean state. Stop at the declared budget if disagreement persists. Record pass, fail or inconclusive with the exact evidence; follow the project publication/deployment approval boundary separately.

## Example: changed tool argument handling

A synthetic agent changes how it chooses a tenant identifier for a read-only lookup. Freeze three cases: an authorized lookup must return the seeded fixture, an unauthorized tenant must be rejected without a tool call, and a simulated tool outage must be classified as infrastructure failure. Supply neither real customer records nor production credentials.

Predeclare five repeats per case with fresh state, the same budget for baseline and candidate, and zero tolerance for an unauthorized tool call. Suppose the candidate returns the expected authorized result in all five runs but makes one unauthorized call in the second case: the candidate fails the permission contract even if its aggregate success rate improves. Retain that run, fix argument authorization, verify the negative case, and rerun the frozen suite. If the outage detector itself crashes, mark that case inconclusive and repair the detector before comparing versions. These are illustrative outcomes, not measured agent results.

Expected output:

```text
contract: case-set revision, rules, repeat plan and budget
versions: baseline, candidate, model, prompt, tool and runtime
runs: one record per attempt, classified outcome and bounded evidence reference
comparison: per-case results, uncertainty, regressions and critical violations
decision: pass | fail | inconclusive; reason; unresolved work
```

## Worked uncertainty example

Ten successes in ten independent trials do not demonstrate 100% reliability. This dependency-free helper returns an approximate 95% Wilson interval; for 10/10 it is about `[0.7225, 1]`. For zero trials it rejects the input.

```javascript
function wilson95(passes, trials) {
  if (!Number.isSafeInteger(passes) || !Number.isSafeInteger(trials)
      || trials <= 0 || passes < 0 || passes > trials) throw new Error('Invalid counts');
  const z = 1.959963984540054;
  const p = passes / trials;
  const denominator = 1 + z * z / trials;
  const center = (p + z * z / (2 * trials)) / denominator;
  const margin = z * Math.sqrt(p * (1 - p) / trials + z * z / (4 * trials * trials)) / denominator;
  return [Math.max(0, center - margin), Math.min(1, center + margin)];
}
```

Expected checks: 0/10 has a positive upper bound; 10/10 has a lower bound below 1; 0/0 fails. Use case-level or clustered uncertainty when repeated runs share cases or state; pooling correlated runs as independent observations overstates confidence. See [NIST interval guidance](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm).

## Optional architecture patterns

Read the corresponding section in the bundled [architecture sketches](references/architecture-sketches.md) only when designing a custom harness:

- [Statistical evaluation](references/architecture-sketches.md#statistical-test-evaluation): repeated stochastic runs and descriptive reports.
- [Behavioral contracts](references/architecture-sketches.md#behavioral-contract-testing): expected behavior and invariants.
- [Adversarial tests](references/architecture-sketches.md#adversarial-testing): synthetic, authorized boundary cases; keyword detectors need reviewed false-positive and false-negative examples.
- [Regression pipeline](references/architecture-sketches.md#regression-testing-pipeline): baseline/candidate artifact comparison.
- [Sharp edges](references/architecture-sketches.md#sharp-edges): dataset mismatch, flakiness, proxy metrics and possible leakage.

The classes require application-specific adapters and are not copy-and-run implementations. No listed tool, related skill or delegate is a required dependency.

## Limitations

- Illustrative 80/90% thresholds and score weights in the architecture sketches are not universal merge/deploy rules; define project-specific criteria and keep critical failures separate.
- A small-sample chi-squared comparison or absence of significance does not prove equivalence; use a method suited to counts, pairing and multiple comparisons.
- Exceptions are not automatic safe rejections, and test retries must not erase the first failure.
- Similarity to a retrieved answer may be legitimate RAG behavior; leakage depends on what the evaluation permits the agent to know.
- LLM judges do not substitute for real user feedback, and output truncation does not remove private data. Use synthetic or authorized redacted inputs with bounded retention.

© sickn33 · MIT · sickn33/agentic-awesome-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

agent-evaluation by other authors comes first.

agent-evaluation NeoLabHQ Framework for testing agents, prompts, and skills using multi-dimensional scoring rubrics and LLM-as-judge prompts. CX Codex +1 1,300installs agent-evaluation mlflow A skill that runs systematic LLM agent evaluation through MLflow: datasets, scorers, tracing. Useful when an agent picks the wrong tool or returns incomplete answers. CX Codex +1 1,100installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. 1,052,851installs ask-matt Matt Pocock Routes you to the right Matt Pocock skill or flow for the task at hand. Use it when you need a starting point for a feature, prototype, incoming issue, or hard bug. 766,587installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. 711,230installs writing-plans Jesse Vincent This skill turns requirements for a multi-step task into an implementation plan before code changes begin. It helps when another engineer needs exact files, interfaces, and checks. CX Codex 282,859installs caveman-review JuliusBrussee Turns code review comments into one line per finding: location, problem, fix. Useful when a diff or PR needs a fast pass without the filler. CX Codex +1 411,800installs caveman-compress JuliusBrussee Compresses CLAUDE.md, todo lists, and other prose files into a shorter format while retaining a readable backup. CX Codex +1 411,500installs

From the same set101

The whole set →
stripe-integration A skill that walks your coding agent through Stripe checkout, subscriptions, webhooks and refunds. Useful once a project needs billing. CX Codex +1 999installs javascript-mastery A skill for 33+ JavaScript concepts, tricky behavior, fundamentals, and code reviews. Use it when you need a focused explanation or debugging help. CX Codex +1 999installs twilio-communications Helps build Twilio communication features: SMS, voice calls, WhatsApp messaging, and two-factor verification. Useful when wiring IVR systems or securing account logins. CX Codex +1 994installs skill-creator Skill to create, review and package custom skills with Python scaffolding, frontmatter validation and ZIP helpers. Use it to extend your IDE or automate repetitive tasks. CX Codex +1 977installs bash-pro Teaches the agent to write defensive Bash scripts for CI/CD and ops, complete with Bats tests and ShellCheck linting. CX Codex +1 966installs autonomous-agent-patterns Design patterns for building an autonomous coding agent: tool calling, user approvals, browser automation, rollback checkpoints. Useful while you are designing the agent. CX Codex +1 965installs outlook-calendar-automation A skill that lets your agent work with Outlook Calendar through Rube MCP: schedule meetings, find open slots, edit and cancel events. CX Codex +1 962installs computer-use-agents Guides the architecture of AI agents that control screens, cursors, and keystrokes using Anthropic Computer Use or OpenAI Operator. Useful for sandboxed desktop and GUI automation. CX Codex +1 962installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor