/pm-copilot:llm-as-judgefrom pm-copilot
Guides setting up an LLM-as-judge evaluation system where one LLM grades another's outputs. Covers judge architecture options (binary, rubric, comparative, error detection) and prompt templates.
Ships in pm-copilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are setting up an LLM-as-judge evaluation system — a scalable way to automatically evaluate AI output quality by using a stronger or specialized LLM to grade the outputs of the product's AI.
Framework: Hamel Husain + Shreya Shankar (Building eval systems, 2025), Anthropic's evaluation methodology.
Read memory/user-profile.md for the AI feature being evaluated. Read the error analysis output if available to understand the failure categories to target.
Use LLM-as-judge when:
Do NOT use LLM-as-judge when:
Option A — Binary (Recommended for most cases): Judge outputs PASS or FAIL with a brief explanation. Simple, reliable, easy to aggregate.
Option B — Rubric (Use when more granularity is needed): Judge scores each of 3–5 criteria on a 1–5 scale. Good for quality tracking over time.
Option C — Comparative (Use when evaluating prompt variants): Judge sees two outputs side-by-side and picks the better one. Best for A/B testing prompt changes.
Option D — Error detection (Use when targeting specific failure categories): Judge specifically looks for a known failure type (e.g., "does this output contain any unsupported factual claims?").
Structure every judge prompt with these sections:
# Evaluation Task
You are evaluating the quality of an AI assistant's response. Your role is to act as an expert reviewer and provide an objective assessment.
## Context
[Brief description of what the AI assistant is supposed to do]
## What you're evaluating for
[Specific quality criteria — be precise about what PASS and FAIL mean]
## The evaluation
**User input:**
{{input}}
**AI assistant's response:**
{{output}}
## Instructions
1. Analyze the response against the criteria above
2. Write your reasoning in 2–3 sentences
3. State your verdict: PASS or FAIL
## Output format
Reasoning: [Your 2–3 sentence analysis]
Verdict: [PASS or FAIL]
Before deploying LLM-as-judge in production, calibrate it:
If agreement is < 85%:
Position bias: Judge tends to prefer responses in a certain format or length. Fix: randomize the order of criteria in the prompt and run the same evaluation multiple times.
Verbosity bias: Judge rates longer responses as better even when they're not. Fix: explicitly state in the prompt "Length is not a quality signal. Evaluate based on [specific criteria]."
Self-evaluation bias: An LLM tends to give high ratings to outputs that look like its own generation style. Fix: use a different model as judge than the model being evaluated.
Instruction following: If the judge doesn't follow the output format, extract the verdict with a regex or second parsing step.
Provide a Python pseudocode template for integrating LLM-as-judge into the evaluation pipeline:
import anthropic
def evaluate_output(user_input: str, ai_output: str, judge_prompt: str) -> dict:
client = anthropic.Anthropic()
judge_input = judge_prompt.replace("{{input}}", user_input).replace("{{output}}", ai_output)
response = client.messages.create(
model="claude-opus-4-6", # Use strongest model as judge
max_tokens=500,
messages=[{"role": "user", "content": judge_input}]
)
verdict_text = response.content[0].text
verdict = "PASS" if "Verdict: PASS" in verdict_text else "FAIL"
return {"verdict": verdict, "reasoning": verdict_text, "input": user_input, "output": ai_output}
# Run on a sample
results = [evaluate_output(inp, out, JUDGE_PROMPT) for inp, out in test_cases]
pass_rate = sum(1 for r in results if r["verdict"] == "PASS") / len(results)
print(f"Pass rate: {pass_rate:.1%}")
Produce:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (productfculty-aipm/pm-copilot-by-product-faculty) — no native marketplace selected
npx claudepluginhub p/productfculty-aipm-pm-copilot65 skills in this plugin
/ab-test-designUse this skill when the user asks to "design an A/B test", "how should I test this", "experiment design", "how do I run an experiment", "test this feature", "set up a split test", "how many users do I need", "statistical significance", "how do I know if this test worked", or wants to design a rigorous experiment to test a product hypothesis./ai-feature-monetizationUse this skill when the user asks specifically about "how to monetize AI features", "should AI be a separate tier", "pricing for AI capabilities", "how to charge for AI", "AI add-on vs. bundle", "AI feature pricing strategy", or is adding AI capabilities to an existing product and wants to decide how to monetize them. This is a specialized version of pricing-review focused on AI feature economics./altitude-horizonUse this skill when the user asks about "altitude and horizon framework", "Shreyas Doshi altitude", "working at the right level", "am I too in the weeds", "I'm too tactical", "how do I work at the right altitude", "horizon thinking for PMs", or wants to evaluate whether they're operating at the right level of abstraction for their role and stage./assumption-mappingUse this skill when the user asks to "map assumptions", "identify assumptions", "what are we assuming", "assumption audit", "what could go wrong with this idea", "test our assumptions", "what do we need to validate", "identify our riskiest assumption", or when reviewing an idea or PRD and wants to surface hidden bets before building. Do NOT use this skill for general risk analysis — that is part of the pre-mortem skill./attitudinal-segmentationUse this skill when the user asks about "attitudinal segmentation", "segmenting by attitude", "AI embracer vs skeptic", "how to segment our users beyond demographics", "psychographic segmentation", "behavioral segmentation", "how users feel about AI", or wants to go beyond demographic user segments to understand attitudinal and behavioral differences that affect product and marketing decisions./audience-tailoringUse this skill when the user asks to "tailor this for different audiences", "write this for an exec vs. engineering", "adapt this message for different stakeholders", "translate this for a non-technical audience", "help me communicate this to [specific role]", or has an existing document or message and wants to produce multiple audience-specific versions. This is a rewriting skill — it takes existing content and adapts it, not generates from scratch.Other plugins' skills for the same job