configuring-experiment-rollout
O que ela faz
Esta skill define a divisão entre variantes, como 50/50, e a parcela de usuários que entra no experimento. É para quem quer que o tráfego do teste seja configurado com segurança e de forma justa.
Quando usar
- ✓Quando você quer escolher a divisão entre as variantes de controle e de teste.
- ✓Quando alguém pede uma porcentagem de liberação e você precisa entender o que ela significa.
- ✓Quando você está considerando uma divisão desigual, como 80/20, e quer evitar viés.
Link da skill
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/configuring-experiment-rollout/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Configure meu experimento com divisão 50/50 e libere para 25% dos usuários.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Ela recomenda uma divisão igual por padrão e ajusta a liberação geral para controlar quanto tráfego é exposto. Também alerta sobre o viés que divisões desiguais podem causar.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Configuring experiment rollout
This skill answers: Who sees what variant?
Recommended approach: equal split + adjust rollout percentage
In most cases, experiments work best with an equal split. If you want to limit exposure to the test variant, adjust the rollout percentage instead.
Why equal splits are better:
- Equal splits maximize statistical power — each variant has the same sample size
- Equal splits balance traffic and thus reach significance faster
- Increasing user exposure throughout the experiment through increasing rollout is clean (changing split mid-experiment can cause users to switch variants, which is bad for user experience and data quality)
Always default to an equal split unless the user explicitly requests otherwise.
When an uneven split is required
Uneven splits combined with the default "Exclude from analysis" handling can introduce bias. If the experiment observes multi-variant users (users exposed to more than one variant) then those are dropped asymmetrically — the smaller variant loses a larger fraction of its assignments. If those users behave differently from the rest, the smaller variant's metrics will be skewed.
The right mitigation depends on experiment state:
- Pre-launch, or live but with few exposures so far — use an equal split and reduce the overall rollout. Achieves the same test-variant exposure without the bias and preserves statistical power. See the disambiguation question below.
- Live experiment with significant exposures — switch multivariate handling to "First seen
variant". Changing the split mid-run reassigns users across variants (anti-pattern; see
"Changing rollout on a running experiment" below). Switching handling instead keeps everyone in
their original variant and avoids the asymmetric exclusion. See
configuring-experiment-analyticsfor how to set this. Note that "first seen" handling can introduce other biases, but it's preferable to mid-run reassignment.
The two rollout controls
There are two separate controls that determine who sees what.
Both live on the linked feature flag, sent through the feature_flag object in the flag's own shape (not the deprecated parameters keys).
1. Variant split (feature_flag.filters.multivariate.variants)
How users inside the experiment are distributed across variants.
- Array of
{key, name, rollout_percentage}, where therollout_percentagevalues must sum to 100 - Minimum 2 variants, maximum 20
- No specific variant key is required — the analysis baseline defaults to the variant keyed
"control"when present, else the first variant - Default: control 50% / test 50%
If the user says "A/B/C test" without naming keys, key the baseline "control" (the convention) and create additional variants for the others; if they ask for specific keys, use them as-is with the baseline first.
2. Overall rollout (feature_flag.filters.groups[0].rollout_percentage)
What percentage of all users enter the experiment at all, sent as a single rollout group: groups: [{ "properties": [], "rollout_percentage": N }].
Default: 100%.
Users not included are excluded entirely: they don't see any variant and are not part of the analysis.
Where these are sent
Both controls live inside feature_flag.filters:
{
"feature_flag": {
"filters": {
"multivariate": {
"variants": [
{ "key": "control", "name": "Control", "rollout_percentage": 50 },
{ "key": "test", "name": "Test", "rollout_percentage": 50 }
]
},
"groups": [{ "properties": [], "rollout_percentage": 100 }]
}
}
}
filters may also carry aggregation_group_type_index (to run the experiment on a group type rather than individual users) and payloads (JSON-encoded strings keyed by variant key).
On a running experiment, any flag-config change must also send update_feature_flag_params: true, otherwise the API rejects the update before it reaches the flag (see "Changing rollout on a running experiment").
How they interact
These two controls multiply:
| Overall rollout | Variant split | % seeing test | % in analysis |
|---|---|---|---|
| 100% | 50/50 | 50% | 100% |
| 100% | 75/25 control/test | 25% | 100% |
| 50% | 50/50 | 25% | 50% |
| 25% |
Perguntas frequentes
Por que usar divisão igual?
Divisões iguais dão a cada variante o mesmo tamanho de amostra, o que ajuda o teste a atingir significância mais rápido.
Posso mudar a divisão durante um teste?
É melhor não fazer isso. Usuários poderiam trocar de variante, o que prejudica a experiência deles e a qualidade dos dados.
Por que uma divisão desigual é arriscada?
Usuários que veem várias variantes são descartados de forma desigual, o que pode distorcer os resultados da variante menor.
Detalhes
Descrição original do autor
Configures the rollout shape of a PostHog experiment — the variant split (50/50, 80/20, A/B/C ratios), the overall rollout percentage that gates how many users enter the experiment, and the disambiguation when a percentage like "roll out to 25%" could mean either. Use when the user mentions a rollout percentage, variant split, or traffic distribution; gives a ratio like 60/40, 70/30, or 80/20; asks "who sees the test variant?"; wants to increase, decrease, or change the rollout or split on a draft or running experiment; weighs equal vs uneven splits; or proposes a mid-experiment split change (
repo: PostHog/posthog
Popularidade
- Estrelas no GitHub
- 41 mil
- Posição no ranking
- #6876
- Licença
- —
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
depot-ci
41 milAjuda seu agente a configurar e executar fluxos de trabalho do Depot CI, uma alternativa ao GitHub Actions, incluindo a migração de fluxos existentes e a leitura dos logs de execução.
depot-container-builds
41 milAjuda seu agente a criar imagens Docker nos builders remotos do Depot, incluindo imagens multiplataforma, envio para registros e correção de falhas de build.
depot-github-runners
41 milAjuda seu agente a levar tarefas do GitHub Actions para runners gerenciados pelo Depot, escolhendo os tamanhos e os rótulos dos runners e resolvendo problemas de configuração.
editing-agents-md
41 milAjuda seu agente a decidir se uma regra deve ficar em um arquivo AGENTS.md ou CLAUDE.md, e a escrevê-la de forma que seja seguida sem deixar o arquivo inchado.
Skills parecidas
gitcrawl
394 milPermite que seu agente pesquise um arquivo salvo de issues e pull requests do GitHub, agrupe os duplicados e verifique o status atual deles no GitHub.
slacrawl
394 milPermite que seu agente pesquise e conte mensagens em um arquivo local do Slack, verifique quão atualizado ele está e o atualize quando necessário.
goplaces
394 milAjuda seu agente a buscar lugares, obter detalhes e avaliações e identificar nomes de lugares usando o Google Places, com saída em JSON para scripts.