maplibre-running-evals
БесплатноБез исполняемых скриптовНе проверенThe step-by-step procedure for running this repo's Promptfoo evals with a generator and a judge over provider APIs. Use when starting a new skill and needing…
от maplibre★ 167 звёзд на GitHubОб этом скилле
Running Promptfoo Evals
Every eval here runs two roles over provider APIs: a generator, the model under test, and a judge, the model that grades each llm-rubric assertion. evals/README.md covers what to test and how to write prompts and rubrics; this is the procedure for running them. Work the phases in order — do not start at phase 5 because content already exists.
1. Set up and budget the run
Budget before anything else. These providers are used on free tiers, and a run you cannot finish teaches nothing.
- Confirm a generator key and a judge key are set — presence only, never the value:
echo "generator: ${GROQ_API_KEY:+set}"andecho "judge: ${GOOGLE_API_KEY:+set}". If either is missing, stop and report; do not extrapolate a result from a run you did not make. - Both roles are pinned: the generator in
evals/prompts/lib/providers.yaml, the judge inpackage.json'seval:gradedscript. Use the pinned pair by default. The one hard requirement is that they are different models — never grade a generator with itself — and any result you report names both. - Send every recorded run through
npm run eval:graded, the only place--grader,--delay, and-jare set. Do not hand-type them, and do not copy a value out of an older results doc: that value documents that run, not this one. Do not pass--providerseither: it replaces the pinned generator with a bare one, so the run is no longer pinned and its results are mislabeled — evals/README.md, "Writing eval prompts" has the detail.--providers echois the probe case: it returns the rendered prompt in place of a generator answer, so you see exactly what the generator would be sent — but everyllm-rubricstill calls the judge, so even a probe spends judge calls. - Learn the provider's limits before launching: read its rate-limit documentation for the pinned model's tier, then make one minimal request to the endpoint with response headers shown. On an OpenAI-compatible endpoint the
x-ratelimit-*headers carry the per-minute token window (limit, remaining, reset) and the per-day request count; a daily token cap has no header of its own, so it surfaces only when a429arrives —retry-aftergives the wait, and the body names which limit tripped. Header names and what they count are provider-specific and change, so confirm them against the provider's own page.
# Example against the current generator's OpenAI-compatible endpoint; the URL and model id come from providers.yaml.
curl -s -X POST https://api.groq.com/openai/v1/chat/completions \
-H "Authorization: Bearer $GROQ_API_KEY" -H "Content-Type: application/json" \
--data '{"model":"openai/gpt-oss-120b","messages":[{"role":"user","content":"hi"}],"max_tokens":1}' \
-D - | grep -iE 'ratelimit|retry-after|"error"'
- Do the arithmetic before launching. Tokens ≈ bytes / 4, so
wc -c skills/<skill>/SKILL.mdgives the injection cost per test; each answer's cap is what the generator's per-minute token limit leaves after its prompt, so a with-skill run costs at most tests × that limit, plus one judge call per rubric, against whatever the day has left. A baseline run drops the injection. If the total does not fit the remaining budget, do not launch it whole. - Run sequentially, one config per command.
-j 1is pinned, and never run two graded evals at once — across terminals or across teammates. Limits are per account, not per process, so a429on either role kills both runs; chain them instead, leaving a full per-minute window between:<run one> && sleep 60 && <run two>. Each config already wireslib/skill-prompt.mjsandlib/providers.yaml, so there is nothing to assemble by hand; if you do write a Promptfoo command yourself, it still names exactly one--config— given several, Promptfoo merges theirdefaultTestblocks and the lastskillFilewins. --delaypaces requests; it does not create budget. A rate-limit failure that survives correct pacing with no concurrency is exhausted capacity — stop, take the reset time from the direct call above, and do not loop.- When the remaining window or day is smaller than the run, run fewer tests per invocation — never a larger delay.
--filter-pattern '<regex against the test description>'runs only the matching tests (quote it;npm runpasses it through a shell), and it is also how you probe one test of a run type before committing the whole config.--filter-failing <the run's .json output>re-runs only what failed or errored — phase 8 writes that file.
2. Write the tests before the content
- Copy [
evals/prompts/TEMPLATE.yaml](https://github.com/maplibre/maplibre-agent-skills/blob/main/evals/p
Установить maplibre-running-evals в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл maplibre-running-evals?
The step-by-step procedure for running this repo's Promptfoo evals with a generator and a judge over provider APIs. Use when starting a new skill and needing a baseline before writing content, when a run stalls or returns no data, when a provider rate-limits, or when deciding whether an edit needs a retest.
Как установить скилл maplibre-running-evals?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл maplibre-running-evals запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic