scanning-experiments-with-replay-vision
Qué hace
Esta skill configura un escáner automático que revisa las grabaciones de sesión de un experimento y compara sus variantes. Está pensada para equipos que quieren ver qué hacen realmente los usuarios en cada variante.
Cuándo usarla
- ✓Cuando quieres una revisión automática de las grabaciones de un experimento en marcha.
- ✓Cuando quieres comparar lo que hacen los usuarios en cada variante sin ver cada grabación.
- ✓Cuando quieres probar el prompt de un escáner con unas pocas sesiones reales antes de activarlo.
Link de la skill
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Revisa las grabaciones de mi experimento de incorporación y dime qué es diferente en cada variante.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Crea un escáner ligado a los usuarios expuestos del experimento, toma muestras de cada variante por igual y se detiene cuando termina el experimento. El escáner se crea desactivado para que puedas revisar su prompt primero.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Scanning experiments with Replay Vision
The job: "I'm running an experiment. Watch the recordings and tell me what's actually happening in each variant."
A Replay Vision scanner is a standing LLM probe over session recordings (see [[creating-replay-vision-scanners]] for the general mechanics). The experiment scanner type is built for this job, so use it rather than scoping another type to an experiment:
- The population is the experiment's exposed people, derived server-side from the experiment instead of a hand-built filter.
- Each session's variant comes from the exposure data, never from the model. The model is told what the experiment changes, but not the session's variant, so it describes what the recording shows.
- Variants are sampled evenly, so a 90/10 rollout still gives the small variant enough observations to compare.
- Scanning stops when the experiment ends, and pauses while it is paused.
- Results split by variant with no join:
vision-scanners-variants-listand the observationsvariantfilter.
This skill covers what is experiment-specific; the generic create and size mechanics stay in the parent skill.
The flow: resolve the experiment → write the config → size it → create disabled → preview the prompt on a few real sessions → let the user enable it → read the results per variant.
Step 1: Resolve the experiment
experiment-get returns everything needed: the linked feature_flag (its filters.multivariate.variants list is the source of truth for variant keys; parameters.feature_flag_variants can be stale), exposure_criteria, start_date, end_date, and status. If the user didn't identify the experiment, resolve it via [[finding-experiments]] rather than guessing.
Guards before doing anything else:
- Draft (no
start_date): there are no exposures and nothing to scan. The API refuses an experiment scanner for an experiment that hasn't launched. Say so and stop. - Ended: a new scanner sweeps only from creation onward, and it stops at the end date, so it scans nothing new. Cover the run with a backfill (see Limits).
- Running or exposure-frozen: proceed. A frozen experiment stops enrolling, but already-exposed users keep producing sessions, so scanning stays useful.
- Already half over: the scanner watches only the remaining run unless you backfill. Say so, so a per-variant readout isn't mistaken for full-run coverage.
Step 2: Write the config
The experiment lives in scanner_config, next to the prompt:
{
"prompt": "Focus on how the user moves through checkout after the payment step first appears: where they hesitate, retry, or leave.",
"experiment_id": 123,
"variants": null,
"balance_variants": true
}
experiment_id: the experiment from Step 1. It is fixed once the scanner exists; watching a different experiment means a new scanner.variants: the variant keys to watch, ornullfor every variant. Default tonull, one scanner for the whole experiment. A comparison needs every variant, and one scanner keeps one prompt version across them (see Limits on version skew). Narrow it only when the user asks to watch some variants.balance_variants(defaulttrue): one sampling rate per variant, so each gets roughly equal coverage for the same spend. Leave it on for comparisons.length(optional):short,medium(the default) orlong, as for a summarizer.
The API owns the exposure filter and its access control. It resolves the same exposed-person population the experiment's Recordings tab shows. The filter is person-scoped, so it covers people whose exposure fired server-side or in an earlier session. Don't build event or property filters for exposure; the API rejects an experiment_exposure set directly inside query, and it checks access to the experiment, so a scanner can only reach an experiment its editor can view.
Keep query for non-exposure filters only. Set filter_test_accounts to exposure_criteria.filterTestAccounts ?? true, the same rule every experiment surface uses. When the experiment omits the setting, use true. Keep an explicit false, because that is an intentional opt-out. A minimal query is enough:
{ "kind": "RecordingsQuery", "filter_test_accounts": true }
Add other recording filters (duration, console errors, a specific page) only when the user asks. No date_from/date_to: the scanner strips them on save, because its 5-minute swe
Preguntas frecuentes
¿Decide el escáner en qué variante está cada sesión?
No. La variante procede de los datos de exposición, así que el modelo describe solo lo que muestra la grabación.
¿Por qué se toman muestras iguales de cada variante?
Para que una variante pequeña siga teniendo suficientes sesiones para compararla con una más grande.
¿Consume créditos?
Sí. La skill calcula el gasto de créditos según los usuarios propios del experimento antes de que actives el escáner.
Detalles
Descripción original del autor
Provisions a Replay Vision `experiment` scanner, which watches one experiment's exposed sessions, records each session's variant, samples the variants evenly, and stops when the experiment ends. Covers status guards, a prompt that stays comparable across variants, sizing credit spend against the experiment's own population, creating it disabled so its prompt can be previewed on real sessions, and reading the results per variant. TRIGGER when: user wants Replay Vision to watch an experiment, asks to scan or analyze an experiment's recordings with AI, asks \"what are users actually doing in the
repo: PostHog/posthog
Popularidad
- Estrellas en GitHub
- 41 mil
- Posición en el ranking
- #6882
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
depot-ci
41 milAyuda a tu agente a configurar y ejecutar flujos de Depot CI, una alternativa a GitHub Actions, y a leer los registros de ejecución.
depot-container-builds
41 milAyuda a tu agente a crear imágenes de Docker en los constructores remotos de Depot, incluidas las multiplataforma, y a corregir fallos.
depot-github-runners
41 milAyuda a tu agente a pasar los trabajos de GitHub Actions a runners gestionados por Depot, elegir su tamaño y etiquetas y resolver problemas de configuración.
editing-agents-md
41 milAyuda a tu agente a decidir si una regla debe ir en un archivo AGENTS.md o CLAUDE.md, y a escribirla para que se cumpla sin sobrecargar el archivo.
Skills parecidas
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
slacrawl
394 milPermite que tu agente busque y cuente mensajes en un archivo local de Slack, revise qué tan reciente es y lo actualice cuando haga falta.
goplaces
394 milAyuda a tu agente a buscar lugares, obtener sus detalles y reseñas, y resolver nombres de lugares usando Google Places, con salida JSON para scripts.