Skills for Real Engineers. Straight from my .agents directory.
write-judge-prompt
Agent skill fromai-evals-course/evals-skills
Design LLM-as-Judge evaluators for subjective criteria that code-based checks cannot handle. Use when a failure mode requires interpretation (tone, faithfulness, relevance, completeness). Do NOT use when the failure mode can be checked with code (regex, schema validation, execution tests); use `write-code-eval`. To validate an existing judge, use `validate-evaluator`.
How to install write-judge-prompt
npx skills add ai-evals-course/evals-skills# or add only this skill to Claude Code: copy the folder
skills/write-judge-prompt/
# into
~/.claude/skills/write-judge-prompt/ (all projects)
.claude/skills/write-judge-prompt/ (one project)
1# Write LLM-as-Judge Prompt23Design a binary Pass/Fail LLM-as-Judge evaluator for one specific failure mode. Each judge checks exactly one thing.45## Prerequisites67- Error analysis is complete. The failure mode is identified.8- You have human-labeled traces for this failure mode (at least 20 Pass and 20 Fail examples).9- A code-based evaluator cannot check this failure mode. Exhaust code-based options before reaching for a judge — many failure modes that seem subjective reduce to keyword checks, regex, or API calls when you understand the domain. Example: detecting whether an AI interviewing coach suggests "general" questions (asking about typical behavior instead of a specific past event) seems to require semantic understanding, but in practice a keyword check for words like "usually," "typical," and "normally" could work quite well.1011## The Four Components1213Every judge prompt requires exactly four components:1415### 1. Task and Evaluation Criterion1617State what the judge evaluates. One failure mode per judge.1819```20You are an evaluator assessing whether a real estate assistant's email21uses the appropriate tone for the client's persona.22```2324Not: "Evaluate whether the email is good" or "Rate the email quality from 1-5."2526### 2. Pass/Fail Definitions2728Outcomes are strictly binary: Pass or Fail. No Likert scales, no letter grades, no partial credit. Define exactly what constitutes Pass and Fail. These definitions come from your error analysis failure mode descriptions.2930```31…
Excerpt shown under the repository's Apache-2.0 license.
More skills in evals-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
