# User cohort forensics

> User cohort forensics is an open-source agent skill for analytics and data. Investigates individual Amplitude users and cohort membership through timelines. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/amplitude/mcp-marketplace/tree/main/plugins/amplitude/skills/user-cohort-forensics
- **Repository:** https://github.com/amplitude/mcp-marketplace
- **GitHub stars:** 50
- **License:** MIT
- **Skill name:** user-cohort-forensics
- **Collection:** https://github.com/amplitude/mcp-marketplace
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through analyzing specific users and populations in Amplitude. It covers resolving a user from an email, user ID, device ID or Amplitude ID, then reading that user's profile and session-aware event timeline to summarize what they did. For larger jobs it describes batching lookups, ranking users by event volume or pulling them from existing cohorts, and then sampling timelines in parallel.

The skill also provides a cohort spot-check workflow: it prefers listing or fetching existing cohorts before building new definitions, verifies named users against cohort membership, and checks their timelines for the expected markers such as purchase or checkout events. It recommends bounding timeline windows to about 30 days and filtering by event type to keep responses small, and it advises backing off on rate-limited responses rather than retrying immediately.

It relies on the Amplitude MCP tools get_amp_user_data, query_amplitude_data and use_amplitude_cohorts, so an Amplitude connection is required. The skill itself is a single SKILL.md file with no scripts.

## When your agent uses it

> Investigates individual users and user populations in Amplitude — resolve users by email/ID, read profiles, batch-analyze event timelines, spot-check cohort membership. Use for "what did user X do", attribution audits, population sampling, and email-to-user-ID resolution.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/amplitude/mcp-marketplace/tree/HEAD/plugins/amplitude/skills/user-cohort-forensics)
- [License: MIT](https://github.com/amplitude/mcp-marketplace/tree/HEAD/plugins/amplitude/skills/user-cohort-forensics)

## Features

- **Single user lookup:** Resolves a user from an email, user ID, device ID or Amplitude ID and reads their profile and timeline.
- **Session-aware timelines:** Pulls event history grouped by session so the agent can summarize a user's journey.
- **Batched population analysis:** Describes ranking or filtering a user set, then sampling timelines in parallel batches.
- **Cohort membership checks:** Lists existing cohorts and verifies that specific users belong to them against their event markers.
- **Email to ID resolution:** Converts uploaded email lists into Amplitude user IDs in batches of up to ten identifiers.
- **Identity ambiguity handling:** Asks the agent to state which identity was resolved and to flag users matching multiple IDs.

## Good for

- Show what a specific customer did in the product over the last month
- Audit whether users attributed to a campaign actually performed the purchase event
- Sample a set of high-volume users and summarize their common journeys
- Convert a list of customer emails into Amplitude user IDs
- Verify that a sample of users really belongs to a given cohort

## Install

### Claude Code

This skill ships in the `amplitude` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add amplitude/mcp-marketplace
/plugin install amplitude@amplitude
```

Or copy only this skill to `~/.claude/skills/user-cohort-forensics`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/user-cohort-forensics &&
cp -R "$tmp/plugins/amplitude/skills/user-cohort-forensics" ~/.claude/skills/user-cohort-forensics &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/user-cohort-forensics` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/user-cohort-forensics` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/user-cohort-forensics &&
cp -R "$tmp/plugins/amplitude/skills/user-cohort-forensics" ~/.agents/skills/user-cohort-forensics &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/user-cohort-forensics` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/user-cohort-forensics` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/user-cohort-forensics &&
cp -R "$tmp/plugins/amplitude/skills/user-cohort-forensics" ~/.cursor/skills/user-cohort-forensics &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/user-cohort-forensics` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/amplitude/mcp-marketplace.git --path plugins/amplitude/skills/user-cohort-forensics
```

Or copy the folder to `~/.gemini/skills/user-cohort-forensics` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/user-cohort-forensics`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/user-cohort-forensics &&
cp -R "$tmp/plugins/amplitude/skills/user-cohort-forensics" ~/.copilot/skills/user-cohort-forensics &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/user-cohort-forensics` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git
```

Then copy `mcp-marketplace/plugins/amplitude/skills/user-cohort-forensics` into your agent's skills folder as `user-cohort-forensics`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses the Amplitude MCP tools get_amp_user_data, query_amplitude_data and use_amplitude_cohorts, so it needs access to an Amplitude project through those tools.

### Does User cohort forensics change any data in Amplitude?

The skill describes read-oriented lookups such as resolving IDs, reading profiles and timelines, and listing or checking cohorts. It does not describe writing or modifying data.

### How does User cohort forensics handle rate limits?

Rate-limit failures are flagged as retryable with a retryAfterMs value, and the skill tells the agent to back off for that period instead of retrying repeatedly.

### What happens when an email matches more than one user?

The skill instructs the agent to say which identity it resolved and to flag ambiguous matches rather than choosing one silently.

### How do I install User cohort forensics in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/user-cohort-forensics to use it in all your projects, or to .claude/skills/user-cohort-forensics in one project. Or install the amplitude plugin, which includes it: /plugin marketplace add amplitude/mcp-marketplace, then /plugin install amplitude@amplitude.

### Does User cohort forensics run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use User cohort forensics?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to User cohort forensics?

The closest alternatives to User cohort forensics are Live data forensics, Compare user journeys, Analyze account health, Analyze dashboard and Use MCP analytics.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Live data forensics](https://ai-powered.com/skills/live-data-forensics): Live data forensics is an open-source agent skill for analytics and data.
- [Compare user journeys](https://ai-powered.com/skills/compare-user-journeys): Compare user journeys is an open-source agent skill for analytics and data.
- [Analyze account health](https://ai-powered.com/skills/analyze-account-health): Analyze account health is an open-source agent skill for analytics and data.
- [Analyze dashboard](https://ai-powered.com/skills/analyze-dashboard): Analyze dashboard is an open-source agent skill for analytics and data.
- [Use MCP analytics](https://ai-powered.com/skills/use-mcp-analytics): Use MCP analytics is an open-source agent skill for analytics and data.
- [Analyze experiments](https://ai-powered.com/skills/analyze-experiments): Analyze experiments is an open-source agent skill for analytics and data.
- [Getting started with amplitude](https://ai-powered.com/skills/getting-started-with-amplitude): Getting started with amplitude is an open-source agent skill for analytics and data.
- [Create chart](https://ai-powered.com/skills/create-chart): Create chart is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/user-cohort-forensics
