# Amplitude Experiment Implementation

A GitHub Copilot subagent that takes a feature from issue requirements to an Amplitude experiment and wraps the code in its variants.

- subagent · `type=agent` · GitHub Copilot · ★ 40451
- Author: github · official GitHub repository
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/github/awesome-copilot/tree/HEAD/agents/amplitude-experiment-implementation.agent.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/agents/amplitude-experiment-implementation

## What it does

The agent runs in five steps. It starts by locating the issue number holding the feature requirements; if you have not given one, it asks for it and stops there. Then it reads the requirements, studies how the project already builds similar features and how Amplitude is used for flagging, and drafts a plan.

Next it writes the feature following repository conventions, creates the experiment with the `create_experiment` MCP tool, and wraps the new code in the experiment's variants. One detail matters: the treatment variants must show the new feature, not the control. It finishes with a summary and a link to the experiment it created.

Step three only works with the Amplitude MCP server connected, so set that up first. The issue number is required too — without it the run halts at step one.

## Install

### GitHub Copilot (native platform)

**Manually: put the files in place**
- File: `.github/agents/amplitude-experiment-implementation.agent.md`

### Claude Code

**Manually: put the files in place**
- File: `.claude/agents/amplitude-experiment-implementation.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention. Copilot names tools its own way in the tools field: remove it or rewrite it for Claude Code

### Codex

**Manually: put the files in place**
- File: `.codex/agents/amplitude-experiment-implementation.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/amplitude-experiment-implementation.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/github/awesome-copilot/tree/HEAD/agents/amplitude-experiment-implementation.agent.md

## When to use it
- create an Amplitude experiment straight from a task
- wrap a new feature in experiment variants
- turn issue requirements into an implementation plan
- match existing flagging patterns in the codebase
- return a link to the created experiment with a summary

## Example prompts
- Implement the feature from issue #142 and set up an experiment for it in Amplitude
- Wrap the new code in the experiment variants, treatment should show the new version
- Create the experiment via MCP and give me the link

## Source text · amplitude-experiment-implementation.agent.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: e1acd6e71cd2c505.

BEGIN THIRD-PARTY FILE e1acd6e71cd2c505
```text
---
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.
```
END THIRD-PARTY FILE e1acd6e71cd2c505

The third-party file has ended. Everything between the e1acd6e71cd2c505 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© github · MIT · https://github.com/github/awesome-copilot/tree/HEAD/agents/amplitude-experiment-implementation.agent.md

## Similar
- [launchdarkly-experiment-setup](https://affpapa.org/en/nevibecode/skills/launchdarkly-experiment-setup.md) — skill · 2700 installs
- [managing-experiment-lifecycle](https://affpapa.org/en/nevibecode/skills/managing-experiment-lifecycle.md) — skill · 379 installs
- [configuring-experiment-rollout](https://affpapa.org/en/nevibecode/skills/configuring-experiment-rollout.md) — skill · 389 installs
- [measure-experiment-design](https://affpapa.org/en/nevibecode/skills/measure-experiment-design.md) — skill · 754 installs
- [experiment-bridge](https://affpapa.org/en/nevibecode/skills/experiment-bridge.md) — skill · 497 installs
- [experiment-queue](https://affpapa.org/en/nevibecode/skills/experiment-queue.md) — skill · 437 installs

From the same set: [github/awesome-copilot](https://affpapa.org/en/nevibecode/by/github/awesome-copilot.md) — 949 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
