/engineering-advanced-skills:agentic-evaluation-frameworkfrom engineering-advanced-skills
Builds LLM and agent evaluations with weighted rubrics, LLM-as-judge design, inter-rater agreement, and pairwise ranking (Elo, Bradley-Terry). Use when setting up a judge, scoring outputs, or comparing model or prompt variants.
Ships in engineering-advanced-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Category: Engineering Domain: AI Engineering
Design and run trustworthy evaluations for LLM and agent outputs: pick the right grading method (programmatic check, LLM-as-judge, or human review), write a scoring rubric that judges can apply consistently, rank competing variants by pairwise comparison, and watch for the biases that quietly corrupt judge scores — position bias, verbosity bias, and self-preference. The goal is an eval that you can trust enough to ship on: calibrated against human labels, cheap enough to run on every change, and tracked alongside cost and latency so you never trade quality away by accident. This skill is model- and vendor-agnostic: it reasons about the evaluation method, not any one provider's API, and its scripts aggregate scores you have already collected — they never call a model.
Before designing or running an evaluation, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
criteria and weights).rubric_scorer.py absolute scoring vs pairwise_ranking.py comparison vs human-in-the-loop).Ask about the two or three inputs that matter most for this request. If the user says "just draft it," proceed and list your assumptions.
cd engineering/agentic-evaluation-framework
# 1. Score outputs against a weighted rubric + check inter-rater agreement
python scripts/rubric_scorer.py --data assets/sample_rubric_scores.json # 4 items, 50% pass
# 2. Rank competing variants from pairwise (A-vs-B) judgements
python scripts/pairwise_ranking.py --data assets/sample_pairwise_matches.json # prompt-v2 first
# JSON output for piping into a dashboard or CI gate
python scripts/rubric_scorer.py --data assets/sample_rubric_scores.json --json
Input shapes are in each script's docstring and in the two sample files. In the rubric sample the
two judges disagree sharply on medical-advice-q (accuracy 4 vs 2): low agreement on an item is a
signal to fix the rubric wording or add an anchor example before trusting the score.
| Tool | Purpose | Key Flags |
|---|---|---|
scripts/rubric_scorer.py | Aggregate per-criterion scores into weighted totals, per-criterion means, pass/fail vs thresholds, and an inter-rater agreement metric | --data, --json |
scripts/pairwise_ranking.py | Turn head-to-head win/loss records into a ranking via Elo + Bradley-Terry, plus a win-rate matrix | --data, --k, --base, --json |
Both scripts: Python 3 standard library only, argparse CLI, --json and human-readable output. They compute over scores you provide and never call a model. Run --help for full usage.
Exit codes. 0 report printed; 2 missing or unreadable --data, invalid JSON, or a file
without the expected keys. Neither script gates on the scores; read the pass rate and agreement.
references/llm-judge-methodology.md).rubric_scorer.py input JSON.rubric_scorer.py and read inter_rater_agreement: low agreement means the rubric is ambiguous, not that a grader is wrong — tighten the anchors and re-score before trusting any number.--json → pass/fail), and re-run agreement periodically to catch judge drift.pairwise_ranking.py matches, using "winner": "tie" for disagreements.pairwise_ranking.py to get Elo and Bradley-Terry rankings plus the win-rate matrix; Bradley-Terry is order-independent and preferred for a fixed batch, Elo for a streaming sequence of matches.In Scope:
rubric_scorer.py: weighted totals, per-criterion means, pass/fail against thresholds and an inter-rater agreement metricpairwise_ranking.py using Elo and Bradley-Terry, plus a win-rate matrix for spotting intransitive resultsOut of Scope:
engineering/agent-harness/)engineering/prompt-engineer-toolkit/)engineering/llm-cost-optimizer/)Important Caveats:
Mistake: Shipping on LLM-judge scores that were never compared with human labels. Why it happens: The judge produces confident numbers immediately. Instead: Label a held-out set by hand, measure the judge's agreement with it, and re-check when the judge model or prompt changes.
Mistake: Running each pairwise comparison once with the same variant always in position A. Why it happens: Doubling the comparisons doubles the cost. Instead: Run both orders and count only wins that survive the swap; position bias is large enough to flip rankings.
Mistake: Reporting the mean score while two graders disagree by two points on the same item.
Why it happens: The mean looks stable.
Instead: Read rubric_scorer.py's agreement numbers and fix the rubric where graders split, usually by adding anchor examples for each score.
scripts/rubric_scorer.py, scripts/pairwise_ranking.py — the two CLIs above.assets/sample_rubric_scores.json — four items, three criteria, two judges; assets/sample_pairwise_matches.json — nine matches across three prompt variants.references/llm-judge-methodology.md, references/eval-pitfalls.md — judge design, bias mitigations, pitfalls.assets/sample_pairwise_matches.json (opens in a new tab)assets/sample_rubric_scores.json (opens in a new tab)references/eval-pitfalls.md (opens in a new tab)references/llm-judge-methodology.md (opens in a new tab)scripts/pairwise_ranking.py (opens in a new tab)scripts/rubric_scorer.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job