designing-replay-vision-scanners
What it does
This skill helps you write a good question for an AI scanner over session recordings, so its answers can be trusted. It is for people who want reliable findings instead of vague guesses.
When to use it
- ✓When you want an AI scanner to answer a specific question about recordings.
- ✓When a scanner's results seem vague, guessed or unreliable.
- ✓When you want to test a scanner's prompt on a small set of recordings first.
Skill link
https://github.com/PostHog/posthog/blob/master/products/replay_vision/skills/designing-replay-vision-scanners/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Help me design a scanner that tells me whether users actually saw the error message on the payment page.”
5 new skills a week. 1 minute to read.
How it works
It checks that the question can be answered from one recording, picks the answer type, narrows the recordings to ones that can answer it, and asks the scanner to show proof on screen. Then it tests the first batch.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Why must the question fit one recording?
A scanner sees one recording at a time and cannot compare sessions, so trends belong in product analytics.
Can a scanner say it does not know?
Yes. The prompt allows a no or inconclusive answer, so the scanner does not have to guess.
Does this skill create the scanner?
The design comes first. Sizing and creating the scanner are handled by a separate skill.
Details
Original description by the author
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
Popularity
- GitHub stars
- 41k
- Ranking position
- #6911
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.