Finding experiments

From PostHog/posthog · View interactive version

Finding experiments is an AI agent skill from the GitHub repository PostHog/posthog. 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 experi

How to use this skill

Skill file

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 posthog:experiment-list tool.

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:

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.

substrings of the experiment name and the flag key, ignoring case.

After finding matches

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

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.