Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agentic-evaluation-framework

БесплатноЗапускает вложенные скриптыНе проверен

Builds LLM and agent evals: weighted rubrics, LLM-as-judge design, inter-rater agreement and pairwise ranking (Elo, Bradley-Terry) from scores you collect…

borgheiот borghei★ 1 250 звёзд на GitHub

Об этом скилле

Agentic Evaluation Framework

Category: Engineering Domain: AI Engineering

Overview

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.

Clarify First

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.

  • What "good" means: the dimensions you care about (accuracy, helpfulness, safety, format, tool-use) and their relative weight (defines the rubric criteria and weights).
  • Grading method: can a deterministic check decide it, do you need an LLM judge, or must a human review it? (selects programmatic vs rubric_scorer.py absolute scoring vs pairwise_ranking.py comparison vs human-in-the-loop).
  • Ground truth & budget: do you have human-labeled examples to calibrate the judge against, and what cost/latency per eval run is acceptable? (sets calibration plan and the quality/cost/latency budget).

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.

Quick Start

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.

Tools Overview

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.

Workflows

1. Build and calibrate an absolute-scoring rubric

  1. Translate "what good means" into 3-6 named criteria, each with a weight, a 1-5 (or 1-7) scale, and a written anchor for every scale point (see references/llm-judge-methodology.md).
  2. Have at least two graders — human, or human plus model — independently score a calibration set, and record the per-criterion scores as the rubric_scorer.py input JSON.
  3. Run 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.
  4. Once graders agree, treat the human scores as ground truth and check that the LLM judge's scores correlate; if not, revise the judge prompt or fall back to human review for that criterion.
  5. Wire the passing rubric into CI as a gate (--json → pass/fail), and re-run agreement periodically to catch judge drift.

2. Rank model/prompt variants by pairwise comparison

  1. When absolute scores are noisy, switch to pairwise: show the judge two outputs (A and B) for the same input and ask only "which is better?" — easier and more reliable than an absolute number.
  2. Mitigate position bias by running each pair in both orders (A,B and B,A) and counting a win only if it survives both; record outcomes as pairwise_ranking.py matches, using "winner": "tie" for disagreements.
  3. Run pairwise_ranking.py to get Elo and Bradley-Terry rankings plus th
Полный SKILL.md на GitHub

Установить agentic-evaluation-framework в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/sample_pairwise_matches.jsonassets/sample_rubric_scores.jsonreferences/eval-pitfalls.mdreferences/llm-judge-methodology.mdscripts/pairwise_ranking.pyscripts/rubric_scorer.py

FAQ

Что делает скилл agentic-evaluation-framework?

Builds LLM and agent evals: weighted rubrics, LLM-as-judge design, inter-rater agreement and pairwise ranking (Elo, Bradley-Terry) from scores you collect. Use when setting up a judge, scoring outputs, or comparing model or prompt variants.

Как установить скилл agentic-evaluation-framework?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agentic-evaluation-framework запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить agentic-evaluation-framework с