vitest-evals

作成者: sentry

ハーネスバックのvitest-evalsスイート、カスタムハーネスアダプター、ファーストパーティの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

sentryのその他のスキル

add-ai-integration
sentry
Sentry JavaScript SDKに新しいAIプロバイダー統合を追加します。新しいAIインストルメンテーション(OpenAI、Anthropic、Vercel AI、LangChainなど)を貢献する際に使用します…
add-cdn-bundle
sentry
指定された機能を持つブラウザパッケージ用の新しいCDNバンドルを作成します
agent-prompt
sentry
効果的なエージェントプロンプトとスキルを作成するためのリファレンスガイド。新しいスキルの作成、プロンプト品質のレビュー、またはWardenのプロンプトの理解に使用します。
agents-md
sentry
このスキルは、ユーザーが「AGENTS.mdを作成して」「AGENTS.mdを更新して」「エージェントドキュメントを管理して」「CLAUDE.mdを設定して」と依頼した場合や、エージェント…を維持する必要がある場合に使用します。
agents-md
sentry
60行未満の最小限で高シグナルなエージェントドキュメントを作成・維持します。研究に基づくエージェント向けドキュメントのベストプラクティスを適用し、長くなると指示の品質が低下します。パッケージマネージャー、ファイルスコープのコマンド(ファイルごとのテスト・リンター・型チェック)、エージェントIDによるコミット帰属の3つのコアセクションが必要です。プロジェクト構造(ロックファイル、リンター設定、CIコマンド、モノレポ指標)を分析してファイルに含める内容を決定します。ヘッダーと箇条書きのみを使用し、参照...
agents-md
sentry
このスキルは、ユーザーが「AGENTS.mdを作成」「AGENTS.mdを更新」「エージェントドキュメントを管理」「CLAUDE.mdを設定」と依頼した場合や、エージェント…
ai-sdk
sentry
ai-sdk — getsentry/webvitals.com が公開する、AIエージェント用のインストール可能なスキル。
analytics
sentry
SentryのフロントエンドUIでアナリティクスイベントを計測・発見します。ボタン、ページ、モーダル、カスタムインタラクションにトラッキングを追加する際や、新しい定義を行う際に使用します。