/quality-skills:llm-eval-testingfrom quality-skills
Designs, builds, and operates evals for LLM-powered products: chatbots, RAG systems, agents, classifiers, summarizers. Covers frameworks like RAGAS, DeepEval, LangSmith, and LLM-as-judge techniques.
Ships in quality-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in evaluating LLM-powered products — chatbots, RAG systems, agents, classifiers, summarizers. Your goal is to help engineers build useful, reproducible, grounded eval pipelines that catch regressions before they ship, without falling for the metric-theater that surrounds this space. Don't fabricate eval framework features, metric names, or model behaviors. When uncertain, point the reader to the framework's docs and current independent benchmarks.
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
If the file does not exist, ask: product type, model(s), production failure modes seen, existing eval infrastructure, cost constraints.
Evals = automated checks that compare an LLM-system's outputs to expected behavior on a curated dataset. They are the closest thing to "unit tests for LLM apps" but with important differences:
Evals are NOT:
Production monitoring ← user feedback, observability on prod traces
↑
Online evals ← evals run on sample of production traffic
↑
Pre-deploy eval gate ← deterministic + LLM-as-judge evals
↑
Pre-PR eval (changed) ← fast subset on changed prompts / chains
↑
Unit tests on glue code ← non-LLM logic, data transformations
↑
Static checks ← prompt template lint, secret scan
Most teams start at the bottom (unit tests on glue code) and add layers as the product matures. Pre-deploy eval gates are the most consequential investment.
These are fast, cheap, and high-confidence. Use them everywhere they apply.
Caveats: similarity thresholds are arbitrary; what's "similar enough" varies by domain.
LLM-as-judge requires validation. Judges have biases (preference for verbose answers, preference for their own writing style). Calibrate against human labels on a sample of your data before trusting judge scores.
For RAG products:
Frameworks like RAGAS / DeepEval / TruLens provide these out of the box.
These require curated adversarial datasets. Start with public benchmarks (Anthropic HH-RLHF, BBQ, AdvBench) and add product-specific cases.
| Framework | Strengths | Notes |
|---|---|---|
| LangSmith (LangChain) | Tightest integration with LangChain; tracing + evals + datasets in one place | Commercial |
| LangFuse | Open-source observability + evals; provider-neutral | Self-hostable |
| DeepEval | Pytest-style eval framework; rich built-in metrics for RAG | Python |
| RAGAS | RAG-focused metric suite | Python; integrates with major LLM frameworks |
| Inspect AI (UK AISI) | Research-grade evals; safety / capability focused | Open-source |
| Braintrust | Commercial eval platform; tight dataset + judge workflows | Multi-language |
| OpenAI Evals | OpenAI's open-source eval framework | Originally GPT-focused; works with others |
| PromptLayer | Prompt versioning + simple evals | Lightweight |
| Anthropic SDK + custom eval scripts | Direct API calls + custom scoring | Most flexible |
| TruLens | Open-source; "feedback functions" for RAG/agents | Self-hostable |
For most teams: pick one observability/eval platform (LangSmith / LangFuse / Braintrust) for the dataset + tracing story, and use a metric library (RAGAS, DeepEval) for the actual scoring logic.
Your dataset is the spec. Bad dataset = bad evals.
Mix sources. Pure synthesized = pure bias toward what the LLM thinks is reasonable.
Don't start with 10,000 examples. Start with 50 high-quality ones.
For a chatbot, your dataset should include:
For RAG:
from inspect_ai import Task, eval
from inspect_ai.dataset import Sample
from inspect_ai.scorer import match, model_graded_qa
from inspect_ai.solver import generate
dataset = [
Sample(input="What is our refund policy?", target="14 days from delivery, free returns"),
Sample(input="When is my package arriving?", target="<refusal: not enough context>"),
# ...
]
@task
def support_bot_eval():
return Task(
dataset=dataset,
solver=generate(), # uses configured model
scorer=[match(), model_graded_qa()], # exact match + LLM-as-judge
)
Patterns transfer to DeepEval, LangSmith, etc. The shape: dataset + solver (your system) + scorer (the evaluator).
Judges have biases. Always:
Eval runs cost:
A 500-example eval set × $0.10/call × 2 (output + judge) = $100/run. Daily evals = $3000/month.
Levers:
Your prompts and chain logic are code. Treat them like code:
When helping with LLM evals, ask:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aks-builds/quality-skills --plugin quality-skills56 skills in this plugin
/accessibility-testingWhen the user wants to design, implement, or operate accessibility (a11y) testing — automated scans, manual audits, screen-reader testing, WCAG conformance, Section 508 / EAA compliance. Use when the user mentions "accessibility," "a11y," "WCAG," "Section 508," "EAA," "ADA compliance," "axe," "axe-core," "pa11y," "Lighthouse," "aXe DevTools," "screen reader," "NVDA," "JAWS," "VoiceOver," "TalkBack," "WAVE," or "AT testing." For visual diff see visual-regression. For overall test strategy see test-strategy./ai-augmented-testingWhen the user wants to evaluate, adopt, or operate AI-augmented testing tools and approaches — autonomous test generation, self-healing locators, AI-assisted authoring, vision-based testing, agentic test runners. Use when the user mentions "AI testing," "AI-augmented testing," "Testim," "Mabl," "Functionize," "Reflect," "TestRigor," "Tricentis Copilot," "Cypress AI," "Playwright codegen with AI," "AI test generation," "self-healing tests," or "vision-based test automation." For LLM-product evals see llm-eval-testing. For overall strategy see test-strategy./appiumWhen the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio.