vitest-evals

от sentry

Используется при написании, рецензировании или отладке наборов vitest-evals с поддержкой Harness, пользовательских адаптеров Harness, интеграций с Harness для ai-sdk или pi-ai первого уровня,…

npx skills add https://github.com/getsentry/vitest-evals --skill vitest-evals

vitest-evals

Use the harness-backed API as the only authoring model.

First Steps

  1. Read the package, app, or eval file being changed.
  2. Identify the runtime target, then open only the needed reference.
  3. Keep suites close to Vitest: one harness per describeEval(...), explicit run(...) inside each test, ordinary expect(...) assertions over the returned result.

Reference Router

NeedOpen
Write or review a normal eval suitereferences/suite-authoring.md
Build a custom app Harness without a first-party adapterreferences/custom-harness.md
Integrate AI SDK generateText, generateObject, tools, or an AI SDK-style agentreferences/harness-ai-sdk.md
Integrate a Pi AI or Pi Mono-style agentreferences/harness-pi-ai.md
Add custom judges, suite judges, built-in judges, or toSatisfyJudge(...) assertionsreferences/judges-and-assertions.md
Assert on message, tool-call, or span historyreferences/utilities.md
Configure tool recording or replayreferences/tool-replay.md
Diagnose failures, missing traces, odd output, or choose verification commandsreferences/troubleshooting.md

Runtime Defaults

  • Import describeEval(...), judges, and helpers from vitest-evals.
  • Bind exactly one harness to a suite.
  • Call run(input) where the test should execute the system.
  • Assert on result.output for app-facing behavior.
  • Use toolCalls(result) and message helpers for normalized session assertions.
  • Use spans(result), spansByKind(result, kind), and failedSpans(result) for span assertions.
  • Keep HarnessRun, NormalizedSession, usage, artifacts, and tool records JSON-serializable.
  • Report known tokens and USD cost in run.usage. Omit costUsd when unknown; use 0 only when the run is known to be free.
  • Keep rubric text and parsing in the judge. Put provider calls in a judgeHarness, then call them through ctx.runJudge(...) so usage is recorded.
  • Put scenario-owned criteria on the input value. Put direct-check expected values in Vitest case rows. Pass per-case judge criteria through explicit matcher options, and suite-wide criteria through judge config.
  • Custom judges should use createJudge(...) for stable reporter labels.

Verification

Prefer the smallest command that covers the edited files:

TaskCommand
Lint filepnpm exec biome lint path/to/file.ts
Format filepnpm exec biome format --write path/to/file.ts
Test filepnpm exec vitest run path/to/file.test.ts -c vitest.config.ts
Eval filepnpm exec vitest run path/to/file.eval.ts -c vitest.config.ts --reporter=./packages/vitest-evals/src/reporter.ts
Type surfacepnpm typecheck
Package buildpnpm build

Больше skills от sentry

architecture-review
sentry
Проверка состояния кодовой базы на уровне штатных разработчиков. Выявляет монолитные модули, скрытые сбои, пробелы в типовой безопасности, недостатки тестового покрытия и проблемы с совместимостью с LLM.
pi-agent-integration
sentry
Integrate `@mariozechner/pi-agent-core` as the agent abstraction inside another library or runtime. Use when implementing or refactoring Pi Agent wrappers,…
sentry-debug-issue
sentry
Отладить и исправить проблему Sentry — найти её (по ссылке, ID или поиску), получить полный контекст (stack trace, breadcrumbs, trace, logs), при необходимости запустить Seer root-cause /…
sentry-svelte-sdk
sentry
Полная настройка Sentry SDK для Svelte и SvelteKit. Используйте, когда вас просят «добавить Sentry в Svelte», «добавить Sentry в SvelteKit», «установить @sentry/sveltekit» или настроить…
sentry-svelte-sdk
sentry
Полная настройка Sentry SDK для Svelte и SvelteKit. Используйте, когда вас просят «добавить Sentry в Svelte», «добавить Sentry в SvelteKit», «установить @sentry/sveltekit» или настроить…
skill-scanner
sentry
Сканировать навыки агента на наличие проблем безопасности. Используйте, когда вас просят «просканировать навык».
prompt-optimizer
sentry
Создаёт, оптимизирует и итеративно улучшает промпты агентов, системные промпты, промпты разработчиков и многоразовые шаблоны промптов. Используйте, когда требуется улучшить...
commit
sentry
commit — устанавливаемый навык для AI-агентов, опубликованный getsentry/sentry-docs.