finding-experiments
它能做什么
本技能将一个通俗的名称(例如定价实验)与 PostHog 中某个确切的实验相匹配。适合按名称而非 ID 来指代实验的人。
适用场景
- ✓当你提到某个实验,例如定价测试,并需要它的 ID 时。
- ✓当多个实验名称相似,你需要选出正确的那个时。
- ✓当你有一个功能开关的 key,并想找出使用它的实验时。
技能链接
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/finding-experiments/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请找到我的定价实验,并告诉我它的表现如何。”
每周 5 个新技能,1 分钟读完。
工作原理
它会按名称、状态、时间或开关 key 浏览你的实验列表。如果有多个实验匹配,它会列出选项,供你挑选。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Finding experiments
Users refer to experiments by name, description, or relative references — not by ID. This skill resolves natural language references to concrete experiment IDs.
How to find an experiment
Use the experiment-list tool from the Posthog-local MCP server.
IMPORTANT: Do NOT use feature-flag-get-all or any feature flag tool to find
experiments. Use the dedicated experiment list tool: experiment-list.
This tool returns experiments with their id, name, status, feature_flag_key, start_date, end_date, and created_at. Browse the returned list to find the experiment matching the user's reference:
- By name: scan the
namefield for matches - By recency: results are ordered newest first by default
- By status: match the
statusfield (draft, running, paused, exposure_frozen, stopped) - By flag key: skip the list and call
experiment-get-by-flag-keywith the key. It returns the full experiment, orfound: falsewith areason.no_flagandno_experimentmean the key is free, so this is also the existence check to run beforeexperiment-create.ambiguousmeans several experiments share the flag and none is the single live one: show thecandidatesand pick one withexperiment-getrather than creating another. - By partial flag key: call
experiment-listwithsearchset to the fragment.searchmatches substrings of the experiment name and the flag key, ignoring case.
After finding matches
- Exactly one match: Use it. Confirm with the user by name before destructive actions (delete, ship, end).
- Multiple matches: List them with name, status, and creation date. Ask the user to pick.
- No matches: Tell the user. Suggest checking archived experiments or different terms.
Get full details if needed
After resolving to an ID, call experiment-get for the full object (metrics, flag details, parameters).
Examples
User: "pause my signup experiment"
Agent:
1. Calls experiment-list
2. Scans results, finds "New signup process" (ID: 1371, status: running)
3. Proceeds to pause experiment 1371
When NOT to search
- You already have the experiment ID from earlier in the conversation
- The user just created the experiment — you have the ID from the create response
- The user provided the ID directly
Related skills
managing-experiment-lifecycle— act on the experiment once you've resolved its IDdiagnosing-experiment-health— investigate the experiment you found
常见问题
它会通过搜索功能开关来查找实验吗?
不会。它使用实验列表,因为功能开关工具不会显示实验。
我可以用开关 key 的一部分进行搜索吗?
可以。部分开关 key 可以用于搜索实验列表。
如果某个开关 key 没有对应的实验怎么办?
本技能会告知你未找到实验,这样你就知道该 key 可以用于新实验。
详情
作者的原始描述
Resolves a PostHog experiment reference from natural language to a concrete experiment ID by browsing `experiment-list` (not feature-flag tools), with disambiguation when multiple experiments match. Use when the user names or quotes an experiment ("split test demo", "the File engagement boost experiment", "onboarding retention test", "landing page hero experiment", "pricing experiment"), describes it loosely ("the signup experiment", "my pricing test", "the one with the new checkout"), uses a relative reference ("latest", "most recent", "the one I created yesterday"), filters by status (runnin
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6880
- 许可证
- —
- 更新时间
- 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,并以不会让文件臃肿的方式写下,确保规则真正生效。