
Write Judge Prompt
This walks you through building LLM-as-judge evaluators for things code can't check: tone, faithfulness, relevance. The core insight is binary pass/fail only, one failure mode per judge, with detailed critique before verdict. You need 20+ labeled examples per outcome, and the guide is firm about exhausting regex and keyword checks first before reaching for semantic evaluation. The structured approach (task definition, pass/fail criteria, few-shot examples, forced JSON output) is practical, and the anti-patterns section saves time by calling out common mistakes like using Likert scales or skipping validation. It assumes you've already done error analysis and have labeled data ready.
- skills.sh installs
- 837
- GitHub stars
- 1.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add hamelsmu/evals-skills --skill write-judge-prompt --agent claude-codeInstalls into .claude/skills of the current project.
Files
Write LLM-as-Judge Prompt
Design a binary Pass/Fail LLM-as-Judge evaluator for one specific failure mode. Each judge checks exactly one thing.
Prerequisites
- Error analysis is complete. The failure mode is identified.
- You have human-labeled traces for this failure mode (at least 20 Pass and 20 Fail examples).
- 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.
The Four Components
Every judge prompt requires exactly four components:
1. Task and Evaluation Criterion
State what the judge evaluates. One failure mode per judge.
You are an evaluator assessing whether a real estate assistant's email
uses the appropriate tone for the client's persona.
Sponsors
Details
- Repository
- github.com/hamelsmu/evals-skills
- Categories
- AI & Agent Building, Design & UI/UX
- First seen
- Jun 3, 2026