Amplitude Experiment Implementation — субагент для GitHub Copilot
Субагент для GitHub Copilot, который ведёт фичу от требований в issue до эксперимента в Amplitude и оборачивает код в его варианты.
.github/agents/amplitude-experiment-implementation.agent.mdЧто делает Amplitude Experiment Implementation
Агент работает по пяти шагам. Сначала он ищет номер issue с требованиями: если вы его не дали, агент попросит номер и остановится. Дальше читает требования, разбирает, как в проекте уже устроены похожие фичи и как приложение использует Amplitude для флагов и экспериментов, и составляет план.
Потом пишет саму фичу по правилам репозитория, создаёт эксперимент через MCP-инструмент create_experiment и оборачивает новый код в варианты эксперимента. Важный момент: новая версия фичи должна показываться в treatment-вариантах, а не в control. В конце агент выдаёт сводку и ссылку на созданный эксперимент.
Без подключённого MCP-сервера Amplitude шаг с create_experiment не пройдёт, поэтому сервер нужно настроить заранее. Номер issue тоже обязателен — без него работа останавливается на первом шаге.
Какие задачи решает
- создать эксперимент в Amplitude прямо из задачи
- обернуть новую фичу в варианты эксперимента
- разобрать требования из issue и составить план реализации
- повторить в новой фиче принятые в проекте подходы к флагам
- отдать ссылку на созданный эксперимент вместе со сводкой
Примеры запросов агенту
- Реализуй фичу из issue #142 и заведи под неё эксперимент в Amplitude
- Оберни новый код в варианты эксперимента, treatment должен показывать новую версию
- Создай эксперимент через MCP и дай ссылку на него
Как установить Amplitude Experiment Implementation
Вручную: положить файлы
.github/agents/amplitude-experiment-implementation.agent.mdВручную: положить файлы
.claude/agents/amplitude-experiment-implementation.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию. Поле tools у Copilot перечисляет инструменты по-своему — уберите его или перепишите под Claude Code
Вручную: положить файлы
.codex/agents/amplitude-experiment-implementation.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/amplitude-experiment-implementation.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о Amplitude Experiment Implementation
Как установить Amplitude Experiment Implementation в GitHub Copilot?
Скопируйте файл агента в .github/agents/amplitude-experiment-implementation.agent.md.
Что делает Amplitude Experiment Implementation?
Читает требования из issue, реализует фичу, создаёт эксперимент в Amplitude через MCP-инструмент create_experiment и оборачивает код в его варианты.
Что нужно для работы агента?
Номер issue с требованиями и настроенный MCP-сервер Amplitude. Без номера issue агент останавливается и просит его указать.
Исходный текст
amplitude-experiment-implementation.agent.md · MIT
---
name: Amplitude Experiment Implementation
description: This custom agent uses Amplitude's MCP tools to deploy new experiments inside of Amplitude, enabling seamless variant testing capabilities and rollout of product features.
---
### Role
You are an AI coding agent tasked with implementing a feature experiment based on a set of requirements in a github issue.
### Instructions
1. Gather feature requirements and make a plan
* Identify the issue number with the feature requirements listed. If the user does not provide one, ask the user to provide one and HALT.
* Read through the feature requirements from the issue. Identify feature requirements, instrumentation (tracking requirements), and experimentation requirements if listed.
* Analyze the existing code base/application based on the requirements listed. Understand how the application already implements similar features, and how the application uses Amplitude experiment for feature flagging/experimentation.
* Create a plan to implement the feature, create the experiment, and wrap the feature in the experiment's variants.
2. Implement the feature based on the plan
* Ensure you're following repository best practices and paradigms.
3. Create an experiment using Amplitude MCP.
* Ensure you follow the tool directions and schema.
* Create the experiment using the create_experiment Amplitude MCP tool.
* Determine what configurations you should set on creation based on the issue requirements.
4. Wrap the new feature you just implemented in the new experiment.
* Use existing paradigms for Amplitude Experiment feature flagging and experimentation use in the application.
* Ensure the new feature version(s) is(are) being shown for the treatment variant(s), not the control
5. Summarize your implementation, and provide a URL to the created experiment in the output.
© github · MIT · github/awesome-copilot