creating-online-evaluations
できること
このスキルは、新しいAIの応答や会話全体を自動的に採点する継続的な評価を作成します。すべての返信を読まずに、AI機能の特定の問題を検出したいチーム向けです。
使う場面
- ✓本番で既に見た問題を検出する自動チェックがほしいとき。
- ✓AIの応答がルールを満たしているかを、時間とともに確認し続けたいとき。
- ✓失敗のパターンのリストがあり、それぞれを監視対象のチェックにしたいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/creating-online-evaluations/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ユーザーの質問を無視しているAIの返信にフラグを立てる自動チェックを設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
まずAIが、実際のデータの失敗に基づいた短いチェックの候補を提案し、あなたが選ぶのを待ちます。その後、選ばれた各評価を、対応する応答に絞って作成します。停止するまで、新しい応答は採点され続けます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Creating online evaluations
An online evaluation automatically scores either each matching $ai_generation or the whole trace
containing it, until disabled. A good eval comes from a real failure mode you've found in production traffic,
not from a guess or a generic metric like "hallucination" or "helpfulness". This skill starts once those
failure modes are identified and turns them into scoped, continuously-running evals.
One eval per failure mode, and as many evals as the data justifies. How many to create is a judgment call you make from what the traces actually showed — sometimes one, often three or four. Never assume the answer is one, and never bundle unrelated modes into one evaluator. The exception is a set of modes that are outcomes of the same check, such as the reasons a reply missed the user's request: one categorical eval with a category per mode fits that (2.1).
Propose before you create. Bring the user a short list of candidate evals and let them pick which ones they want (Phase 1.1). Creating evals they didn't ask for costs them money and noise.
First, know what you're evaluating. Finding and ranking the failure modes worth catching is a
separate job. If the user doesn't specify what they want to evaluate, ask them. If they are still vague
about it and don't refer to a specific failure mode, run exploring-ai-failures to scope a use case,
find failing traces, and produce a ranked list of failure modes.
For the mechanics of writing and iterating an evaluator (Hog source vs LLM-judge prompt, dry-running,
debugging a live eval), defer to exploring-llm-evaluations.
Tools
| Tool | Purpose |
|---|---|
posthog:llma-evaluation-config-get |
Check the active provider key used by unpinned judges |
posthog:llma-provider-key-list |
Find a usable (ok state) provider key to pin |
posthog:llma-evaluation-judge-models |
List valid provider+model combos |
posthog:llma-evaluation-directory-list |
List directories available for organizing the evaluation |
posthog:llma-evaluation-directory-create |
Create a directory when the user asks for a new one |
posthog:llma-evaluation-test-hog |
Dry-run Hog source against recent generations before creating |
posthog:llma-evaluation-create |
Create the evaluation (always enabled: false first) |
posthog:llma-evaluation-run |
Spot-run a draft eval against one generation |
posthog:llma-evaluation-update |
Iterate config, then flip enabled: true |
posthog:llma-evaluation-backfill-estimate |
Count what a backfill over past data would evaluate |
posthog:llma-evaluation-backfill-create |
Evaluate past data, only after the user confirms the estimate |
posthog:llma-evaluation-backfill-get |
Track a backfill's progress and coverage |
posthog:llma-evaluation-backfill-list |
Find an evaluation's backfills, including one already running |
posthog:llma-evaluation-backfill-cancel |
Stop a running backfill when the user asks |
posthog:execute-sql |
Verify a condition matches the events and volume you expect |
posthog:generate-app-url |
Build a region- and project-qualified deep link to the eval |
The full create payload (every field, the config schemas, the exact conditions shape) is in
references/evaluation-payload.md.
Phase 1 — Decide what to propose, then let the user choose
Start from real, observed failures, not metrics you picked in advance. If you don't already have them,
run exploring-ai-failures to scope a use case, find failing traces, and produce a ranked list of failure
modes — then come back.
1.1 — Turn the failure modes into a candidate set
Let the data decide how many. One failure mode is one eval, so a ranked list of four distinct modes is a candidate set of four evals. Don't collapse them into one evaluator that tries to catch everything, and don't stop at the top mode when the traces clearly showed more worth watching. Keep a candidate when:
- **It
よくある質問
頼んでいないチェックを作りますか?
いいえ。まず短いリストを提案し、あなたが選んだものだけを作成します。
なぜハルシネーションのような一般的なチェックを使わないのですか?
一般的な指標は、あなたの製品に合わないことがあるため、自分のトラフィックで見つかった失敗に基づくチェックを優先します。
これらのチェックには費用がかかりますか?
AIを判定役にするチェックは、実行のたびにモデル呼び出しが発生します。コードで判定するチェックは発生しません。
詳細
作者による元の説明
Author continuously-running online evaluations in PostHog AI observability, grounded in real failure modes you've identified. Use when the user wants evaluations that automatically score new generations or whole traces going forward — "create an eval to catch X", "continuously check that responses do Y", "turn these failures into evals". Covers letting the explored data decide how many evals to create, proposing that set for the user to pick, choosing the target and eval type (hog / llm_judge / sentiment), configuring a provider and model for an llm_judge eval (a provider key gates enabling, n
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6828
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
depot-ci
41kエージェントが、GitHub Actionsの代替であるDepot CIのワークフローを設定し実行できるよう支援します。既存のワークフローの移行や、実行ログの確認も含みます。
depot-container-builds
41kエージェントが、Depotのリモート・ビルダーでDockerイメージを作れるよう支援します。マルチプラットフォームのイメージ、レジストリへのプッシュ、ビルド失敗の修正を含みます。
depot-github-runners
41kエージェントが、GitHub Actionsのジョブを Depot が管理するランナーに移し、ランナーのサイズとラベルを選び、ランナー設定の問題を解決できるよう支援します。
editing-agents-md
41kエージェントが、AGENTS.mdとCLAUDE.mdのどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。