llm-as-judge

llm-as-judge is a skill for Claude Code from latestaiagents/agent-skills. It costs 102 tokens per session (1,549 once invoked), scanned A, original, MIT.

A guide to using one language model to evaluate another model's open-ended answers with scoring rubrics or side-by-side comparisons. It also covers calibration with human labels and sources of evaluator bias.

In plain words
What is it for?
Use it to build evaluation pipelines, compare models on the same inputs, or run checks on agent outputs in continuous integration.
Why use it?
It helps you assess summaries, code, helpfulness, and other outputs at larger scale when simple exact-answer checks are not enough.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the evals plugin — 5 skills shipped together , and of latestaiagents

Good fit Use it to build evaluation pipelines, compare models on the same inputs, or run checks on agent outputs in continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/latestaiagents/agent-skills/llm-as-judge
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add latestaiagents/agent-skills --skill llm-as-judge
Clone the repo
git clone --depth 1 https://github.com/latestaiagents/agent-skills

Made for: Claude Code.

Or install evals, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for llm-as-judge

README.md
[![agentmods](https://agentmods.dev/badge/skills/latestaiagents/agent-skills/llm-as-judge/github.svg)](https://agentmods.dev/skills/latestaiagents/agent-skills/llm-as-judge)
Your own site
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/llm-as-judge"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/llm-as-judge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for llm-as-judge

Your own site · 80×15
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/llm-as-judge"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/llm-as-judge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.01549
Opus 5 $0.00051 $0.00775
Sonnet 5 $0.00020 $0.00310
Haiku 4.5 $0.00010 $0.00155

Measured 9d ago against content hash 9749b97e0d16, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

llm-as-judge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/evals/llm-as-judge/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LLM-as-Judge

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.

When to Use

  • Scaling eval beyond what humans can review
  • Measuring open-ended outputs (summaries, code quality, helpfulness) where rule-based metrics fail
  • Pairwise model comparison (A vs B on the same input)
  • CI checks on agent outputs

When NOT to Use

  • High-stakes decisions (medical, legal) — need humans
  • When the judge is the same model as the generator — biased toward its own style
  • Very short outputs where a rule can decide — exact_match is cheaper
  • Tasks the judge can't do itself — if it can't write good code, it can't judge code well

Three Common Patterns

1. Rubric Scoring

Judge 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: "claude-opus-4-6",
  max_tokens: 500,
  messages: [{ role: "user", content: prompt }],
});

Use a stronger model as judge than the one you're evaluating. Opus judges Sonnet; Sonnet judges Haiku.

2. Pairwise Comparison

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.

3. Reference-Based

Compare output to a gold-standard reference:

Read the full file on GitHub · 178 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 178 lines · 102 tokens per session scan A 9749b97e0d16

Subscribe to this mod's changes

llm-as-judge is a skill published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 102 tokens to every session and 1,549 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.