designing-replay-vision-scanners
它能做什么
本技能帮助你为 AI 扫描器撰写一个好的会话录制问题,使其答案值得信赖。适合希望获得可靠发现、而非模糊猜测的人。
适用场景
- ✓当你想让 AI 扫描器回答关于录制的一个具体问题时。
- ✓当扫描器的结果看起来含糊、靠猜测或不可靠的时候。
- ✓当你想先在一小批录制上测试扫描器的提示词时。
技能链接
https://github.com/PostHog/posthog/blob/master/products/replay_vision/skills/designing-replay-vision-scanners/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我设计一个扫描器,告诉我用户在支付页面上是否真的看到了错误信息。”
每周 5 个新技能,1 分钟读完。
工作原理
它会检查该问题能否仅通过一段录制回答,选择答案类型,将录制范围缩小到能够回答该问题的录制,并要求扫描器在屏幕上展示证据。然后,它会测试第一批录制。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Designing Replay Vision scanners
A scanner is one prompt applied to one recording at a time. It watches the recording and writes an observation. Replay Vision fixes the watching part. It does not fix the thinking part. The thinking is the design work this skill covers.
Every scanner that produces useful observations shares three properties:
- One focused question that only the recording can answer.
- A recording query that selects only sessions able to answer it.
- Permission to answer no or inconclusive.
Design in this order: question, type, query, prompt, model, first-batch test. Then hand off to [[creating-replay-vision-scanners]] for sizing and the create call.
Step 1: Test the question
Write the question in one sentence before you touch the API. Then run three checks.
Only the recording can answer it. If an event already answers the question, build an insight instead. A rage click event already proves the rage click. The scanner question must add something the event cannot: "did the clicked control actually fail?"
One recording answers it. A scanner sees one recording and cannot compare it with recordings it has never seen. Push every cross-session question to a scout, a digest, or product analytics. Comparisons between experiment variants, trends over time, and "how common is this" all live outside the scanner prompt.
The answer has a fixed shape. A yes or no with proof. One tag from a short list. A score on a stated scale. A summary with fixed labeled lines. If you cannot name the answer shape, you do not have a question yet.
Reject these questions and rewrite them:
- "Flag anything interesting." The model then decides what matters. That is the user's job.
- "Summarize what happened." Nobody reads a pile of plausible session summaries.
- "Compare the variants." One recording holds one variant.
- "Explain why they gave a low score." The recording shows behavior, not motive.
If the user has specific sessions in front of them and a one-off question, they do not need a scanner. Use vision-scanners-inline-scan instead.
Step 2: Pick the type from the answer shape
| Answer shape | Type | Design rule |
|---|---|---|
| Yes or no, with proof | monitor |
Set allow_inconclusive: true when many matched sessions never reach the flow in question. Yes only when the proof is on screen. |
| One label from a short list | classifier |
Keep 5 to 9 tags. Always include an escape tag. multi_label defaults to true; set it false unless one session carries several jobs. |
| A number on a rubric | scorer |
Use when the distribution matters more than any single observation. Define both ends of the scale in the prompt. |
| A fixed set of labeled lines about one recording | summarizer |
Name the lines in the prompt (for example Journey, Friction, Outcome, Evidence). Never ask for free prose. |
scanner_type is locked after creation. Get this right before the create call.
Escape tags for classifiers are not optional. A classifier must pick a tag. Without nothing-broken, never-reached, cant-tell, or inconclusive in the list, the model invents friction on sessions that contain none. Make the escape tag exclusive: the prompt must say it never combines with a defect tag.
Use allow_freeform_tags: true only when the goal is taxonomy discovery, and say so in the prompt: "invent a short snake_case tag only when the recording clearly shows a job outside this list". The tag vocabulary lives in tags, so the prompt describes the dimension and does not need to restate the list. If the prompt does define each tag, keep the two lists identical. Freeform tags hide drift between them, so re-read both together after every edit.
Step 3: Aim the query
The query decides which recordings deserve a judgment. The prompt decides what judgment to make. A better query improves quality more than another paragraph of prompt.
Build the query from the project's real data. Call read-data-schema with `{"query": {"kind
常见问题
为什么问题必须只涉及一段录制?
扫描器每次只查看一段录制,无法比较不同的会话,因此趋势分析应放在产品分析中进行。
扫描器可以表示不知道吗?
可以。提示词允许给出“否”或“无定论”的答案,因此扫描器无需去猜测。
本技能会创建扫描器吗?
本技能先完成设计。规模估算和创建扫描器由另一项技能负责。
详情
作者的原始描述
Designs a Replay Vision scanner that produces trustworthy observations: one visible question per scanner, a type chosen from the answer shape, a query that selects only sessions able to answer it, a prompt that demands on-screen proof and allows no or inconclusive, a model picked by the cost of a wrong answer, and a first-batch test pass. Sizing and the create call stay in creating-replay-vision-scanners. TRIGGER when: user wants to design, draft, or improve a Replay Vision scanner or its prompt, asks what to scan for, asks why a scanner returns vague observations, or asks an agent to propose
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6911
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。