跳到正文
Skillpedia
分析与电子表格41k · #6910

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/replay_vision/skills/creating-replay-vision-scanners/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

常见问题

对于我已有的会话,扫描器是合适的工具吗?

不是。对于已有的会话,一次性扫描更合适,因为它既不保存内容,也不安排计划。

扫描器多久运行一次?

创建并启用后,扫描器大约每五分钟检查一次新录制。

什么是积分?

一个积分等于一分钱,每段被扫描的录制会根据所用模型消耗相应的积分。

详情

作者的原始描述

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能