llm-regression-suite-author
БесплатноБез исполняемых скриптовНе проверенUse for any question or task about catching LLM quality regressions, including checking a new model version or provider against the old one and prompt tweaks…
от testland★ 18 звёзд на GitHubОб этом скилле
llm-regression-suite-author
A regression suite for LLM outputs pairs a versioned golden dataset (stable
inputs + expected outputs) with deterministic eval settings and a
pass-rate gate so that promoting a model from v1 to v2 surfaces quality
drops before they reach production. The per-tool skills
(promptfoo-evaluation, deepeval-evaluation) handle tool mechanics;
this skill handles the versioning workflow that neither covers.
When to use
- A vendor announces a model update (e.g.,
gpt-4.1togpt-5) and you need a before/after quality comparison on your own inputs. - A prompt regression suite exists but has no stable dataset version tied to each model snapshot, so regressions are discovered in production.
- CI must gate a model-version bump the same way it gates a code change.
Step 1 - Structure the golden dataset
A golden dataset is a versioned file of (input, expected output) pairs. Use JSONL for line-by-line diffability or CSV for spreadsheet collaboration.
JSONL format (one object per line, per de-datasets):
{"input": "What is the return policy?", "expected_output": "30-day full refund"}
{"input": "How do I cancel?", "expected_output": "Visit account settings > Cancel"}
CSV format with promptfoo assertion columns (per pf-testcases):
input,__expected,__description
"What is the return policy?","contains: 30-day","return-policy-basic"
"Summarize the refund terms","llm-rubric: Mentions 30 days and no extra costs","refund-summary"
"Return JSON of policy","is-json","structured-output"
Per pf-testcases: __expected values follow TYPE: VALUE
syntax; values without a prefix default to equals. Multiple assertions use
numbered columns (__expected1, __expected2).
Versioning convention:
datasets/
golden-v1.0.0.jsonl # baseline: current production model
golden-v1.1.0.jsonl # new cases added for feature coverage
golden-current -> golden-v1.1.0.jsonl # symlink or CI var
Tag the dataset file together with the model snapshot it was authored against.
Treat dataset changes the same as schema changes: they need a version bump,
a changelog entry, and a corresponding CI run that captures the new baseline
scores before the dataset becomes golden-current.
Step 2 - Configure deterministic eval
Non-determinism is the primary enemy of regression suites. Set
temperature: 0 and seed at the provider level so identical inputs
produce identical outputs on re-run.
Promptfoo (per pf-openai):
# promptfooconfig-regression.yaml
providers:
- id: openai:chat:gpt-4.1 # baseline model (pinned snapshot)
config:
temperature: 0
seed: 42
- id: openai:chat:gpt-5.4-mini # candidate model
config:
temperature: 0
seed: 42
tests: file://datasets/golden-current.csv
evaluateOptions:
repeat: 1 # per [pf-ref]: "Number of times to run each test case"
cache: true # per [pf-ref]: reuses disk-cached responses for unchanged inputs
Per pf-openai: seed is "used for deterministic output" and
belongs in the provider's config block. Note that OpenAI's API makes
best-effort determinism guarantees with seed; treat repeated runs as a
sanity check, not a hard guarantee.
DeepEval (per de-start): pin the judge model version in every metric constructor to prevent the judge drifting independently of the model under test:
from deepeval.metrics import GEval
from deepeval.test_case import SingleTurnParams
correctness = GEval(
name="Correctness",
criteria="Actual output is factually correct given the expected output.",
evaluation_params=[SingleTurnParams.ACTUAL_OUTPUT, SingleTurnParams.EXPECTED_OUTPUT],
model="gpt-4.1-2025-04-14", # pinned judge snapshot
threshold=0.7,
)
Per de-start: threshold determines pass/fail; "a metric is only
successful if the evaluation score is equal to or greater than threshold."
Step 3 - Layer the assertion types
A robust regression suite combines four assertion layers. Each layer catches a different failure mode.
Layer 1: Exact / structural (deterministic)
Per pf-asserts: equals, contains, regex, is-json,
starts-with. Use when the expected output is fully pred
Установить llm-regression-suite-author в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл llm-regression-suite-author?
Use for any question or task about catching LLM quality regressions, including checking a new model version or provider against the old one and prompt tweaks that break other cases. Builds a versioned golden dataset, deterministic runs, exact, semantic, judge and rubric checks, and a pass-rate CI gate with a baseline diff across model versions.
Как установить скилл llm-regression-suite-author?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл llm-regression-suite-author запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub