creating-replay-vision-scanners
できること
このスキルは、AIのプロンプトで将来のセッション録画を自動的にレビューするスキャナーを作成します。録画を継続的にチェックしたいが、そのコストを抑える必要があるチーム向けです。
使う場面
- ✓一致する新しい録画をすべてAIでチェックしたいとき。
- ✓モニター、分類器、スコアラー、要約器などのスキャナーの種類を選びたいとき。
- ✓有効にする前に、スキャナーが使うクレジットを見積もりたいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/replay_vision/skills/creating-replay-vision-scanners/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“チェックアウトボタンが反応しない録画にフラグを立てるスキャナーを作成し、先にそのコストを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキャナーの種類と録画のフィルターを選ぶ手助けをし、残りの予算に照らしてクレジットの消費量を見積もります。スキャナーはスケジュールで動くため、範囲が広いと予算がすぐに減ります。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Creating Replay Vision scanners
A scanner is a standing LLM probe over session recordings. Once created and enabled, it runs on a
Temporal schedule that sweeps every 5 minutes, applying its prompt to each new matching recording and
recording the result as an observation (a queryable $recording_observed event). Each observation spends
credits (1 credit = $0.01) from the org's budget for the current billing period, and an observation's
price depends on the scanner's model — so size spend in credits, and convert any observation count a user gives you into credits at that model's price.
That schedule is exactly why creation needs a gut-check: a scanner with a permissive query and full sampling starts spending automatically and can drain the whole period's budget within its first few sweeps. Creation itself does not check quota — that protection only kicks in at observation time, by which point the budget may already be gone.
First: is a scanner even the right thing?
A scanner is a standing watch over future recordings. If the user has specific sessions in front of them
and a question about those sessions, they don't want a scanner at all — they want vision-scanners-inline-scan,
which takes session_ids plus a prompt, saves nothing, and schedules nothing.
Use an inline scan when the sessions are already known: "what went wrong in these five recordings", "did any of yesterday's checkout sessions hit the coupon bug", anything you'd otherwise answer by creating a scanner and deleting it afterwards. It costs the same credits per session and reuses answers when the same question is asked twice, so re-asking is cheap.
Create a scanner only when the user wants recordings that haven't happened yet to be scanned automatically. If you find yourself planning to create a scanner, read its results once, and delete it, stop and run an inline scan instead — a throwaway scanner leaves a scheduled sweep running against every future recording that matches its query.
Core principle: size before you ship
Never create an enabled scanner blind. Estimate its monthly credit spend, check the remaining credit budget, and — when the projected spend is a meaningful fraction of what's left — show the user the numbers and get confirmation before creating. This is the heart of the skill; the rest is supporting detail.
The flow
Step 1: What should the scanner do?
If the question, type, or prompt is still vague, run [[designing-replay-vision-scanners]] first. It turns a wish into one visible question with a fixed answer shape, a proof rule, and permission to say inconclusive. Come back here once those are settled.
Pick a scanner_type and write its scanner_config. Every type needs a prompt; the rest is type-specific:
| Type | What it produces | scanner_config shape |
|---|---|---|
monitor |
Open-ended observation against a prompt (e.g. "flag rage clicks") | {"prompt": "..."}; optional "allow_inconclusive": true (off by default, so the model must answer yes or no) |
classifier |
Assigns tags from a fixed label set | {"prompt": "...", "tags": ["tag-a", "tag-b"]} — tags needs ≥1 entry; optional "multi_label": false (defaults to true), "allow_freeform_tags": true (off by default) |
scorer |
Numeric score on a rubric | {"prompt": "...", "scale": {"min": 1, "max": 5, "label": "frustration"}} — min < max; label optional |
summarizer |
Free-text summary | {"prompt": "..."}; optional "length": "short" | "medium" | "long" (default "medium"). Embeddings are always on |
scanner_type is locked after creation — to change it you delete and recreate, so confirm the type is
right up front, and get the scanner_config sh
よくある質問
既にあるセッションにもスキャナーを使うべきですか?
いいえ。既存のセッションには、一度だけのスキャンの方が適しています。保存もスケジュールもされないためです。
スキャナーはどのくらいの頻度で動きますか?
作成して有効にすると、新しい録画を約5分ごとに確認します。
クレジットとは何ですか?
1クレジットは1セントです。各スキャンされた録画は、使うモデルに応じてクレジットを消費します。
詳細
作者による元の説明
Guides agents through creating and safely sizing a Replay Vision scanner: choosing the scanner type (monitor/classifier/scorer/summarizer), shaping the RecordingsQuery that selects sessions, and — crucially — estimating the credits it will spend and checking the org's remaining budget before creating, so a broad scanner doesn't exhaust the budget on its first scheduled sweep. TRIGGER when: user asks to create, set up, or configure a Replay Vision scanner, OR when you are about to call vision-scanners-create, OR when widening an existing scanner's query, sampling_rate, or sampling_mode (or movi
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6910
- ライセンス
- —
- 更新日
- 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のどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。