/llm-workbench:power-analysisfrom llm-workbench
Use to decide how many prompts an llm-workbench comparison needs — run power analysis on a pilot run (or from an assumed effect size) and interpret the recommended sample size. Triggers on "how many prompts do I need", "power analysis", "sample size", "is my pilot big enough", "what N should I use", "did I have enough power".
Ships in llm-workbench. 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.
Turns a per-prompt effect size into the number of prompts needed to detect it reliably. Needs
the analysis extra (uv add "llm-workbench[analysis]"). Read
../../references/stats-interpretation.md for the concepts; this skill is the procedure.
Why it's needed: the number of prompts depends on how different the candidate models actually are on your task — a gap you can't know in advance. Close models need many more prompts than far-apart ones. A pilot measures that gap; power analysis turns it into a target N.
llm-workbench power --from-run runs/pilot --reference ollama/llama3.1
Reports, per model vs. the reference: the observed effect, the power the pilot already achieved, and the N needed to reach your target power — plus a recommended N.
Interpret:
dz = mean of per-prompt differences / SD of those differences. Bigger = easier
to detect = smaller N.--alpha (default 0.05), --power (default 0.8), --alternative.If you can only assume an effect size, size it directly:
llm-workbench power --effect-size 0.5 # N at alpha=0.05, power=0.8
llm-workbench power --mean-diff 0.4 --sd-diff 0.8 # dz = 0.4/0.8 = 0.5 → same N
Warn the user: a guessed effect can be off by an order of magnitude. Prefer a real pilot.
Sample sizes use the paired t-test; analyze uses the Wilcoxon signed-rank test (~95% as
efficient). Add a small margin to the recommended N so the nonparametric test you'll
actually run stays adequately powered.
Gate for the guide: a target N chosen (the recommended N for the smallest effect, plus a
margin). Hand it to the build-dataset skill to grow the test set to that size.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nebulock-inc/llm-workbench --plugin llm-workbench8 skills in this plugin
/analyze-resultsUse to analyze a finished llm-workbench run and turn it into a model recommendation — run the statistics (reliability, significance, effect size, equivalence) and interpret them for a decision. Triggers on "analyze my run", "which model won", "which model is best", "are these models significantly different", "are they equivalent / the same", "read my results", "interpret analysis.md"./build-datasetUse to build the JSONL test set of prompts for an llm-workbench comparison — hand-author it, convert a spreadsheet, or generate a starter set with an LLM, and size it for a pilot vs. the full study. Triggers on "build a test set", "make a dataset", "create prompts", "dataset from CSV / spreadsheet", "generate prompts", "how many prompts for my pilot"./create-evalsUse to create, design, and validate llm-workbench evals (how a model's output is scored — an LLM-judge rubric and/or deterministic checks), and to calibrate the judge against a human before trusting its scores. Triggers on "create an eval", "design a rubric", "add a scorer / check", "validate my evals", "exact_match / contains / regex / json_schema / latency check", "calibrate the judge", "do I trust the judge", "judge vs human agreement"./define-taskUse to define the task being tested in llm-workbench — decide between the default prompt-template task (no code) and a custom Python task, and write whichever fits. Triggers on "define my task", "write a prompt template", "I need a custom task", "multi-step / retrieval / RAG / org-scoped / tenant-scoped task", "expose values to the eval", "re-score a past run", "ReplayTask"./evaluate-modelsUse to run a full llm-workbench model evaluation end to end — guide someone from "I want to know which model is best for my task" to a statistically grounded recommendation, sequencing setup, task, evals, pilot, power analysis, the full run, and analysis with a checkpoint between each. Triggers on "which model should I use", "compare / evaluate LLMs for my task", "pick the best model", "set up an LLM evaluation", "get started with llm-workbench", "run a model comparison from scratch"./run-comparisonUse to run an llm-workbench model comparison — the model×record sweep that produces the scored results, for both a small pilot and the full study. Covers options, resume, smoke-testing, output files, and local-model memory. Triggers on "run the comparison", "run compare", "run a pilot", "compare these models", "resume a run", "grow my run", "my run crashed".