configuring-experiment-rollout
하는 일
이 스킬은 50/50 같은 변형 분할과 실험에 들어갈 사용자의 비율을 설정합니다. 테스트 트래픽을 안전하고 공정하게 설정하려는 사람을 위한 것입니다.
사용하는 경우
- ✓대조군과 테스트 변형 사이의 분할을 고르고 싶을 때.
- ✓누군가 롤아웃 비율을 요청했는데 그 의미를 알아야 할 때.
- ✓80/20처럼 균등하지 않은 분할을 고려하면서 편향을 피하고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/configuring-experiment-rollout/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“실험을 50/50으로 나누고 사용자의 25퍼센트에게 롤아웃해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
기본으로 균등한 분할을 추천하며, 전체 롤아웃을 조정해 노출되는 트래픽 양을 조절합니다. 또한 균등하지 않은 분할이 만드는 편향에 대해 경고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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% |
자주 묻는 질문
왜 균등한 분할을 쓰나요?
균등한 분할은 각 변형에 같은 표본 크기를 주므로, 테스트가 더 빨리 유의미한 결과에 도달하는 데 도움이 됩니다.
테스트 중에 분할을 바꿀 수 있나요?
권장하지 않습니다. 사용자가 변형을 바꿀 수 있어서 사용자 경험과 데이터 품질을 해치기 때문입니다.
왜 균등하지 않은 분할은 위험한가요?
여러 변형을 보는 사용자가 고르지 않게 빠지므로, 작은 변형의 결과가 왜곡될 수 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 41k
- 순위
- #6876
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.