debugging-experiments
यह क्या करती है
यह स्किल तब काम आती है जब किसी प्रयोग के नतीजे गलत लगें, ज़्यादातर इसलिए कि उपयोगकर्ता समान रूप से नहीं गिने जा रहे। यह उन ग्राहकों और सपोर्ट स्टाफ़ के लिए है जिन्हें प्रयोग के नतीजे समझने हैं।
कब इस्तेमाल करें
- ✓जब किसी प्रयोग में एक वेरिएंट के एक्सपोज़र दूसरे की तुलना में बहुत कम दिखें।
- ✓जब प्रयोग पूर्वाग्रह की चेतावनी दिखाए और आप कारण नहीं जानते।
- ✓जब PostHog के आँकड़े आपके अपने SQL से निकाले गए आँकड़ों से मेल न खाएँ।
Skill का लिंक
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/debugging-experiments/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे प्रयोग का एक वेरिएंट लगभग कोई ट्रैफ़िक नहीं पा रहा, जबकि बँटवारा 50/50 है। ऐसा क्यों?”
हर हफ़्ते 5 नई skills, 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
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
depot-ci
41kयह आपके एजेंट को Depot CI वर्कफ़्लो सेट अप करने, चलाने और माइग्रेट करने में मदद करती है, साथ ही रन के लॉग पढ़ने में।
depot-container-builds
41kयह आपके एजेंट को Depot के रिमोट बिल्डर पर Docker इमेज बनाने में मदद करती है, जिसमें मल्टी-प्लेटफ़ॉर्म इमेज और बिल्ड सुधार शामिल हैं।
depot-github-runners
41kयह आपके एजेंट को GitHub Actions जॉब Depot के मैनेज्ड रनर पर ले जाने, रनर का साइज़ और लेबल चुनने, और रनर सेटअप की समस्याएँ ठीक करने में मदद करती है।
editing-agents-md
41kयह आपके एजेंट को तय करने में मदद करती है कि कोई नियम AGENTS.md या CLAUDE.md में जाए या नहीं, और उसे ऐसे लिखे कि फ़ाइल भारी न हो।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।