Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-evals

БесплатноБез исполняемых скриптовНе проверен

Design and implement evaluation frameworks for AI agents. Use when testing agent reasoning quality, building graders, doing error analysis, or establishing…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Agent Evaluations: Measuring Reasoning Quality

Core Thesis: "One of the biggest predictors for whether someone is able to build agentic workflows really well is whether or not they're able to drive a really disciplined evaluation process." — Andrew Ng

Evaluations (evals) are exams for your agent's reasoning. Unlike traditional testing (TDD) that checks code correctness with PASS/FAIL outcomes, evals measure reasoning quality with probabilistic scores. The distinction is critical:

Aspect TDD (Code Testing) Evals (Agent Evaluation)
Tests Does function return correct output? Did agent make the right decision?
Outcome PASS or FAIL (deterministic) Scores (probabilistic)
Example "Does get_weather() return valid JSON?" "Did agent correctly interpret user intent?"
Analogy Testing if calculator works Testing if student knows WHEN to use multiplication

When to Activate

Activate this skill when:

  • Building systematic quality checks for any AI agent
  • Designing evaluation datasets (typical, edge, error cases)
  • Creating graders to define "good" automatically
  • Performing error analysis to find failure patterns
  • Setting up regression protection for agent changes
  • Deciding when to use end-to-end vs component-level evals

Core Concepts

1. Evals as Exams

Think of evals like course exams for your agent:

Eval Type Analogy Purpose
Initial Eval Final exam Does agent pass the course? Handles all scenarios?
Regression Eval Pop quiz Did the update break what was working?
Component Eval Subject test Test individual skills (routing, tool use, output)
End-to-End Eval Comprehensive exam Test the full experience

2. The Two Evaluation Axes

Evals vary on two dimensions:

Objective (Code) Subjective (LLM Judge)
Per-example ground truth Invoice dates, expected values Gold standard talking points
No per-example ground truth Word count limits, format rules Rubric-based grading

Examples:

  • Invoice date extraction: Objective + per-example ground truth
  • Marketing copy length: Objective + no per-example ground truth
  • Research article quality: Subjective + per-example ground truth
  • Chart clarity rubric: Subjective + no per-example ground truth

3. Graders

What: Automated quality checks that turn subjective assessment into measurable scores.

Key Insight: Don't use 1-5 scales (LLMs are poorly calibrated). Use binary criteria instead:

❌ BAD: "Rate this response 1-5 on quality"

✅ GOOD: "Check these 5 criteria (yes/no each):
   1. Does it have a clear title?
   2. Are axis labels present?
   3. Is it the appropriate chart type?
   4. Is the data accurately represented?
   5. Is the legend clear?"

Binary criteria → sum up → get reliable scores (0-5).

LLM-as-Judge Pattern:

Determine how many of the 5 gold standard talking points are present
in the provided essay.

Talking points: {talking_points}
Essay: {essay_text}

Return JSON: {"score": <0-5>, "explanation": "..."}

Position Bias: Many LLMs prefer the first option when comparing two outputs. Avoid pairwise comparisons; use rubric-based grading instead.

4. Error Analysis (Most Critical Skill)

The Build-Analyze Loop:

Build → Look at outputs → Find issues → Build evals → Improve → Repeat

Don't guess what's wrong—MEASURE:

  1. Build spreadsheet: Case | Component | Error Type
  2. Count patterns: "45% of errors from web search results"
  3. Focus effort where errors cluster
  4. Prioritize by: Error frequency × Feasibility to fix

Trace Analysis Terminology:

  • Trace: All intermediate outputs from agent run
  • Span: Output of a single step
  • Error Analysis: Reading traces to find which component caused failures

Example Error Analysis Table:

Prompt Search Terms Search Results Best Sources Final Output
Black holes OK Too many blogs (45%) OK Missing key points
Seattle rent OK OK Missed blog OK
Fruit robots Generic (5%) Poor quality Poor Missing company

5. End-to-End vs Component-Level Evals

End-to-End Evals:

  • Test entire agent output quality
  • Expensive to run (full workflow)
  • Noisy (multiple components introduce variance)
  • Use for: Ship decisions, production monitoring

Component-Level Evals:

  • Test single component in isolation
  • Faster, clearer signal
  • Use for: Debugging, tuning specific components
  • Example: Eval just the web search quality, not full research agent

Decision Framework:

  1. Start with end-to-end to find overall quality
  2. Use error analysis to identify problem component
  3. Build component-level eval for that component
  4. Tune component using component eval
  5. Ver
Полный SKILL.md на GitHub

Установить agent-evals в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл agent-evals?

Design and implement evaluation frameworks for AI agents. Use when testing agent reasoning quality, building graders, doing error analysis, or establishing regression protection. Framework-agnostic concepts that apply to any SDK.

Как установить скилл agent-evals?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-evals запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-evals с