finding-experiments — скилл Claude Code: что делает и как ставить
Находит ID эксперимента в PostHog по его названию, статусу или примерному описанию. Помогает агенту работать с A/B-тестами без ручного ввода идентификаторов.
npx skills add PostHog/skills --skill finding-experiments -a claude-codeЧто делает finding-experiments
Скилл сопоставляет человеческие формулировки вроде «тест регистрации» с точным ID эксперимента в PostHog. Для поиска он задействует инструмент experiment-list из локального MCP-сервера PostHog. Инструменты флагов функций скилл намеренно игнорирует.
Поиск идёт по именам, ключам флагов или статусам (draft, running, paused, exposure_frozen, stopped). При нескольких совпадениях модель выведет кандидатов с датами создания, чтобы вы сделали выбор. Перед удалением или запуском агент запросит подтверждение.
Скилл требует работающего MCP-сервера PostHog. Без него найти данные не выйдет.
Какие задачи решает
- найти ID эксперимента PostHog по разговорному названию
- выбрать нужный A/B-тест при совпадении нескольких имён
- проверить занятость ключа флага перед созданием эксперимента
- отфильтровать тесты по статусам и времени создания
Примеры запросов агенту
- Поставь на паузу эксперимент с новой регистрацией
- Найди самый свежий эксперимент по тарифам и покажи его статус
- Найди эксперимент по ключу флага onboarding-test
Как установить finding-experiments
1Через Skills CLI (Vercel)
npx skills add PostHog/skills --skill finding-experiments -a claude-code2Вручную: положить файлы
~/.claude/skills/finding-experiments/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/finding-experiments/
1Через Skills CLI (Vercel)
npx skills add PostHog/skills --skill finding-experiments -a codex2Вручную: положить файлы
.agents/skills/finding-experiments/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add PostHog/skills --skill finding-experiments -a cursor2Вручную: положить файлы
.cursor/skills/finding-experiments/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install PostHog/skills finding-experiments2Вручную: положить файлы
.github/skills/finding-experiments/SKILL.md1Через Skills CLI (Vercel)
npx skills add PostHog/skills --skill finding-experiments -a gemini-cli2Командой платформы
gemini skills install https://github.com/PostHog/skills --path skills/omnibus/finding-experimentsВручную: положить файлы
.devin/skills/finding-experiments/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add PostHog/skills --skill finding-experiments -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о finding-experiments
Как установить finding-experiments в Claude Code?
Выполните команду npx skills add PostHog/skills --skill finding-experiments -a claude-code. Файл навыка будет записан по пути ~/.claude/skills/finding-experiments/SKILL.md.
Что делает скилл finding-experiments?
Он преобразует неточные описания экспериментов в числовые ID через локальный MCP-инструмент experiment-list. Поиск поддерживает фильтрацию по статусам, именам и ключам связанных флагов.
Почему скилл запрещает использовать инструменты feature flags?
Инструкция запрещает вызов feature-flag-get-all, чтобы не путать обычные флаги с A/B-тестами. Для работы с экспериментами агент обращается только к специализированным инструментам experiment-list и experiment-get-by-flag-key.
Исходный текст
SKILL.md · MIT
---
name: finding-experiments
description: 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 (running, draft, paused, exposure frozen, stopped, archived), or otherwise refers to an experiment by anything other than its concrete ID.
---
# 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
```text
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
© PostHog · MIT · PostHog/skills