managing-experiment-lifecycle
Qué hace
Esta skill explica cada cambio de estado de un experimento, como lanzarlo, pausarlo, congelarlo o terminarlo. Está pensada para quien ejecuta pruebas A/B y necesita saber qué hará un cambio antes de hacerlo.
Cuándo usarla
- ✓Cuando estás listo para lanzar un experimento en borrador y quieres saber qué pasa después.
- ✓Cuando quieres pausar, reanudar o terminar un experimento en marcha.
- ✓Cuando necesitas impedir que nuevos usuarios entren en una prueba mientras sus métricas siguen recogiéndose.
Link de la skill
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/managing-experiment-lifecycle/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
“Pausa de momento mi experimento en marcha y dime qué pasa con los usuarios que ya están dentro.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Explica los requisitos y los efectos de cada acción, como quién ve cada variante y cómo se ve afectado el análisis.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Managing experiment lifecycle
This skill covers experiment state transitions — what each action does, when to use it, and how it affects variant assignment and analysis.
State diagram
draft ──launch──▶ running ──end──▶ stopped ──archive──▶ archived
│ │ ▲ │
│ pause resume ship_variant
│ │ │ (also ends if running)
│ ▼ │
│ paused (flag inactive, still "running" status)
│
├─freeze_exposure──▶ exposure_frozen ──unfreeze_exposure──▶ running
│ (enrollment closed, metrics keep flowing)
Any non-draft state ──reset──▶ draft
Actions and their implications
For each action, the two key questions:
- Who sees what variant? (user perspective)
- Who is in my analysis? (statistical perspective)
Launch (experiment-launch)
Transitions draft → running. Activates the feature flag and sets start_date.
- Preconditions: must be in draft, flag needs 2-20 multivariate variants (no specific key required; the baseline defaults to "control" when present, else the first variant)
- Pre-launch checklist: has at least one metric? Variants correct? Flag implemented in code?
- Variants: users start being bucketed into variants based on the configured split
- Analysis: data collection begins from
start_date
No request body needed.
One optional item worth a single mention at launch, when the change is user-facing and substantial: a
short survey, shown when users finish the experimented flow (e.g. triggered by the form's submit event),
collects qualitative feedback (a rating, an optional comment) alongside the metrics, from day one. Offer it once as setup advice, drop it if declined, and
never let it delay the launch. Do not raise it at end or ship-variant time — there it reads as a gate
on rolling out. → See references/qualitative-feedback.md in [[diagnosing-experiment-health]]
Pause (experiment-pause)
Deactivates the feature flag. Users fall back to the default experience (typically control).
- Preconditions: must be running and not already paused
- Variants: flag is not returned by
/decide— no new exposure events recorded - Analysis: no new data while paused, but existing data is preserved. Experiment stays "running".
No request body. Use experiment-resume to reactivate.
Resume (experiment-resume)
Reactivates the feature flag after a pause. Users are re-bucketed deterministically into the same variants.
- Preconditions: must be paused
- Variants: same assignment as before pause — deterministic bucketing
- Analysis: exposure tracking resumes
No request body.
Freeze exposure (experiment-freeze-exposure)
Stops enrolling new users while everything else keeps going: already-enrolled users keep their variant, metrics keep flowing, and end_date stays null.
Snapshots the already-exposed users into a static cohort and narrows every release condition on the feature flag to that cohort.
Status becomes exposure_frozen.
Use for long-horizon metrics (revenue, LTV, retention, renewals) when the sample is big enough and you want to stop adding users without stopping measurement.
Neither end nor pause fits that job: end stops measurement at end_date, and pause deactivates the flag for everyone.
- Preconditions: must be running (not draft, stopped, paused, or already frozen), flag linked and not deleted, at least one release condition
- Variants: enrolled users keep their variant (deterministic bucketing); new users no longer match the flag
- Analysis: exposures stop growing (a flat exposure curve is expected), but metric data keeps accumulating for enrolled users
Timing: the exposure scan and cohort snapshot run synchronously inside the API call, and duration scales with the number of exposed persons — an experiment with tens of thousands of exposed users can take on the order of tens of seconds. Set expectations with the user, wait for the response, and don't treat a slow call as a failure or retry it.
Not applicable (400) for:
- Group-aggregated experiments — the flag targets groups, not persons, and a person cohort can't freeze group-based matching
- Experiments in a holdout — holdout assignment is evaluated before release conditions, so n
Preguntas frecuentes
¿Qué hace congelar un experimento?
Cierra las inscripciones para que no entren nuevos usuarios, mientras las métricas siguen llegando de los usuarios que ya están en la prueba.
¿Puedo volver a borrador después de lanzar?
Sí. Reiniciar un experimento que no está en borrador lo devuelve a borrador, y la skill explica antes los efectos.
¿Qué hace publicar una variante?
La skill explica que publicar una variante también puede terminar un experimento en marcha, y qué significa eso para el flag.
Detalles
Descripción original del autor
Guides experiment state transitions: launching, pausing, resuming, freezing/unfreezing exposure, ending, shipping variants, archiving, resetting, duplicating, copying to another project, and migrating a legacy experiment to the new experiments engine. Covers preconditions, implications for variant assignment and analysis, and the decision framework for when to use each action. TRIGGER when: user asks to launch, pause, resume, end, ship, archive, reset, duplicate, or copy an experiment to another project, to freeze/unfreeze exposure (stop enrolling new users while metrics keep flowing, or reope
repo: PostHog/posthog
Popularidad
- Estrellas en GitHub
- 41 mil
- Posición en el ranking
- #6881
- 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.