
Creating Replay Vision Scanners
FreeEfficiently set up and manage Replay Vision scanners.
Free · Opens the source repo
What Creating Replay Vision Scanners does
This skill guides users through the process of creating and configuring Replay Vision scanners, which are essential for monitoring session recordings in real-time. Users can select the type of scanner they need—monitor, classifier, scorer, or summarizer—and define the specific query that determines which sessions the scanner will observe. The skill emphasizes the importance of estimating the observation volume and checking the organization's monthly quota to avoid exhausting the budget too quickly. This is particularly crucial since a scanner operates on a temporal schedule, running every five minutes and consuming credits based on the observations it generates.
The skill is designed for developers and data analysts who need to automate the analysis of future session recordings. By allowing users to configure scanners with specific prompts and session queries, it enables targeted insights into user behavior and application performance. The built-in checks for budget and observation estimates help ensure that users are aware of the financial implications of their configurations before they proceed with creating a scanner.
Users are encouraged to consider whether a scanner is necessary for their needs. If they are looking to analyze specific existing sessions, the skill advises using inline scans instead, which are more cost-effective for one-off analyses. The skill's structured approach to setting up scanners, including the critical gut-check for estimated costs, helps users avoid unnecessary expenses and ensures that they only create scanners when they are truly needed.
When to use it
Use this skill when you need to set up a Replay Vision scanner to monitor future session recordings automatically.
When not to use it
This skill is not suitable for one-off analyses of specific sessions; for that, use inline scans instead.
What you can build with it
Setting Up a New Scanner
You need to monitor future user sessions for specific behaviors and want to automate this process.
Budget Management
Before creating a scanner, you want to ensure that the estimated costs fit within your organization's monthly credit budget.
Choosing the Right Scanner Type
You are unsure whether to use a monitor, classifier, scorer, or summarizer and need guidance on which to select.
How to install Creating Replay Vision Scanners
View source1. Install with the skills CLI
npx skills add posthog/posthog/creating-replay-vision-scanners --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by posthogCreating 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 from a monthly org credit budget (1 credit = $0.01), and an observation's price depends on the
scanner's model — so budget in credits, not in observation counts.
That schedule is exactly why creation needs a gut-check: a scanner with a permissive query and full sampling starts consuming quota automatically and can drain the whole month'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-create,
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?
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": "..."} |
classifier | Assigns tags from a fixed label set | {"prompt": "...", "tags": ["tag-a", "tag-b"]} — tags needs ≥1 entry; optional "multi_label": true, "allow_freeform_tags": false |
scorer | Numeric score on a rubric | {"prompt": "...", "scale": {"min": 1, "max": 5, "label": "frustration"}} — min < max; label optional |
summarizer | Free-text summary plus facet embeddings for search | {"prompt": "..."}; optional "length": "short" | "medium" | "long" (default "medium") |
Summarizers always emit facet embeddings; there is no option to turn that off.
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 shape right (a wrong shape is a create error, not a silent
default — unknown keys are rejected too).
If the user's intent makes the type and prompt obvious, just proceed — don't interrogate them.
Step 2: Which sessions?
The query is a RecordingsQuery shape that selects which recordings the scanner watches. date_from and
date_to are ignored (the schedule controls time), so don't bother setting them. Narrow the query to the
sessions that actually matter — by event, URL, person property, duration, etc. A narrow query is the single
biggest lever on cost.
When the target is one experiment's exposed population, that's its own job — use the
scanning-experiments-with-replay-vision skill, which derives this query from the experiment's exposure
criteria instead of hand-building it.
sampling_rate (0..1, default 1.0) is a random downsample applied after the query matches. Lower it to
trade coverage for budget.
Step 3: Size it — the gut-check (do not skip)
Before creating, run both checks and reason about them together:
- Estimate spend — call
vision-scanners-estimate-createwith the proposedquery,sampling_rate, andmodel. It returnsmatched_sessions_in_window, thewindow_daysmeasured,estimated_observations_per_month,credits_per_observation(the price at that model), the resultingestimated_credits_per_month, andother_enabled_scanners_monthly_credits(what the org's other enabled scanners are already projected to spend). - Check budget — call
vision-quota-retrieveforremainingandexhaustedagainst the org's monthlycredit_limit(credits, 1 credit = $0.01;nullwhen uncapped).
Compare credits against credits — remaining is denominated in credits, not observations, so comparing it
against estimated_observations_per_month understates the cost by the model's per-observation price.
Then decide:
- If
estimated_credits_per_monthplusother_enabled_scanners_monthly_creditscomfortably fits withinremaining, proceed. - If it's a large fraction of (or exceeds)
remaining, stop and tell the user the concrete numbers — e.g. "This scanner is projected to spend ~X credits/month (~N observations at C credits each), on top of ~Y credits from your other scanners; you have Z left this month." — and confirm before creating, or suggest tightening thequery, loweringsampling_rate, or picking a cheapermodelfirst. - If the org is already
exhausted, say so — a new enabled scanner won't produce anything until the budget resets, and its observations will be silently skipped.
Confirmation here is a conversation step, not an API capability — surface the trade-off and let the user choose. When the projected volume is clearly small relative to the budget, you don't need to ask.
Step 4: Create
Call vision-scanners-create. Minimal example:
{
"name": "Rage click monitor",
"scanner_type": "monitor",
"scanner_config": { "prompt": "Flag sessions where the user repeatedly clicks the same element in frustration." },
"query": { "kind": "RecordingsQuery", "events": [{ "id": "$rageclick", "type": "events" }] },
"sampling_rate": 1.0,
"model": "gemini-3.6-flash",
"enabled": true
}
name must be unique within the team. Set enabled: false if the user wants to create it paused (no
schedule, no quota consumption) and turn it on later.
After creation
- Show the scanner's PostHog URL from the response so the user can review it in the UI.
- Results take a few minutes to appear (rasterizing the recording to video + the LLM call are slow). Inspect
them with
vision-scanners-observations-listfor one scanner over time, orvision-observations-list(requiressession_id) for every scanner's findings on a single session. To dig into a recording, hand off to theinvestigating-replayskill.
Updating an existing scanner
vision-scanners-update is a partial update — send only changed fields. Re-run the Step 3 gut-check
whenever you widen scope: a broader query or a higher sampling_rate raises the sweep volume just like a
fresh broad scanner would. Toggling enabled, tweaking the prompt, or narrowing the query don't need a
re-estimate. Editing config bumps scanner_version; past observations keep a snapshot of the old config.
Gotchas
- One observation per (scanner, session). Re-running a scanner on a session it already observed — even a failed or ineligible one — is a no-op and won't produce a fresh scan.
- Ineligible ≠ failed. Observations can land
ineligible(e.g.too_short,no_recording) — a terminal non-error outcome. Checkerror_reasonwhen triaging why a scanner produced nothing. - Provider/model are Google/Gemini only in the current version.
Frequently asked questions about Creating Replay Vision Scanners
Similar skills
Power BI Semantic Modeling
Optimize your Power BI data models with best practices.
Data Context Extractor
Tailor data analysis skills to your company's needs.
Power BI Performance Troubleshooting
Systematic guidance for optimizing Power BI performance.
Power BI Model Design Review
Optimize your Power BI data models with expert reviews.
Power BI DAX Formula Optimizer
Optimize your DAX formulas for better performance and clarity.
Fabric Lakehouse
Optimize your data solutions with Lakehouse best practices.
