hamelsmu avatar

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-code

Installs 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

More from hamelsmu/evals-skills

All 7
1mindrally avataranthropic-claude-developmentmindrally/skillsExpert guidance for Anthropic Claude API development including Messages API, tool use, prompt engineering, and building production applications with Claude mode751skills.sh installs
2ruvnet avatardaa-agentruvnet/rufloCreate and adapt Dynamic Agentic Architecture agents that learn and evolve745skills.sh installs
3syncfusion avatarsyncfusion-react-ai-assistviewsyncfusion/react-ui-components-skillsImplement the Syncfusion React AI AssistView component. Use this skill to handle AI-powered conversational interfaces, AssistView setup, conversation flow, spee737skills.sh installs
4dotnet avatarmcp-csharp-createdotnet/skillsCreate MCP servers using the C# SDK and .NET project templates. Covers scaffolding, tool/prompt/resource implementation, and transport configuration for stdio a722skills.sh installs
5mindrally avatarmeta-promptmindrally/skillsMeta-prompting framework for critiquing responses, analyzing solution trajectories, and evaluating AI-generated content quality718skills.sh installs
6alirezarezvani avatarllm-wikialirezarezvani/claude-skillsUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/conc706skills.sh installs