debugging-experiments
하는 일
이 스킬은 실험 결과가 잘못돼 보일 때 도움을 줍니다. 가장 흔한 이유는 사용자가 고르게 집계되지 않기 때문입니다. 실험 결과를 이해해야 하는 고객과 지원 담당자를 위한 것입니다.
사용하는 경우
- ✓한 변형의 노출이 다른 변형보다 훨씬 적을 때.
- ✓실험에 편향 경고가 나타났는데 이유를 모를 때.
- ✓PostHog의 숫자가 내가 자체 SQL로 계산한 값과 맞지 않을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/debugging-experiments/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“분할이 50/50인데 왜 제 실험의 한 변형이 거의 트래픽을 받지 못하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
실험 설정을 읽고 노출 데이터를 확인해서 어떤 사용자가 집계되는지 치우치게 만드는 것이 무엇인지 찾습니다. 그다음 원인과 해결책을 쉬운 말로 설명합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Debugging experiments
PostHog Experiments are A/B tests: a feature flag randomizes users into variants, the SDK records an exposure when the flag is read, and PostHog computes per-variant metrics and significance. A customer looks at that results page and asks why it looks wrong.
Most experiment-results tickets are config or exposure-collection problems, not statistics bugs. The randomization is fine; something upstream is skewing which users get exposed, or stopping exposures from being recorded. The job is to find which, prove it with the customer's own data, and hand back a plain-language explanation plus the fix.
This skill is the customer-support front door. It carries the two most common complaints
inline (uneven exposures, missing exposures) and loads
diagnosing-experiment-health as a diagnostic
library for the deeper long tail (interpretation traps, numbers-vs-SQL, mid-run surprises).
Debugging workflow
- Parse the ticket. Extract project ID, instance (US vs EU — the URLs and data live in
different places), experiment ID or name, the
lib/platform if relevant, the exact complaint in the customer's words, and what they already tried. Aged or multi-reply tickets are dirty: the config may have been edited mid-thread, so re-pull current state and treat earlier claims as stale. - Resolve the experiment. If the ticket names it rather than giving an ID, load
finding-experimentsto resolve it, then callposthog:experiment-get. - Pull the data read-only. Run the fixed data-pull sequence in
references/pulling-the-data.md. This produces the
"pertinent numbers" you will show the customer: per-variant exposed-person counts,
$multipleshare, thedistinct_id/personfragmentation ratio, the SRM chi-squared result, the exposure trajectory, and the flag/experiment activity log. Verify from data before asking the customer anything. - Match the complaint to the known-cause catalog below. Confirm the single leading cause
with one targeted number from step 3 before writing. Treat the customer's own conclusion
("it's just noise", "a measurement bug") as a hypothesis to disconfirm, not confirm —
pull the data independently rather than re-deriving their answer. Quantify a suspected cause
before asserting its impact (count the contaminating cohort, don't eyeball it). One trap in
particular: never run the SRM chi-square against an assumed even split — read the configured
rollout_percentagefirst, since an intended 34/33/33 reads as a ~2% SRM under an equal-split assumption. - Scope the fix to the experiment's state before recommending it. On a draft, config
changes are free — recommend freely. On a running experiment every change has a mid-run
tradeoff (changing the split is an anti-pattern — prefer reset or end+restart; see
configuring-experiment-rolloutandmanaging-experiment-lifecycle). On a stopped/shipped experiment the flag and results are the documented outcome, so recommend interpretation or a next experiment, not a mid-run edit. Don't propose reversing a state change unless the customer asks how to undo it. - Write the reply using references/customer-reply.md: cause → fix → the numbers that prove it, in the customer's UI language.
Known-cause catalog — "exposures aren't even" / "one variant has no traffic"
Ordered by how often they're the answer. Full mechanism detail lives in
diagnosing-experiment-health/references/bias-and-skew.md
(group A) — load it when a case needs more depth than the summary here.
First, split a real SRM into its two possible homes. Assignment is a deterministic hash of a
stable identifier (the distinct_id by default; the device ID or group key for those flag types —
see references/pulling-the-data.md), so with an unchanged split
every user has a fixed variant and any set of users must fall close to the configured percentages.
A confirmed SRM (chi-squared p < 0.001 at healthy volume — not eyeballed) therefore lives in exactly
one of two places:
- Assignment-side — the recorded variant disag
자주 묻는 질문
무작위 배정이 보통 깨져 있나요?
보통은 아닙니다. 대부분의 결과 문제는 통계가 아니라 설정이나 노출 수집에서 옵니다.
왜 PostHog 숫자가 제 SQL과 다른가요?
각각 누가 집계되는지에 대한 규칙이 다르므로, 스킬은 둘을 비교해 차이를 찾습니다.
실험이 진행 중에 편집되었다면 어떻게 하나요?
이전 메모가 오래되었을 수 있으므로, 스킬은 현재 설정을 다시 확인합니다.
상세 정보
작성자의 원본 설명
Debug and support PostHog Experiments (A/B tests) for a customer looking at their own results. Use whenever an experiment support ticket is pasted or a customer asks a results question, most commonly "why aren't my exposures even?", "why is one variant getting no traffic?", "why am I missing / seeing too few exposures?", "why does the bias banner show?", or "why don't PostHog's numbers match my SQL?". Pulls the experiment's real data read-only, matches it to a known-cause catalog, and produces a customer-facing explanation, fix, and review of the pertinent numbers. Loads diagnosing-experiment-
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6878
- 라이선스
- —
- 업데이트
- 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을 출력하도록 돕습니다.