scanning-experiments-with-replay-vision
Skill này làm gì
Skill này thiết lập một bộ quét tự động xem xét các bản ghi phiên của một thí nghiệm và so sánh các biến thể. Nó dành cho các nhóm muốn thấy người dùng thực sự làm gì trong từng biến thể.
Khi nào nên dùng
- ✓Khi bạn muốn một bản rà soát tự động các bản ghi cho một thí nghiệm đang chạy.
- ✓Khi bạn muốn so sánh người dùng làm gì ở mỗi biến thể mà không phải xem từng bản ghi.
- ✓Khi bạn muốn xem trước prompt của một bộ quét trên vài phiên thực tế trước khi bật nó.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/scanning-experiments-with-replay-vision/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xem các bản ghi của thí nghiệm onboarding của tôi và cho tôi biết điều gì khác nhau ở mỗi biến thể.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill tạo một bộ quét gắn với những người dùng đã tiếp xúc của thí nghiệm, lấy mẫu đều cho mỗi biến thể, và dừng khi thí nghiệm kết thúc. Bộ quét được tạo ở trạng thái tắt để bạn kiểm tra prompt trước.
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.
Scanning experiments with Replay Vision
The job: "I'm running an experiment. Watch the recordings and tell me what's actually happening in each variant."
A Replay Vision scanner is a standing LLM probe over session recordings (see [[creating-replay-vision-scanners]] for the general mechanics). The experiment scanner type is built for this job, so use it rather than scoping another type to an experiment:
- The population is the experiment's exposed people, derived server-side from the experiment instead of a hand-built filter.
- Each session's variant comes from the exposure data, never from the model. The model is told what the experiment changes, but not the session's variant, so it describes what the recording shows.
- Variants are sampled evenly, so a 90/10 rollout still gives the small variant enough observations to compare.
- Scanning stops when the experiment ends, and pauses while it is paused.
- Results split by variant with no join:
vision-scanners-variants-listand the observationsvariantfilter.
This skill covers what is experiment-specific; the generic create and size mechanics stay in the parent skill.
The flow: resolve the experiment → write the config → size it → create disabled → preview the prompt on a few real sessions → let the user enable it → read the results per variant.
Step 1: Resolve the experiment
experiment-get returns everything needed: the linked feature_flag (its filters.multivariate.variants list is the source of truth for variant keys; parameters.feature_flag_variants can be stale), exposure_criteria, start_date, end_date, and status. If the user didn't identify the experiment, resolve it via [[finding-experiments]] rather than guessing.
Guards before doing anything else:
- Draft (no
start_date): there are no exposures and nothing to scan. The API refuses an experiment scanner for an experiment that hasn't launched. Say so and stop. - Ended: a new scanner sweeps only from creation onward, and it stops at the end date, so it scans nothing new. Cover the run with a backfill (see Limits).
- Running or exposure-frozen: proceed. A frozen experiment stops enrolling, but already-exposed users keep producing sessions, so scanning stays useful.
- Already half over: the scanner watches only the remaining run unless you backfill. Say so, so a per-variant readout isn't mistaken for full-run coverage.
Step 2: Write the config
The experiment lives in scanner_config, next to the prompt:
{
"prompt": "Focus on how the user moves through checkout after the payment step first appears: where they hesitate, retry, or leave.",
"experiment_id": 123,
"variants": null,
"balance_variants": true
}
experiment_id: the experiment from Step 1. It is fixed once the scanner exists; watching a different experiment means a new scanner.variants: the variant keys to watch, ornullfor every variant. Default tonull, one scanner for the whole experiment. A comparison needs every variant, and one scanner keeps one prompt version across them (see Limits on version skew). Narrow it only when the user asks to watch some variants.balance_variants(defaulttrue): one sampling rate per variant, so each gets roughly equal coverage for the same spend. Leave it on for comparisons.length(optional):short,medium(the default) orlong, as for a summarizer.
The API owns the exposure filter and its access control. It resolves the same exposed-person population the experiment's Recordings tab shows. The filter is person-scoped, so it covers people whose exposure fired server-side or in an earlier session. Don't build event or property filters for exposure; the API rejects an experiment_exposure set directly inside query, and it checks access to the experiment, so a scanner can only reach an experiment its editor can view.
Keep query for non-exposure filters only. Set filter_test_accounts to exposure_criteria.filterTestAccounts ?? true, the same rule every experiment surface uses. When the experiment omits the setting, use true. Keep an explicit false, because that is an intentional opt-out. A minimal query is enough:
{ "kind": "RecordingsQuery", "filter_test_accounts": true }
Add other recording filters (duration, console errors, a specific page) only when the user asks. No date_from/date_to: the scanner strips them on save, because its 5-minute swe
Câu hỏi thường gặp
Bộ quét có quyết định phiên thuộc biến thể nào không?
Không. Biến thể đến từ dữ liệu tiếp xúc, nên mô hình chỉ mô tả những gì bản ghi cho thấy.
Vì sao các biến thể được lấy mẫu đều?
Để một biến thể nhỏ vẫn có đủ phiên để so sánh với một biến thể lớn hơn.
Việc này có tốn credit không?
Có. Skill ước lượng mức chi credit so với chính người dùng của thí nghiệm trước khi bạn bật bộ quét.
Chi tiết
Mô tả gốc của tác giả
Provisions a Replay Vision `experiment` scanner, which watches one experiment's exposed sessions, records each session's variant, samples the variants evenly, and stops when the experiment ends. Covers status guards, a prompt that stays comparable across variants, sizing credit spend against the experiment's own population, creating it disabled so its prompt can be previewed on real sessions, and reading the results per variant. TRIGGER when: user wants Replay Vision to watch an experiment, asks to scan or analyze an experiment's recordings with AI, asks \"what are users actually doing in the
repo: PostHog/posthog
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6882
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.