ai-benchmark-expert
Benchmark LLMs by giving the SAME task to multiple providers and models as headless CLI subagents (Claude Code, Codex, Gemini CLI, OpenCode/MiniMax, mm-run or…
от Andersonlimahw★ 19 звёзд на GitHub
Установить ai-benchmark-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
AI Benchmark Expert
Same task → many models → evidence → one shareable report.
scripts/bench.py runs every target (a provider/model behind a headless
CLI) on every task in its own isolated git workdir, executes hidden
checks there, optionally asks a blind judge to score the anonymised
output on a rubric, then writes results.json and a single-file
report.html (no CDN, no network — attach it to a PR, mail it, host it).
Methodology is modelled on public benchmarks — read
references/methodology.md before designing a
suite or interpreting close results.
Workflow
- Frame the question. What decision will the benchmark inform (pick a default coding model? a cheap subagent tier? a provider for long context)? That picks the tasks. A benchmark answers this suite, not "best model".
- Write the suite (
suite.json). Start fromexamples/quick-suite.json. Each task needs a precise prompt and at least one deterministic check; checks are what make the score honest. Put acceptance scripts outside the workdir (use$BENCH_SUITE_DIR) so models cannot read or edit them. - Pick targets. One entry per provider/model. Use
references/targets.mdfor tested command lines (permissions flags, JSON output parsers, env isolation). - Dry run — prints the exact command matrix, spends nothing:
python3 scripts/bench.py run suite.json --dry-run - Run.
python3 scripts/bench.py run suite.json -o <out> --parallel 4(add--repeat 3before trusting gaps under ~5 points;--resumeafter an interruption reuses finished runs). - Read and share. Open
<out>/report.html. Use Copy summary (Markdown table) for PRs/Slack, Copy link for a filtered view, Data forresults.json, PDF to print. Re-render after editing results:python3 scripts/report.py <out>/results.json.
bench.py summary <out>/results.json prints the leaderboard as Markdown.
Suite format (essentials)
{
"name": "…", "description": "…", "repeat": 1, "parallel": 4, "timeout": 900,
"weights": {"checks": 0.6, "judge": 0.4},
"judge": {"label": "…", "model": "…", "cmd": "claude -p --model … --output-format json --tools ''", "parse": "claude-json"},
"rubric": [ {"id": "correctness", "label": "Correctness", "weight": 25, "desc": "…"} ],
"tasks": [
{"id": "t1", "title": "…", "category": "coding", "prompt": "…", "fixture": "fixtures/t1",
"timeout": 600, "judge": true,
"checks": [{"name": "hidden tests", "cmd": "python3 \"$BENCH_SUITE_DIR/checks/t1.py\"", "timeout": 120}]}
],
"targets": [
{"id": "sonnet", "label": "Claude Sonnet 5", "provider": "anthropic", "harness": "claude code",
"model": "claude-sonnet-5", "cmd": "claude -p --model {model} --output-format json --permission-mode bypassPermissions",
"parse": "claude-json", "unset_env": ["ANTHROPIC_BASE_URL"], "env": {}, "price": {"input": 3, "output": 15},
"version_cmd": "claude --version", "timeout": 900}
]
}
- Placeholders in
cmd:{prompt}(shell-quoted text),{prompt_file},{workdir},{model}. With neither prompt placeholder the prompt goes to stdin. The command runs withcwd= the run's workdir. parse:claude-json,codex-jsonl,gemini-json,opencode-jsonortext. Parsers extract the final answer, tokens and reported cost;<think>blocks are stripped.price($/Mtok) fills cost when the CLI reports tokens but not dollars.- Check env:
BENCH_ANSWER(file with the final answer — for Q&A tasks),BENCH_WORKDIR,BENCH_SUITE_DIR. Exit code 0 = pass. rubricdefaults to the 8-dimension, 100-point rubric inreferences/methodology.md;"judge": falseon a task skips judging (pure answer-checking tasks).
Scoring (what the report shows)
Run score = checks × pass-rate + judge × judge score (weights normalised;
a missing part drops out; timeout = 0). Model score = mean of its runs;
with repeat > 1, ± is the sd of per-repeat means. Tiers: A ≥ 80,
B ≥ 60, C ≥ 40, D < 40. Cost and tokens are reported, never folded into the
quality score — the Pareto chart shows the trade-off instead.
Subagents inside a harness
Every target already is a subagent: a headless CLI session with its own
context and tools. To benchmark Claude Code's own workers, point targets at
claude -p --model …, Codex at codex exec, MiniMax lanes at mm-run --tier … -- {prompt} or opencode run -m minimax/…. The ai-benchmark-runner agent
wraps the whole loop (suite → dry run → run → summary) for delegation.
Guardrails
- Isolation: each run gets a fresh
git initworkdir under--out(default: system temp dir, outside any repo). Agents run with permissive flags there — never point--outat a real project. - Fairness: same prompt, same fixture, same timeout for everyone; record CLI versions (`v
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- README.md
- agents/ai-benchmark-runner.md
- assets/report-template.html
- examples/checks/check_duration.py
- examples/checks/check_slugify.py
- examples/evidence/README.md
- examples/evidence/report-overview.png
- examples/evidence/report.html
- examples/evidence/results.json
- examples/quick-suite.json
- plugin.json
- references/methodology.md
- references/targets.md
- scripts/bench.py
- scripts/report.py
FAQ
Что делает скилл ai-benchmark-expert?
Benchmark LLMs by giving the SAME task to multiple providers and models as headless CLI subagents (Claude Code, Codex, Gemini CLI, OpenCode/MiniMax, mm-run or any command), scoring each with hidden deterministic checks plus a blind LLM judge on a weighted 8-dimension rubric, and publishing one self-contained interactive HTML report (leaderboard + tiers, quality-vs-cost Pareto, efficiency, rubric heatmap, sortable table, per-run evidence, methodology). Use when the user asks to benchmark, compare, rank or evaluate models/providers/subagents on a task, "which model is best for X", "run the same prompt on several models", "LLM leaderboard", "eval report", or wants a shareable benchmark HTML.
Как установить скилл ai-benchmark-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ai-benchmark-expert запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…