creating-replay-vision-scanners
What it does
This skill creates a scanner that reviews future session recordings automatically with an AI prompt. It is for teams who want a standing check over recordings and need to keep its cost under control.
When to use it
- βWhen you want an AI check to review every new recording that matches a rule.
- βWhen you want to pick a scanner type such as monitor, classifier, scorer or summarizer.
- βWhen you want to estimate the credits a scanner will use before you turn it on.
Skill link
https://github.com/PostHog/posthog/blob/master/products/replay_vision/skills/creating-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
βCreate a scanner that flags recordings where the checkout button does not respond, and tell me its cost first.β
5 new skills a week. 1 minute to read.
How it works
It helps you choose the scanner type and the recording filter, then estimates the credits it will use against your remaining budget. A scanner runs on a schedule, so a broad one can use the budget quickly.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Is a scanner the right tool for sessions I already have?
No. For sessions you already have, a one-time scan is better, because it saves nothing and schedules nothing.
How often does a scanner run?
Once created and enabled, a scanner checks for new recordings about every five minutes.
What is a credit?
One credit is one cent, and each scanned recording spends credits based on the model it uses.
Details
Original description by the author
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
Popularity
- GitHub stars
- 41k
- Ranking position
- #6910
- 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.