Agent evaluation

From seb1n/awesome-ai-agent-skills · View interactive version

Agent evaluation is an AI agent skill from the GitHub repository seb1n/awesome-ai-agent-skills. Design reproducible evaluations for AI agents with representative task sets, explicit rubrics, appropriate graders, baselines, regression gates, and failure analysis. Use when defining agent quality, comparing prompts or models, validating a release, measuring tool-use reliability, investigating reg

How to use this skill

Skill file

Agent Evaluation

Build evidence that can inform a release owner, not a showcase of favorable examples or a safety certification.

Use when

Inputs

Collect the agent objective, users, supported tasks, unacceptable outcomes, current baseline, execution environment, available traces, and evaluation budget. State assumptions when an input is unavailable.

Output contract

Produce:

  1. An evaluation brief with scope, risks, hypotheses, and frozen system versions.
  2. A dataset manifest with provenance, categories, splits, and contamination controls.
  3. A scoring specification with rubrics, graders, thresholds, and tie-breaking rules.
  4. Reproducible run settings, aggregate results, uncertainty, and baseline deltas.
  5. A failure taxonomy, representative cases, evidence limits, and a decision memo for the accountable release owner.

Workflow

  1. Define the unit under test and the decision the evaluation must support. Separate model quality from tool, retrieval, policy, and infrastructure failures.
  2. Convert user goals and risks into observable criteria. Include task success, safety, latency, cost, and escalation quality only when relevant.
  3. Build representative cases from real distributions where permitted. Add boundary, long-tail, malformed-input, tool-failure, and adversarial cases. Keep a holdout set isolated from prompt iteration.
  4. Select the least subjective reliable grader. Prefer deterministic checks for structured facts, rubric-bound model graders for semantic quality, and blinded human review for high-impact or disputed cases. Read evaluation-patterns.md when selecting graders or gates.
  5. Freeze prompts, model versions, tools, data snapshots, seeds when supported, retries, and timeouts. Run the candidate and baseline under equivalent conditions; repeat stochastic cases.
  6. Inspect case-level failures before trusting aggregates. Slice results by task, risk, language, tool, and user cohort where sample sizes permit.
  7. Set a release gate that combines minimum critical-case performance, non-regression against baseline, and operational limits. Label underpowered results as inconclusive.
  8. Save failed production-like cases as regression fixtures without exposing private data.

Use python3 scripts/aggregate_results.py results.jsonl --score-min 0 --score-max 1 --require-passed to validate identities and declared score bounds, then produce a descriptive summary. Add --baseline old --candidate new when records use those variant labels. Add --output summary.json for an atomic file write; the destination must be a new path or regular file and cannot alias the input through spelling, resolution, a symlink, or a hard link. The script reports explicit observed, missing, and total pass-rate denominators plus approximate uncertainty; it does not certify safety, representativeness, significance, or release readiness.

Safety and permissions

Verification

Failure handling

Example

For “compare two versions of a customer-support agent,” define resolution correctness, citation fidelity, policy compliance, escalation judgment, latency, and cost; create normal, ambiguous, multilingual, prompt-injection, and unavailable-tool cases; blind the version labels; run both versions three times; aggregate by case category; inspect regressions; and return a ship, hold, or limited-rollout decision with evidence.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.