vitest-evals

von sentry

Verwenden beim Erstellen, Überprüfen oder Debuggen von harness-gestützten vitest-evals-Suiten, benutzerdefinierten Harness-Adaptern, First-Party-ai-sdk- oder pi-ai-Harness-Integrationen,…

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.
  • Keep judge model calls on judges. Use createJudge("Name", assess) for custom judges; use the provider-helper overload only when multiple judges reuse setup and need curried run options.
  • 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

Mehr Skills von sentry

generate-frontend-forms
sentry
Leitfaden zur Erstellung von Formularen mit Sentrys neuem Formularsystem. Verwenden Sie dies bei der Implementierung von Formularen, Formularfeldern, Validierung oder Auto-Save-Funktionalität.
official
sentry-snapshots-cocoa
sentry
Vollständige Sentry-Snapshots-Einrichtung für Apple/Cocoa-Projekte. Verwenden, wenn aufgefordert, "SnapshotPreviews einzurichten", "Apple-Snapshot-Tests einzurichten", "Apple-Snapshots hochzuladen nach…
official
architecture-review
sentry
Codebase-Gesundheitsprüfung auf Mitarbeiterebene. Erkennt monolithische Module, stille Fehler, Typsicherheitslücken, Testabdeckungslücken und LLM-Freundlichkeitsprobleme.
official
linear-type-labeler
sentry
Klassifiziert Linear-Issues und weist ein Typ-Label aus der Label-Taxonomie des Sentry-Workspace zu, basierend auf dem Inhalt des Titels und der Beschreibung jedes Issues.
official
sentry-flutter-sdk
sentry
Vollständige Sentry SDK-Einrichtung für Flutter und Dart. Verwenden, wenn aufgefordert wird, "Sentry zu Flutter hinzuzufügen", "sentry_flutter zu installieren", "Sentry in Dart einzurichten" oder Fehlerkonfiguration…
official
sentry-svelte-sdk
sentry
Vollständige Sentry-SDK-Einrichtung für Svelte und SvelteKit. Verwenden, wenn aufgefordert wird, "Sentry zu Svelte hinzuzufügen", "Sentry zu SvelteKit hinzuzufügen", "@sentry/sveltekit zu installieren" oder zu konfigurieren…
official
vercel-react-best-practices
sentry
Richtlinien zur Leistungsoptimierung von React und Next.js von Vercel Engineering. Diese Fähigkeit sollte beim Schreiben, Überprüfen oder Refaktorisieren von React/Next.js…
official
sentry-tanstack-start-sdk
sentry
Vollständige Sentry SDK-Einrichtung für TanStack Start React. Verwenden, wenn aufgefordert wird, "Sentry zu TanStack Start hinzuzufügen", "@sentry/tanstackstart-react zu installieren" oder Fehlerkonfiguration…
official