
User cohort forensics
Investigates individual Amplitude users and cohort membership through timelines
User cohort forensics is an open-source agent skill for analytics and data. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 50
- Last commit
- License
- MIT
- Listing updated
Similar skills
About User cohort forensics
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (2 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the amplitude plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add amplitude/mcp-marketplace
/plugin install amplitude@amplitudeOr copy only this skill to ~/.claude/skills/user-cohort-forensics:
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.
Copy the skill folder to ~/.agents/skills/user-cohort-forensics to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/user-cohort-forensics to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/amplitude/mcp-marketplace.git --path plugins/amplitude/skills/user-cohort-forensicsOr copy the folder to ~/.gemini/skills/user-cohort-forensics yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/user-cohort-forensics:
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.
Get the folder:
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.gitThen 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.
What it does
- 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
User cohort forensics 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.
More from amplitude/mcp-marketplace

Breaks down an Amplitude chart to explain a spike, drop or unusual trend
- Open source
- 50 GitHub stars
- Analytics and data

Triages product errors across network failures, JS errors and error clicks
- Open source
- 50 GitHub stars
- Analytics and data

Scans Amplitude experiments, triages them by importance and reports on the key ones
- Open source
- 50 GitHub stars
- Analytics and data

Copies tracking-plan events between Amplitude projects via CSV import and branch review
- Open source
- 50 GitHub stars
- Analytics and data

Orchestrates batched audits of missing Amplitude event descriptions via worker subagents
- Open source
- 50 GitHub stars
- Analytics and data

Onboards you to Amplitude's Grok bot: connects MCP servers, checks project access, picks
- Open source
- 50 GitHub stars
- Analytics and data

