Langsung ke konten
Skillpedia
Analisis & spreadsheet41k Β· #6878

debugging-experiments

Fungsinya

Skill ini membantu saat hasil eksperimen tampak salah, yang paling sering terjadi karena pengguna tidak dihitung secara merata. Ditujukan untuk pelanggan dan staf dukungan yang perlu memahami hasil eksperimen.

Kapan dipakai

  • βœ“Saat sebuah eksperimen menunjukkan paparan jauh lebih sedikit untuk satu varian dibandingkan varian lainnya.
  • βœ“Saat sebuah eksperimen menampilkan peringatan bias dan Anda tidak tahu penyebabnya.
  • βœ“Saat angka di PostHog tidak sesuai dengan yang Anda hitung dengan SQL Anda sendiri.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/PostHog/posthog/blob/master/products/experiments/skills/debugging-experiments/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œMengapa satu varian eksperimen saya hampir tidak mendapat lalu lintas padahal pembagiannya 50/50?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill membaca pengaturan eksperimen dan memeriksa data paparan untuk menemukan apa yang membuat pengguna tertentu dihitung. Setelah itu, skill menjelaskan penyebab dan perbaikannya dengan bahasa yang sederhana.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Apakah randomisasi biasanya rusak?

Biasanya tidak. Sebagian besar masalah hasil berasal dari pengaturan atau pengumpulan paparan, bukan dari statistiknya.

Mengapa angka PostHog berbeda dengan SQL saya?

Masing-masing menggunakan aturan yang berbeda tentang siapa yang dihitung, sehingga skill membandingkan keduanya untuk menemukan selisihnya.

Bagaimana jika eksperimen diedit selama tes?

Skill memeriksa ulang pengaturan saat ini, karena catatan sebelumnya mungkin sudah tidak berlaku.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
41k
Peringkat
#6878
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa