Builds systematic evaluation frameworks for LLM agents, focusing on outcome-based testing and regression catching.

Install

mkdir -p .claude/skills/evaluation && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1069" && unzip -o skill.zip -d .claude/skills/evaluation && rm skill.zip

Installs to .claude/skills/evaluation

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

This skill should be used when building agent evaluation systems: deterministic checks, regression suites, multi-dimensional rubrics, quality gates, production monitoring, baseline comparison, and outcome measurement for agent pipelines.
237 chars✓ has a “when” trigger
Advanced

Key capabilities

  • Define multi-dimensional rubrics for non-deterministic output
  • Establish quality gates for continuous pipeline integration
  • Construct regression suites to track agent quality drift
  • Validate context engineering efficacy via baseline comparison
  • Measure outcomes instead of rigid execution paths

How it works

Applies a set of structured evaluators against agent outputs to check for factual accuracy, citation quality, and task success.

Inputs & outputs

You give it
Agent pipeline code, desired rubric metrics, and baseline test cases
You get back
Performance report, identified regression triggers, and rubric scores

When to use evaluation

  • Creating a regression suite for an agent
  • Defining performance rubrics
  • Validating context engineering quality

About this skill

Evaluation Methods for Agent Systems

Evaluate agent systems differently from traditional software because agents make dynamic decisions, are non-deterministic between runs, and often lack single correct answers. Build evaluation frameworks that account for these characteristics, provide actionable feedback, catch regressions, and validate that context engineering choices achieve intended effects.

When to Activate

Activate this skill when:

  • Testing agent performance systematically
  • Validating context engineering choices
  • Measuring improvements over time
  • Catching regressions before deployment
  • Building quality gates for agent pipelines
  • Comparing different agent configurations
  • Evaluating production systems continuously

Do not activate this skill for adjacent work owned by other skills:

  • Designing the LLM judge itself, pairwise comparison, judge calibration, or bias mitigation: advanced-evaluation.
  • Designing autonomous control surfaces, novelty gates, rollback, or PR approval boundaries: harness-engineering.
  • Debugging a specific context failure mode before measuring it: context-degradation.

Core Concepts

Focus evaluation on outcomes rather than execution paths, because agents may find alternative valid routes to goals. Judge whether the agent achieves the right outcome via a reasonable process, not whether it followed a specific sequence of steps.

Use multi-dimensional rubrics instead of single scores because one number hides critical failures in specific dimensions. Capture factual accuracy, completeness, citation accuracy, source quality, and tool efficiency as separate dimensions, then weight them for the use case.

Use model-judged evaluation only after deterministic checks and rubrics are stable. When the work centers on judge prompts, pairwise comparison, calibration, or bias mitigation, switch to Advanced Evaluation.

Run deterministic validation before LLM judgment whenever the artifact has machine-checkable structure. Schema validity, duplicate keys, rubric math, manifest sync, retrieval status, and required evidence paths should fail fast before an evaluator spends tokens or returns a subjective score.

Performance Drivers

Apply browsing-agent research when designing evaluation budgets: token usage, tool calls, and model choice can dominate measured performance variance (claim-evaluation-browsecomp-variance).

FactorVariance ExplainedImplication
Token usagePrimary driverMore exploration can improve performance until cost or context quality collapses
Number of tool callsSecondary driverMore tool use helps only when calls retrieve useful evidence
Model choiceSecondary but multiplicativeBetter models often use tokens and tools more efficiently

Act on these implications when designing evaluations:

  • Set realistic token budgets: Evaluate agents with production-realistic token limits, not unlimited resources.
  • Compare model upgrades against token increases: Better models may use tokens more efficiently than weaker models with larger budgets.
  • Validate multi-agent architectures: Extra agents add tokens and tool calls; evaluate them against single-agent baselines.

Detailed Topics

Evaluation Challenges

Handle Non-Determinism and Multiple Valid Paths

Design evaluations that tolerate path variation because agents may take completely different valid paths to reach goals. One agent might search three sources while another searches ten; both may produce correct answers. Avoid checking for specific steps. Instead, define outcome criteria (correctness, completeness, quality) and score against those, treating the execution path as informational rather than evaluative.

Test Context-Dependent Failures

Evaluate across a range of complexity levels and interaction lengths because agent failures often depend on context in subtle ways. An agent might succeed on simple queries but fail on complex ones, work well with one tool set but fail with another, or degrade after extended interaction as context accumulates. Include simple, medium, complex, and very complex test cases to surface these patterns.

Score Composite Quality Dimensions Separately

Break agent quality into separate dimensions (factual accuracy, completeness, coherence, tool efficiency, process quality) and score each independently because an agent might score high on accuracy but low on efficiency, or vice versa. Then compute weighted aggregates tuned to use-case priorities. This approach reveals which dimensions need improvement rather than averaging away the signal.

Evaluation Rubric Design

Build Multi-Dimensional Rubrics

Define rubrics covering key dimensions with descriptive levels from excellent to failed. Include these core dimensions and adapt weights per use case:

  • Factual accuracy: Claims match ground truth (weight heavily for knowledge tasks)
  • Completeness: Output covers requested aspects (weight heavily for research tasks)
  • Citation accuracy: Citations match claimed sources (weight for trust-sensitive contexts)
  • Source quality: Uses appropriate primary sources (weight for authoritative outputs)
  • Tool efficiency: Uses right tools a reasonable number of times (weight for cost-sensitive systems)

Convert Rubrics to Numeric Scores

Map dimension assessments to numeric scores (0.0 to 1.0), apply per-dimension weights, and calculate weighted overall scores. Set passing thresholds based on use-case requirements, typically 0.7 for general use and 0.9 for high-stakes applications. Store individual dimension scores alongside the aggregate because the breakdown drives targeted improvement.

Evaluation Methodologies

Use LLM-as-Judge for Scale

Build LLM-based evaluation prompts that include: clear task description, the agent output under test, ground truth when available, an evaluation scale with explicit level descriptions, and a request for structured judgment with reasoning. LLM judges provide consistent, scalable evaluation across large test sets. Use a different model family than the agent being evaluated to avoid self-enhancement bias.

Supplement with Human Evaluation

Route edge cases, unusual queries, and a random sample of production traffic to human reviewers because humans notice hallucinated answers, system failures, and subtle biases that automated evaluation misses. Track patterns across human reviews to identify systematic issues and feed findings back into automated evaluation criteria.

Apply End-State Evaluation for Stateful Agents

For agents that mutate persistent state (files, databases, configurations), evaluate whether the final state matches expectations rather than how the agent got there. Define expected end-state assertions and verify them programmatically after each test run.

Test Set Design

Select Representative Samples

Start with small samples (20-30 cases) during early development when changes have dramatic impacts and low-hanging fruit is abundant. Scale to 50+ cases for reliable signal as the system matures. Sample from real usage patterns, add known edge cases, and ensure coverage across complexity levels.

Stratify by Complexity

Structure test sets across complexity levels to prevent easy examples from inflating scores:

  • Simple: single tool call, factual lookup
  • Medium: multiple tool calls, comparison logic
  • Complex: many tool calls, significant ambiguity
  • Very complex: extended interaction, deep reasoning, synthesis

Report scores per stratum alongside overall scores to reveal where the agent actually struggles.

Context Engineering Evaluation

Validate Context Strategies Systematically

Run agents with different context strategies on the same test set and compare quality scores, token usage, and efficiency metrics. This isolates the effect of context engineering from other variables and prevents anecdote-driven decisions.

Run Degradation Tests

Test how context degradation affects performance by running agents at different context sizes. Identify performance cliffs where context becomes problematic and establish safe operating limits. Feed these limits back into context management strategies.

Continuous Evaluation

Build Automated Evaluation Pipelines

Integrate evaluation into the development workflow so evaluations run automatically on agent changes. Track results over time, compare versions, and block deployments that regress on key metrics.

Monitor Production Quality

Sample production interactions and evaluate them continuously. Set alerts for quality drops below warning (0.85 pass rate) and critical (0.70 pass rate) thresholds. Maintain dashboards showing trend analysis over time windows to detect gradual degradation.

Practical Guidance

Building Evaluation Frameworks

Follow this sequence to build an evaluation framework, because skipping early steps leads to measurements that do not reflect real quality:

  1. Define quality dimensions relevant to the use case before writing any evaluation code, because dimensions chosen later tend to reflect what is easy to measure rather than what matters.
  2. Create rubrics with clear, descriptive level definitions so evaluators (human or LLM) produce consistent scores.
  3. Build test sets from real usage patterns and edge cases, stratified by complexity, with at least 50 cases for reliable signal.
  4. Implement automated evaluation pipelines that run on every significant change.
  5. Establish baseline metrics before making changes so improvements can be measured against a known reference.
  6. Run evaluations on all significant changes and compare against the baseline.
  7. Track metrics over time for trend analysis because gradual degradation is harder to notice than sudden drops.
  8. Supplement automated evaluation with human review on a regular cadence.
  9. Separate deterministic validation failures from quality judgments so invalid art

Content truncated.

When not to use it

  • Designing LLM judges, pairwise comparisons, or bias mitigation
  • Debugging specific context failure modes before measurement
  • Managing autonomous control surfaces or PR approval boundaries

Limitations

  • Cannot substitute for manual judge calibration in complex scenarios
  • Requires stable deterministic foundations before model-judged scoring

How it compares

It evaluates system outcomes based on predefined quality rubrics rather than checking for specific hard-coded process steps.

Compared to similar skills

evaluation side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
evaluation (this skill)32moReviewAdvanced
skill-creator1283moReviewAdvanced
requesting-code-review53moReviewIntermediate
develop-ai-functions-example56moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by muratcankoylan

View all by muratcankoylan

context-compression

muratcankoylan

This skill should be used when the user asks to "compress context", "summarize conversation history", "implement compaction", "reduce token usage", or mentions context compression, structured summarization, tokens-per-task optimization, or long-running agent sessions exceeding context limits.

1350

context-engineering-collection

muratcankoylan

A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems. Use when building, optimizing, or debugging agent systems that require effective context management.

729

filesystem-context

muratcankoylan

This skill should be used when the user asks to "offload context to files", "implement dynamic context discovery", "use filesystem for agent memory", "reduce context window bloat", or mentions file-based context management, tool output persistence, agent scratch pads, or just-in-time context loading.

524

advanced-evaluation

muratcankoylan

This skill should be used when the user asks to "implement LLM-as-judge", "compare model outputs", "create evaluation rubrics", "mitigate evaluation bias", or mentions direct scoring, pairwise comparison, position bias, evaluation pipelines, or automated quality assessment.

427

book-sft-pipeline

muratcankoylan

This skill should be used when the user asks to "fine-tune on books", "create SFT dataset", "train style model", "extract ePub text", or mentions style transfer, LoRA training, book segmentation, or author voice replication.

320

context-degradation

muratcankoylan

This skill should be used when the user asks to "diagnose context problems", "fix lost-in-middle issues", "debug agent failures", "understand context poisoning", or mentions context degradation, attention patterns, context clash, context confusion, or agent performance degradation. Provides patterns for recognizing and mitigating context failures.

323

Search skills

Search the agent skills registry