Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính41k · #6879

diagnosing-experiment-health

Skill này làm gì

Skill này kiểm tra một thí nghiệm để tìm các vấn đề như không có lượt tiếp xúc, lưu lượng không đều, chỉnh sửa giữa chừng và ý nghĩa thống kê gây hiểu lầm. Nó dành cho người chạy thí nghiệm và muốn biết kết quả có đáng tin không.

Khi nào nên dùng

  • ✓Khi một thí nghiệm không có lượt tiếp xúc nào và bạn muốn biết vì sao.
  • ✓Khi kết quả có vẻ thiên lệch hoặc trống và bạn cần một chẩn đoán.
  • ✓Khi ai đó đã thay đổi một thí nghiệm trong lúc nó đang chạy và bạn muốn biết điều đó ảnh hưởng gì.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/experiments/skills/diagnosing-experiment-health/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra thí nghiệm đang chạy của tôi xem có vấn đề gì không, vì kết quả có vẻ thiên lệch.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill tải thiết lập, dữ liệu tiếp xúc và lịch sử thay đổi của thí nghiệm, rồi khớp khiếu nại với một chẩn đoán đã biết. Mỗi phát hiện được gắn nhãn theo mức độ xác minh của nó.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Diagnosing experiment health

This skill answers: My PostHog experiment results look wrong, biased, or empty — what's going on? It is the diagnostics and health check for one experiment: its setup, its exposures, its results and what changed during the run.

Match the user's complaint in the dispatch table, then read the matching reference file for the diagnostic.

Each diagnostic in the reference files is tagged [HIGH], [MEDIUM], or [LOW] based on how strongly it's verified — [HIGH] is verified directly in PostHog code, [MEDIUM] is partially or team-source verified, [LOW] describes SDK/external behavior that wasn't verified here. Treat [LOW] items as hypotheses to test, not facts to assert.

Step 1 — Resolve the experiment

If the user refers to an experiment by name or description, load the finding-experiments skill first to resolve it to a concrete ID.

Call experiment-get and pull these fields. They are inputs for almost every diagnostic:

  • status (draft / running / paused / exposure_frozen / stopped), start_date, end_date, is_legacy
  • feature_flag.active, and feature_flag.filters.multivariate.variants[] — the variant keys and the split (rollout_percentage). This is the flag as it is now. After a ship or an edit, the split of the run is in the change history (Step 1.5).
  • feature_flag.filters.aggregation_group_type_index — when set, the experiment's unit is a group, not a person
  • feature_flag.filters.groups[] — for each group read variant, properties, and rollout_percentage (that group's rollout, % of the matched bucketing units — persons, or groups when the flag or the group is aggregated by a group type — that enter the experiment; each group has its own, so there is no single overall rollout unless the flag has one unconditional group). A non-null variant that is one of the flag's variant keys is a forced-variant override on the matched cohort (release-condition assignment, not randomized) — surfaces A7. Watch for the severe shape (A7b): a variant-pinned group with broad/empty properties at high rollout, or no group left randomized (variant: null) / no release path to one arm — that starves the other variant (one arm gets ~0 analyzable exposures). See references/bias-and-skew.md.
  • feature_flag.bucketing_identifier and feature_flag.ensure_experience_continuity — what the flag hashes (A3, A6, A8, A10)
  • holdout and excluded_variants — people and arms that are outside the analysis on purpose
  • exposure_criteria.multiple_variant_handling — defaults to "exclude" if absent
  • exposure_criteria.exposure_config — the exposure event and its property filters. Unset, or naming $feature_flag_called, means the default exposure event: read which one from resolved_exposure_event. When it is $feature_flag_called, also read $experiment_exposure (event IN ('$feature_flag_called', '$experiment_exposure')), and count persons, not rows. A config that names $experiment_exposure counts that event, whatever resolved_exposure_event says. Any other event, or an action, is a custom exposure event. Property filters in the config apply to either (B12). The table in references/diagnostic-snapshot.md says which property carries the variant.
  • exposure_criteria.activation_config — an activation event, or an action, on top of the default exposure. When it is set, a person counts as exposed only from their first activation event at or after their first flag exposure, and the time of that event is the exposure time. It does not combine with a custom exposure event.
  • exposure_criteria.filterTestAccounts — defaults to true
  • metrics and metrics_secondary, with shared metrics — for each: the name, the type and the definition. Describe a metric from its definition, not from its name (D13).
  • stats_config — method (Bayesian or Frequentist), the confidence level (bayesian.ci_level, frequentist.alpha), frequentist.sequential_testing_enabled, cuped, baseline_variant_key. A missing method reads as Bayesian and a missing confidence level as 95%. Sequential testing and CUPED fall back to the project default (C13).
  • running_time_calculation — the target sample (a total across all variants), the days still missing to reach it, and the minimum detectable effect. When the estimate comes from numbers the user typed, or was written at creation and never refreshed by the page, the days are
Câu hỏi thường gặp

Nhãn độ tin cậy có nghĩa là gì?

Các phát hiện được đánh dấu là high, medium hoặc low tùy theo mức độ xác minh trực tiếp, nên các mục low là giả thuyết cần kiểm tra.

Skill có giúp với các bẫy thống kê không?

Có. Nó bao gồm các vấn đề như kiểm tra kết quả quá sớm và dừng thử nghiệm ngay khi kết quả trông tốt.

Skill có bao gồm việc tạm dừng hoặc đóng băng không?

Có. Nó bao gồm cách việc tạm dừng hoặc đóng băng một thí nghiệm ảnh hưởng đến dữ liệu của nó.

Chi tiết

Mô tả gốc của tác giả

Runs diagnostics and a health check on one PostHog experiment: its setup, exposures, results and changes during the run. Covers 0 exposures, sample ratio mismatch, lost or uneven exposures, users in multiple variants, identity faults, who the experiment counts, significance traps (peeking, A/A, 'target reached', Bayesian vs Frequentist, sequential, CUPED), mid-run edits, pause and freeze, and survey follow-up. TRIGGER when: user asks 'is my experiment healthy / set up right / biased?' or 'why 0 exposures?', asks why it counts different people than their insight, mentions the bias or mismatch w

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6879
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự