About finding-experiments
A PostHog skill that resolves experiment references in natural language to experiment records and IDs. It uses the dedicated experiment-list tool and guides selection when there are multiple matches.
Key features
- 01Find experiments by name or status
- 02Search partial flag keys
- 03Resolve full flag keys directly
- 04Retrieve experiment details
- 05Handle ambiguous or missing matches
Use cases
- 01Locate an experiment mentioned by name
- 02Find recent or running experiments
- 03Check whether a flag key has an experiment
- 04Identify the correct experiment before lifecycle actions
MCP support
Uses the Posthog-local MCP server's experiment-list and experiment lookup tools to find experiments and retrieve their details.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ posthog/ skills --skill finding-experimentsAfter installing, type/finding-experimentsin Claude Code to confirm it loaded.
Details
From the project READMEFinding 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