Uses a strong LLM to evaluate generative outputs via rubrics, pairwise comparison, or reference-based scoring. Covers when LLM-judge works, its biases, and how to calibrate scores.
Ships in evals. 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.
None: SKILL.md is the whole skill.
Use a strong LLM to evaluate another LLM's output. Done right, it's fast, cheap, and correlates with human judgment. Done wrong, it's biased, inconsistent, and misleading.
exact_match is cheaperJudge rates one output against explicit criteria on a 1-5 scale.
const prompt = `You are evaluating a response. Rate it 1-5 on each criterion.
<user_query>${query}</user_query>
<response>${response}</response>
Criteria:
- accuracy: factually correct?
- helpfulness: addresses what the user asked?
- conciseness: no unnecessary verbosity?
Return JSON: {"accuracy": N, "helpfulness": N, "conciseness": N, "reasoning": "..."}`;
const judgment = await client.messages.create({
model: JUDGE_MODEL, // a current, strong model ID from config
max_tokens: 500,
messages: [{ role: "user", content: prompt }],
});
Use a stronger model as judge than the one you're evaluating. For example, judge a smaller model tier with a larger one.
Show two outputs, judge picks which is better. Most reliable pattern.
const prompt = `Compare two responses to the same query. Pick which is better overall.
<query>${query}</query>
<response_A>${responseA}</response_A>
<response_B>${responseB}</response_B>
Return JSON: {"winner": "A" | "B" | "tie", "reasoning": "..."}`;
To control for position bias, run each pair TWICE with order swapped. Average the judgments.
Compare output to a gold-standard reference:
const prompt = `Is the generated answer equivalent to the reference answer?
<reference>${reference}</reference>
<generated>${generated}</generated>
"Equivalent" means factually consistent — wording can differ.
Return: {"equivalent": true|false, "reasoning": "..."}`;
Cheaper than rubric but requires good references.
| Bias | Description | Mitigation |
|---|---|---|
| Position bias | Judge prefers first or second option | Randomize; run pairs twice with swapped order |
| Length bias | Judge prefers longer responses | Include "conciseness" in rubric; normalize by length |
| Self-preference | Judge prefers its own model's style | Use a DIFFERENT model family as judge |
| Verbosity bias | Judge prefers confident/flowery language | Rubric explicitly penalizes vagueness |
| Format bias | Prefers markdown/bullets over prose | Rubric targets content, not format |
Name the biases in your judge prompt — it reduces them: "Do not prefer longer responses; judge only on accuracy."
Don't trust judge scores in isolation. Calibrate:
from sklearn.metrics import cohen_kappa_score
kappa = cohen_kappa_score(human_labels, judge_labels)
Re-calibrate quarterly or whenever you change judge prompts or models.
Get judgments as JSON so you can aggregate:
const judgment = await client.messages.create({
model: JUDGE_MODEL, // a current, strong model ID from config
max_tokens: 500,
messages: [
{ role: "user", content: judgePrompt },
{ role: "assistant", content: "{" },
],
});
const parsed = JSON.parse("{" + judgment.content[0].text);
Prefilling "{" nudges valid JSON. Validate with a schema before aggregating.
Per dataset:
Report confidence intervals (bootstrap) — a 2% score gap on 100 samples is likely noise.
Judging is expensive. Reduce cost:
prompt-caching-ttl)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/cost-quality-tradeoffMeasure and optimize the cost/quality curve — which model, prompt, and settings give the best quality per dollar. Covers Pareto analysis, break-even thresholds, and when to spend more vs less.
Use this skill when optimizing LLM spend, picking a default model for a feature, or deciding whether a premium model is worth it.
Activate when: cost vs quality, model selection, eval cost, Pareto frontier, cheaper model, premium model tradeoff.
/eval-dataset-designDesign eval datasets that actually measure model quality — coverage, difficulty distribution, labeling consistency, and avoiding contamination. Covers sourcing, stratification, label quality, and when to generate vs curate.
Use this skill when building a new eval set, realizing your current evals don't catch regressions, or labeling is inconsistent.
Activate when: eval dataset, benchmark, test set, eval coverage, label quality, synthetic eval, dataset design.
/golden-set-maintenanceCurate and maintain "golden set" eval items — the small, high-signal cases that must never regress. Covers selection criteria, review cadence, retiring stale items, and keeping the set sharp.
Use this skill when building a sanity-check eval that runs on every PR, defending against silent quality drops, or your full eval takes too long to run in CI.
Activate when: golden set, smoke test eval, canary eval, must-not-regress, eval sentinels, core eval.
/regression-evalsSet up continuous regression evals so model/prompt/tool changes don't silently break existing behavior. Covers gating thresholds, CI integration, statistical significance, and response to regressions.
Use this skill when deploying prompts to production, gating model upgrades, or noticing "it worked yesterday" in AI features.
Activate when: regression eval, eval CI, prompt regression, model upgrade gate, eval threshold, eval alert.
/evals:llm-as-judgefrom evals
npx claudepluginhub latestaiagents/agent-skills --plugin evals2 plugins in one repository ship this exact skill · first indexed Nov 5, 2026