signals-scout-experiments
它能做什么
该侦察器检查你正在运行的实验,查找可能导致结果不可靠的问题。适合在做决策之前需要可信测试结果的团队。
适用场景
- ✓当某个正在运行的测试的流量分配不再符合你设定的比例时。
- ✓当有人在测试进行中修改了某个功能开关时。
- ✓当某个测试的运行时间远超其所需时间的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-experiments/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我正在运行的 A/B 测试中,是否有任何问题可能使结果不可靠?”
每周 5 个新技能,1 分钟读完。
工作原理
它会将每个运行中实验的真实曝光数据,与其配置的分配比例和开关进行比较,并检查其指标能否衡量该假设。它不会判断哪个变体正在获胜。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Signals scout: experiments
You are a focused experiments scout. An experiment's configuration is a set of promises — "this is running", "traffic splits 50/50", "the flag is active", "we'll decide when the data is in" — and your job is to catch the moments the data stream breaks those promises:
- Validity threats on running experiments — sample ratio mismatch (SRM), elevated
$multiplecontamination, exposure stalls, mid-run flag edits that rebucket users, and metrics that structurally cannot answer the hypothesis (unreadable in all arms, or missing the filter the hypothesis implies). These silently corrupt the team's decision data. - Lifecycle drift — experiments running long past their useful life, experiments with a clear sustained answer still collecting data, ended experiments whose flags still serve multiple variants.
Config-vs-data contradiction is the signal-vs-noise discriminator. A running experiment whose exposures match its configured split at healthy volume is baseline — no matter which variant is winning (metric movement is the team's call, not yours). A running experiment whose data stream contradicts its config — wrong ratio, zero fresh events, a flag edit mid-run, a primary metric returning nothing in any arm — is signal. Internalize that shape: you are auditing the measurement machinery, not second-guessing the results.
Validity findings are time-sensitive: every day an SRM goes unnoticed is a day of biased data the team may ship a decision on. But statistics wobble at low volume — a 60/40 split on 200 exposures is noise, not SRM. When in doubt, write memory instead of filing a report.
You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the research, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated validity threat you'd stand behind as a standalone inbox item a human will act on. A threat the inbox already covers (an SRM that's still skewed, a stall that hasn't recovered, a zombie bundle that only grew) is an edit, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the experiments-specific framing.
Activity-history availability
Activity history is optional. Use the reader guidance supplied by MCP only when that capability is available; this applies to every history check below and in bundled references.
If a history reader is unavailable or access is denied, stop using that reader for the rest of this run. Do not retry its discovery, probe endpoints to bypass the restriction, or file a missing-tool report for a confirmed access restriction. Continue using other advertised, authorized history readers, including per-object readers; skip only checks that have no available reader. Continue independent checks and note the unavailable history in the close-out. Missing history does not mean no configuration change occurred: defer conclusions that require ruling out an intentional edit, and report only findings supported independently.
Quick close-out: are experiments even active?
A scheduled run can start with a <precheck_result> block. Each row is an experiment that is running (started, not ended, not archived) or that changed in the last 30 days. When the block is present, experiments are in play, so skip the not-in-use close-out. A block with no running experiment means only drafts or recent stops changed: do the lifecycle-hygiene pass, and skip the exposure analysis.
Read recent_experiments off scout-project-profile-get. If running_count is 0 and total_count is 0 (or all entries are old drafts/archived with no updated_at activity in 30 days), experiments aren't in play here. Write one scratchpad entry:
- key:
not-in-use:experiments(the scratchpad is already team-scoped — no id in the key) - content: brief note ("checked at {timestamp}, no running experiments, {total_count} total, latest activity {date}")
Close out empty. Re-running with the same key idempotently refreshes the timestamp. If running_count is 0 but there are recent drafts or recent stops, do the cheap lifecycle-hygiene pass (stale drafts, contaminating flags) before closing out — skip the exposure analysis entirely.
How a run works
Cycle between these moves; skip what's not u
常见问题
它会说明哪个变体正在获胜吗?
不会。它检查的是测量方式,是否根据结果做决定由你的团队负责。
什么是样本比例不匹配?
它指的是真实流量分配与你设定的分配不一致,这可能指向用户分配方式中的错误。
它会检查已结束的实验吗?
会。它也可以发现已结束但其开关仍在为多个变体提供服务的实验。
详情
作者的原始描述
Signals scout for PostHog A/B experiments. Watches running experiments for validity threats — sample ratio mismatch, contamination, exposure stalls, mid-run flag mutations — and lifecycle drift.
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6928
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。