/polymath-ai:eval-planfrom polymath-ai
Design an evaluation for an LLM feature — task type, dataset shape, automated vs human rubric, regression set, decision threshold.
Ships in polymath-ai. 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.
Pin down what "good" means before you ship. Output is an eval plan that tells you when to release and when to hold.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
Not this when: you are designing the agent or prompt itself (polymath-ai:agent-design, polymath-ai:prompt-engineer) or a product A/B test on users (polymath-data:run-experiment). This skill builds the offline/online eval that judges them.
python3 "${POLYMATH_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/skills/eval-plan/scripts/winrate.py" --wins 114 --losses 86 --ties 23Eval plan: <feature>
Task type: reference-free with LLM-as-judge.
Dataset:
smoke — 20 examples (curated by hand; updated weekly).
regression — 200 examples (drawn from prior bugs + golden behaviors);
40 held out, never used while iterating.
frontier — 50 examples (hard / ambiguous / under-specified).
Noise floor: baseline vs baseline re-run = 2.1 pts on smoke → deltas < 3 pts are noise.
Runs: k = 5 per example; pass = ≥ 4 of 5.
Rubric (LLM judge):
- correctness: pass / fail
- completeness: pass / fail
- format: pass / fail (refusal also counts as fail)
- harmlessness: pass / fail
Independent axes; majority-pass is not an aggregate score.
Judge: pinned model + prompt; position randomized; calibrated vs humans.
Decision thresholds:
Ship — regression 100% (≥ 4/5 runs) on correctness AND format; smoke
≥ 85% on all four axes; no harmlessness fail anywhere.
Hold — anything else.
Canary — ship at 10% for 48h with thresholds in dashboards.
Failure-mode taxonomy:
R1 wrong retrieval, R2 right retrieval / wrong synthesis,
R3 hallucination, R4 format violation, R5 over-refusal.
Re-validation cadence:
Judge prompt or model change → re-run human-vs-judge agreement on
a 50-example calibration set; agreement must stay ≥ 0.8 Cohen's κ.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/agent-designDesign an LLM agent — architecture (ReAct, plan-execute, reflexion), tool/function-calling contract, memory, multi-agent orchestration, and the stop/budget conditions./llm-cost-latencyCut LLM cost and latency — model routing/cascade, prompt caching, batching, streaming, context trimming, output-token control, and a per-request cost/latency budget./llm-guardrailsDesign guardrails for an LLM feature — input validation, prompt-injection defenses, output filtering/schema validation, allow-deny policy, and human-in-the-loop gates./prompt-engineerAuthor or improve an LLM prompt — clarify task, constrain output shape, place worked examples, bound calibration; vendor-agnostic./rag-designDesign a retrieval-augmented generation pipeline — chunking, embeddings, retriever, reranker, prompt assembly — with the right cuts for the use case.npx claudepluginhub mohammadbafkar/polymath --plugin polymath-ai