跳到正文
Skillpedia
分析与电子表格41k · #6880

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/experiments/skills/finding-experiments/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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 name field for matches
  • By recency: results are ordered newest first by default
  • By status: match the status field (draft, running, paused, exposure_frozen, stopped)
  • By flag key: skip the list and call experiment-get-by-flag-key with the key. It returns the full experiment, or found: false with a reason. no_flag and no_experiment mean the key is free, so this is also the existence check to run before experiment-create. ambiguous means several experiments share the flag and none is the single live one: show the candidates and pick one with experiment-get rather than creating another.
  • By partial flag key: call experiment-list with search set to the fragment. search matches 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 ID
  • diagnosing-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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能