본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트41k · #6878

debugging-experiments

하는 일

이 스킬은 실험 결과가 잘못돼 보일 때 도움을 줍니다. 가장 흔한 이유는 사용자가 고르게 집계되지 않기 때문입니다. 실험 결과를 이해해야 하는 고객과 지원 담당자를 위한 것입니다.

사용하는 경우

  • ✓한 변형의 노출이 다른 변형보다 훨씬 적을 때.
  • ✓실험에 편향 경고가 나타났는데 이유를 모를 때.
  • ✓PostHog의 숫자가 내가 자체 SQL로 계산한 값과 맞지 않을 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/experiments/skills/debugging-experiments/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/experiments/skills/debugging-experiments/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. 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.
  2. Resolve the experiment. If the ticket names it rather than giving an ID, load finding-experiments to resolve it, then call posthog:experiment-get.
  3. 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, $multiple share, the distinct_id/person fragmentation ratio, the SRM chi-squared result, the exposure trajectory, and the flag/experiment activity log. Verify from data before asking the customer anything.
  4. 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_percentage first, since an intended 34/33/33 reads as a ~2% SRM under an equal-split assumption.
  5. 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-rollout and managing-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.
  6. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬