Command Palette

Search for a command to run...

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

llm-eval-harness

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

Tests/benchmarks a third-party LLM endpoint (OpenAI- or Anthropic-compatible): availability, fidelity, speed, concurrency, protocol compliance, quality…

daymadeот daymade★ 1 556 звёзд на GitHub

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

LLM Eval Harness

Overview

Give this skill an endpoint (base_url + model + an API key in an env var) and it measures whether the endpoint actually works and whether the model is fast, stable, protocol-correct, and good enough — instead of trusting the vendor's headline numbers. Choose from the following evaluation dimensions:

Dimension Script Answers
Availability scripts/availability_probe.py which model IDs work here, with explicit error classification
Request fidelity scripts/fidelity_probe.py do system prompt / tools / history actually REACH the model?
Speed scripts/speed_probe.py TTFT + sustained decode tok/s, thinking-aware
Concurrency / stability scripts/concurrency_probe.py success rate, p50/p90 latency, where it breaks
Protocol compliance scripts/protocol_probe.py Anthropic thinking generation and history replay, or paired JSON/SSE tool arguments with a union schema (see Dimension 3)
Quality / use-case regression scripts/usecase_runner.py + blind judges does it pass your accumulated cases?

Which dimensions to run

Route from what the user is actually doing:

  • "接入新模型/新网关先测一下" / onboarding a provider → Availability → Fidelity, then speed/concurrency if adoption looks likely
  • "这个 ID 能不能用 / 写个支持列表" → Availability (and read disciplines §9 before writing any "unavailable" verdict)
  • "模型不听 system prompt / agent 行为怪但没报错" → Fidelity (system canary)
  • "快不快 / tok/s 是真的吗" → Speed; "扛不扛得住" → Concurrency
  • "这个兼容端点是真兼容吗" → Protocol + Fidelity's tools/auth checks
  • "这个模型/渠道用着用着就 400 了 / session 断了 / continue 不下去了" (extended-thinking client, multi-turn session) → Protocol --check history-replay specifically — this symptom is the generation check passing while history-replay silently doesn't; don't stop at generation
  • "换模型质量会不会掉" → Quality regression
  • "要给厂商报 bug" → run the relevant probe with --output, then follow references/vendor_evidence_protocol.md
  • "部署闸门 / 常驻监控 / 告警老误报" → references/production_testing_patterns.md

Run only the dimensions that answer the user's question.

Key handling (non-negotiable): every script takes the API key by env-var name (--key-env MY_KEY), never the key value on the command line — so it stays out of ps, shell history, and any saved report. Never hardcode a key into a use-case file or a wrapper. Read references/evaluation_disciplines.md for the full reasoning behind this and the other disciplines.

Your private data lives outside this bundle. Use-case libraries, model rosters, and keys belong in ~/.llm-eval/ (or wherever you keep secrets), NOT in this skill directory — the skill is generic and public; your test suite is yours. See "Use-case library" below.

Machine launchers and interrupted runs: use the paired --result-json / --run-id interface and the bundled scripts/eval_result.py reader to distinguish completed, noncompliant, partial, unmeasured, failed and cancelled runs. Read machine results before integrating a launcher; that reference owns receipt freshness, typed evidence, exit codes, auth forwarding and the offline regression command. Keep legacy --output and quality answer artifacts.

Quick start

Detect what you have, then run the dimensions that apply. For an OpenAI-compatible model:

export MY_KEY=sk-...                       # the key never appears in a command below

# Speed: real-task throughput + sustained decode ceiling
uv run --with openai python scripts/speed_probe.py \
  --base-url https://api.example.com/v1 --model some-model --key-env MY_KEY --mode both

# Concurrency: ramp until it breaks
uv run --with aiohttp python scripts/concurrency_probe.py \
  --url https://api.example.com/v1/chat/completions --model some-model --key-env MY_KEY \
  --format openai --concurrency 10 20 40 60

If the endpoint is Anthropic-Messages-shaped (/v1/messages), also run the protocol probe (below). Select the dimensions for the task.

Pass --auth bearer to Anthropic protocol/concurrency probes when the route requires Authorization instead of x-api-key. The default remains x-api-key and applies to both protocol generation and history replay. OpenAI concurrency keeps Bearer authentication.

Dimension 0 — Availability (which model IDs actually work)

uv run --with aiohttp python scripts/availability_probe.py \
  --base-url <base> --key-env <ENV> --format both \
  --models model-a vendor/model-b @models.txt --output /tmp/avail.json
  • Read transport, response outcome and native terminal fields separately. The probe reports response_outcome as answered, refused, empty or unknown; transport_ok means HTTP response headers arrived, not that a usable an
Полный SKILL.md на GitHub

Установить llm-eval-harness в Claude Code и Claude Desktop

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

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

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

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

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

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

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

assets/example_usecases.jsonreferences/evaluation_disciplines.mdreferences/machine-results.mdreferences/production_testing_patterns.mdreferences/quality_blind_judge.mdreferences/vendor_evidence_protocol.mdscripts/availability_probe.pyscripts/concurrency_probe.pyscripts/eval_result.pyscripts/fidelity_probe.pyscripts/protocol_probe.pyscripts/speed_probe.pyscripts/usecase_runner.py

FAQ

Что делает скилл llm-eval-harness?

Tests/benchmarks a third-party LLM endpoint (OpenAI- or Anthropic-compatible): availability, fidelity, speed, concurrency, protocol compliance, quality regression. Use before hand-rolling a curl loop, when onboarding a provider, or debugging "system prompt 不生效" / a tok/s claim — 测评/压测一个模型或渠道. Not for TTS/voice-clone supplier eval (use the audio skill).

Как установить скилл llm-eval-harness?

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

Скилл llm-eval-harness запускает скрипты?

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

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

Сравнить llm-eval-harness с