Skip to content
hamelsmu avatar

Write Judge Prompt

Design binary Pass/Fail LLM-as-Judge evaluators for one subjective failure mode at a time.

CCM score
79 of 100
skills.sh installs
858
GitHub stars
1.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the four required judge components: task criterion, Pass/Fail definitions, labeled few-shot examples, and structured critique-then-verdict output
  • Includes guidance on choosing inputs per failure mode, selecting training-split examples, and choosing an initial model
  • Enforces binary outcomes only, with no Likert scales, and warns against dev/test examples leaking into the prompt
  • Designed for teams with error analysis and labeled traces who need checks that code-based evaluators cannot perform

Install

$ npx -y skills add hamelsmu/evals-skills --skill write-judge-prompt -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Details

Repository
github.com/hamelsmu/evals-skills
Categories
AI Agents & LLM Apps, Testing & QA
First seen
Jun 3, 2026

Questions

What does the write-judge-prompt skill do?

It designs binary Pass/Fail LLM-as-Judge evaluators for subjective criteria such as tone, faithfulness, relevance and completeness. Each judge checks exactly one failure mode, and the skill defines the criterion, Pass and Fail definitions, few-shot examples and structured output.

When should I use write-judge-prompt instead of a code-based check?

Use it when a failure mode requires interpretation that regex, schema validation or execution tests cannot handle. The skill says to exhaust code-based options first, and it should not be used to validate or calibrate the judge, which is the job of validate-evaluator.

How do I install write-judge-prompt?

Run npx -y skills add hamelsmu/evals-skills --skill write-judge-prompt -y in your project. The skill then guides your agent through writing a judge prompt with the four required components.

What does the skill need before I can use it?

Error analysis must already identify the failure mode, and you need human-labeled traces with at least 20 Pass and 20 Fail examples for it. The skill also expects a training split of 10-20% of labeled data for few-shot examples.

Where does write-judge-prompt stand in its category?

It sits in the AI Agents & LLM Apps category on Claude Marketplaces, alongside microsoft-foundry, azure-ai and several google-agents-cli skills. Its focus is narrow: writing one binary judge prompt for one subjective failure mode.

More from hamelsmu/evals-skills

All 7

Similar to Write Judge Prompt

More AI Agents & LLM Apps