agentv-eval-builder
FreeNo executable scriptsNot checkedCreate and maintain AgentV YAML evaluation files for testing AI agent performance. Use this skill when creating new eval files, adding eval cases, or…
by diegosouzapw★ 68 GitHub starsAbout this skill
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:
Install agentv-eval-builder in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the agentv-eval-builder skill do?
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.
How do I install the agentv-eval-builder skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the agentv-eval-builder skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
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…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by 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…
by Anthropic