agentv-eval-builder
БесплатноБез исполняемых скриптовНе проверенCreate and maintain AgentV YAML evaluation files for testing AI agent performance. Use this skill when creating new eval files, adding eval cases, or…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
AgentV Eval Builder
Schema Reference
- Schema:
references/eval-schema.json(JSON Schema for validation and tooling) - Format: YAML or JSONL (see below)
- Examples:
references/example-evals.md
Feature Reference
- Rubrics:
references/rubric-evaluator.md- Structured criteria-based evaluation - Composite Evaluators:
references/composite-evaluator.md- Combine multiple evaluators - Tool Trajectory:
references/tool-trajectory-evaluator.md- Validate agent tool usage - Structured Data + Metrics:
references/structured-data-evaluators.md-field_accuracy,latency,cost - Custom Evaluators:
references/custom-evaluators.md- Code and LLM judge templates - Batch CLI:
references/batch-cli-evaluator.md- Evaluate batch runner output (JSONL) - Compare:
references/compare-command.md- Compare evaluation results between runs
Structure Requirements
- Root level:
description(optional),execution(withtarget),evalcases(required) - Eval case fields:
id(required),expected_outcome(required),input_messagesorinput(required) - Optional fields:
expected_messages(orexpected_output),conversation_id,rubrics,execution expected_messagesis optional - omit for outcome-only evaluation where the LLM judge evaluates based onexpected_outcomecriteria alone- Message fields:
role(required),content(required) - Message roles:
system,user,assistant,tool
Input/Output Shorthand (Aliases)
For simpler eval cases, use shorthand aliases instead of the verbose input_messages and expected_messages:
| Alias | Canonical | Description |
|---|---|---|
input |
input_messages |
String expands to single user message |
expected_output |
expected_messages |
String/object expands to single assistant message |
String shorthand:
evalcases:
- id: simple-test
expected_outcome: Correct answer
input: "What is 2+2?" # Expands to [{role: user, content: "..."}]
expected_output: "The answer is 4" # Expands to [{role: assistant, content: "..."}]
Object shorthand (for structured output validation):
evalcases:
- id: structured-output
expected_outcome: Risk assessment
input: "Analyze this transaction"
expected_output: # Expands to assistant message with object content
riskLevel: High
confidence: 0.95
Array syntax still works for multi-message conversations:
input:
- role: system
content: "You are a calculator"
- role: user
content: "What is 2+2?"
Precedence: Canonical names (input_messages, expected_messages) take precedence when both are specified.
- Content types:
text(inline),file(relative or absolute path) - Attachments (type:
file) should default to theuserrole - File paths: Relative (from eval file dir) or absolute with "/" prefix (from repo root)
JSONL Format
For large-scale evaluations, use JSONL (one eval case per line) instead of YAML:
dataset.jsonl:
{"id": "test-1", "expected_outcome": "Correct answer", "input_messages": [{"role": "user", "content": "What is 2+2?"}]}
{"id": "test-2", "expected_outcome": "Clear explanation", "input_messages": [{"role": "user", "content": [{"type": "text", "value": "Review this"}, {"type": "file", "value": "./code.py"}]}]}
dataset.yaml (optional sidecar for defaults):
description: My dataset
dataset: my-tests
execution:
target: azure_base
evaluator: llm_judge
Benefits: Git-friendly diffs, streaming-compatible, easy programmatic generation.
Per-case fields override sidecar defaults. See examples/features/basic-jsonl/ for complete example.
Custom Evaluators
Configure multiple evaluators per eval case via execution.evaluators array.
Code Evaluators
Scripts that validate output programmatically:
execution:
evaluators:
- name: json_format_validator
type: code_judge
script: uv run validate_output.py
cwd: ../../evaluators/scripts
Contract:
- Input (stdin): JSON with
question,expected_outcome,reference_answer,candidate_answer,guideline_files,input_files,input_messages,expected_messages,output_messages,trace_summary - Output (stdout): JSON with
score(0.0-1.0),hits,misses,reasoning
Target Proxy: Code evaluators can access an LLM through the target proxy for sophisticated evaluation logic (e.g., Contextual Precision, semantic similarity). Enable with target: {}:
execution:
evaluators:
- name: contextual_precision
type: code_judge
script: bun run evaluate.ts
target: {} # Enable target proxy (max_calls: 50 default)
RAG Evaluation Pattern: For retrieval-based evals, pass retrieval context via expected_messages.tool_calls:
expected_messages:
- role: assistant
tool_calls:
- tool: vector_search
output:
Установить agentv-eval-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agentv-eval-builder?
Create and maintain AgentV YAML evaluation files for testing AI agent performance. Use this skill when creating new eval files, adding eval cases, or configuring custom evaluators (code validators or LLM judges) for agent testing workflows.
Как установить скилл agentv-eval-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentv-eval-builder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic