К основному содержанию
скилл CX Codex

agent-evaluation · sickn33 — скилл для Claude Code: проверка поведения агента

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

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add sickn33/agentic-awesome-skills --skill agent-evaluation -a claude-code
Открыть на GitHub

Что делает agent-evaluation

Скилл задаёт порядок работы с наблюдаемым поведением агента: заморозить контракт, проверить сам стенд, прогнать кейсы, разобрать расхождения, сравнить baseline с кандидатом и зафиксировать результат. Кейсы хранятся с ожидаемыми исходами и границами прав доступа, а версии модели, промпта, инструментов и рантайма записываются отдельно.

Перед запуском нужен набор кейсов с ревизией, известный baseline и кандидат, синтетические или обезличенные входы, изолированные цели и бюджет по токенам, времени и стоимости. Проверяющий должен различать неверный исход, ожидаемый безопасный отказ, сбой самого проверяющего и падение инфраструктуры. Доступ к провайдеру нужен только там, где его требует объявленная оценка.

Внутри есть вспомогательная функция wilson95(passes, trials) на JavaScript: она считает приблизительный 95% интервал Уилсона и отвергает некорректные счётчики. Десять успехов из десяти не доказывают стопроцентную надёжность, а повторные прогоны одного кейса не считаются независимыми наблюдениями. Критические отказы по безопасности и авторизации идут отдельно от средней оценки качества, и высокий балл их не перекрывает.

Какие задачи решает

  • сравнить поведение агента до и после правки промпта
  • воспроизвести замеченный сбой на зафиксированном кейсе
  • отличить ошибку агента от сбоя проверяющего или инфраструктуры
  • оценить надёжность на объявленном наборе задач с учётом неопределённости
  • поймать неавторизованный вызов инструмента в негативном кейсе

Примеры запросов агенту

  • Прогони замороженный набор кейсов для baseline и кандидата и покажи расхождения по каждому кейсу
  • Проверь стенд: известный проходной кейс, известный провальный и намеренный сбой проверяющего
  • Посчитай интервал Уилсона для 10 успехов из 10 прогонов через wilson95

Как установить agent-evaluation

1Через Skills CLI (Vercel)

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

2Вручную: положить файлы

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

Папка скилла целиком; для одного проекта — .claude/skills/agent-evaluation/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о agent-evaluation

Как установить agent-evaluation в Claude Code?

Выполните npx skills add sickn33/agentic-awesome-skills --skill agent-evaluation -a claude-code. Файл скилла появится по пути ~/.claude/skills/agent-evaluation/SKILL.md.

Что делает agent-evaluation?

Описывает процедуру оценки поведения агента на версионированных кейсах: фиксация контракта, проверка стенда, прогон, разбор расхождений, сравнение версий и решение pass, fail или inconclusive.

Можно ли судить о готовности продукта по публичному бенчмарку?

Нет. Скилл прямо говорит не выводить готовность продукта из процента в публичном бенчмарке или общего порога оценки.

Исходный текст

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

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Сначала — agent-evaluation от других авторов.

agent-evaluation NeoLabHQ Методика проверки агентов, скиллов и промптов с рубриками качества и шаблонами оценки через LLM-судью. CX Codex +1 1 300установок agent-evaluation mlflow Скилл для системной оценки LLM-агентов через MLflow: датасеты, скореры, трейсинг. Пригодится, когда агент ошибается с выбором инструментов или даёт неполные ответы. CX Codex +1 1 100установок setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок ask-matt Matt Pocock Помогает выбрать подходящий скилл или рабочий поток из набора Matt Pocock. Пригодится, когда непонятно, с чего начать задачу: от идеи до разбора бага. 766 587установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. 711 230установок writing-plans Jesse Vincent Скилл превращает требования к многошаговой задаче в подробный план реализации до начала работы с кодом. Пригодится, когда исполнителю нужно зафиксировать файлы, интерфейсы и проверки. CX Codex 282 859установок caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок caveman-compress JuliusBrussee Сжимает CLAUDE.md, списки задач и другие текстовые файлы в краткий формат, сохраняя читаемую резервную копию. CX Codex +1 411 500установок

Из того же набора101

Весь набор →
stripe-integration Скилл для ИИ-агента: помогает собрать и проверить оплату через Stripe — checkout, подписки, вебхуки, возвраты. Пригодится, когда в проекте появляется биллинг. CX Codex +1 999установок javascript-mastery Скилл разбирает 33+ концепции JavaScript и помогает объяснять поведение языка, отлаживать код и проверять практики. CX Codex +1 999установок twilio-communications Скилл помогает настроить отправку сообщений, голосовые вызовы и двухфакторную верификацию через Twilio. Пригодится при создании IVR-меню или защите входа через одноразовые коды. CX Codex +1 994установок skill-creator Скилл для создания, проверки и упаковки собственных скиллов с готовыми шаблонами Python, валидацией фронтматтера и ZIP-помощниками. Используй, когда нужно расширить функциональность IDE или автоматизировать повторяющиеся задачи. CX Codex +1 977установок bash-pro Инструкции для агента по написанию защищённых Bash-скриптов для CI/CD и серверов с проверками через ShellCheck и Bats. CX Codex +1 966установок autonomous-agent-patterns Набор паттернов для того, кто проектирует автономного агента-кодера: вызов инструментов, подтверждения, браузерная автоматизация, точки отката. CX Codex +1 965установок outlook-calendar-automation Скилл даёт агенту доступ к календарю Outlook через Rube MCP: создавать встречи, искать свободные окна, править и отменять события. CX Codex +1 962установок computer-use-agents Помогает проектировать агентов для управления экраном, мышью и клавиатурой через Anthropic Computer Use или OpenAI Operator. Пригодится при настройке GUI-автоматизации и песочниц. CX Codex +1 962установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой