exploring-llm-evaluations
できること
このスキルは、AIの応答を採点する自動評価を確認します。対象はルールベースのチェック、書かれたプロンプトに従うAI判定のチェック、感情分析です。チェックが失敗する理由を知りたい、または結果を理解したいチーム向けです。
使う場面
- ✓評価が何度も失敗していて、理由を知りたいとき。
- ✓応答が評価に失敗する最も多い理由を見たいとき。
- ✓評価結果の定期レポートを設定したいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/exploring-llm-evaluations/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“トーンの評価がこれほど頻繁に失敗しているのはなぜですか?失敗した応答には何が共通していますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
評価を見つけてその設定を読み、必要に応じて特定の応答でチェックを実行します。その後、保存された結果を確認し、パターンをわかりやすく示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Exploring AI observability evaluations
For stored offline experiment comparisons, scorer history, or externally computed
result uploads, use analyzing-offline-evaluations. Offline experiments use pinned
scorer configurations and separate result APIs from the online evaluations below.
PostHog evaluations score $ai_generation events. Each evaluation is one of three
types:
hog— deterministic Hog code that returns a boolean, numeric score, or categories (and optionally N/A). Best for objective rule-based checks: format validation (JSON parses, schema matches), length limits, keyword presence/absence, regex patterns, structural assertions, latency thresholds, cost guards. Cheap, fast, reproducible — no LLM call per run. Prefer this when the criterion can be expressed as code.llm_judge— an LLM scores generations against a prompt you write. Best for subjective or fuzzy checks: tone, helpfulness, hallucination detection, off-topic drift, instruction-following. Costs an LLM call per run and requires AI data processing approval at the org level.sentiment— classifies sentiment from user messages on each matching generation. Returns a sentiment label and score, not a pass/fail verdict.
Results from all types land in ClickHouse as $ai_evaluation events. Boolean
evaluations (llm_judge and hog) set $ai_evaluation_result; sentiment
evaluations set $ai_sentiment_* properties instead.
Both hog and llm_judge also support output_type: "numeric".
Numeric runs store their raw score in $ai_evaluation_numeric_result, with optional $ai_evaluation_numeric_result_min and $ai_evaluation_numeric_result_max.
They never set $ai_evaluation_result.
Use output_config.passing_rule to interpret scores: gte means at least the threshold and lte means at most.
Changing the rule reinterprets historical scores. Saved reports retain the rule and metrics used when generated.
Without a passing rule, inspect score means and distributions; pass rates and reports are unavailable.
Both runtimes also support output_type: "categorical" when categorical evaluations are enabled for the project.
Read output_config.options for the configured {key, label} pairs and selection_mode for single or multiple.
Results store keys as a list in $ai_evaluation_categorical_result; single selection requires exactly one key, while multiple selection accepts [].
Hog can also return a single key string in single mode.
Use output_config.passing_rule.categories to grade results: a nonempty result passes only when every returned key is a passing category.
A nonempty rule fails []; an empty rule passes only [] and is allowed only in multiple mode.
Without a rule, inspect category frequencies instead of pass rates; new reports are unavailable.
Rule edits reclassify historical results, while saved reports retain their rule snapshot.
This skill covers the full lifecycle: list/inspect/manage evaluation configs, run them on specific generations, query individual results, and configure evaluation reports that summarize recent runs on a schedule.
Tools
| Tool | Purpose |
|---|---|
posthog:llma-evaluation-list |
List/search evaluation configs (filter by name, enabled flag) |
posthog:llma-evaluation-get |
Get a single evaluation config by UUID |
posthog:llma-evaluation-create |
Create a new llm_judge, hog, or sentiment evaluation |
posthog:llma-evaluation-update |
Update an existing evaluation (name, prompt, enabled, …) |
posthog:llma-evaluation-delete |
Soft-delete an evaluation |
posthog:llma-evaluation-run |
Run an evaluation against a specific $ai_generation event |
posthog:llma-evaluation-test-hog |
Dry-run Hog source against recent generations (no save) |
posthog:llma-evaluation-report-list |
List the report configs attached to an evaluation |
posthog:llma-evaluation-report-create |
Schedule an AI report on an evaluation (email or Slack) |
posthog:llma-evaluation-report-run-list |
Past report runs, including the report content that was sent |
posthog:execute-sql |
よくある質問
評価の種類にはどんなものがありますか?
「はい」か「いいえ」を返すコードのチェック、書かれたプロンプトに従うAI判定のチェック、ユーザーメッセージの感情分析です。
AI判定のチェックには費用がかかりますか?
AI判定のチェックを実行するたびにモデル呼び出しが発生します。また、組織がAIによるデータ処理を承認している必要があります。
定期レポートを設定できますか?
はい。評価結果の定期レポートを設定できます。
詳細
作者による元の説明
Investigate AI observability evaluations — `hog` (deterministic code-based), `llm_judge` (LLM-prompt-based), and `sentiment` (user-message sentiment). Find existing evaluations, inspect their configuration, run them against specific generations, query individual results, and set up scheduled reports on an evaluation. Use when the user asks to debug why an evaluation is failing, surface common failure modes, compare results across filters, dry-run a Hog evaluator, prototype a new LLM-judge prompt, inspect sentiment classifications, or manage the evaluation lifecycle.
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6832
- ライセンス
- —
- 更新日
- 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ページを段階的に操作するようエージェントに教えます。