# Debug replay

> Debug replay is an open-source agent skill for developer tools. Turns bug reports into numbered repro steps from Amplitude Session Replay data. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/amplitude/mcp-marketplace/tree/main/plugins/amplitude/skills/debug-replay
- **Repository:** https://github.com/amplitude/mcp-marketplace
- **GitHub stars:** 50
- **License:** MIT
- **Skill name:** debug-replay
- **Collection:** https://github.com/amplitude/mcp-marketplace
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

Debug Replay is an instruction set for investigating software bugs with Amplitude's Session Replay tools. The agent searches for sessions that logged an error, pulls the interaction timeline for each one (page navigations, clicks, inputs, scrolls), and compares those timelines to find the action sequence that tends to come before the failure.

The workflow confirms the error event exists in the project, optionally looks up a specific user, and checks recent deployments when an error spike needs context. The output is an engineering-style report with a bug summary, environment details, copy-ready reproduction steps, expected and actual behavior, replay links, and a confidence level based on how many sessions show the same path.

The skill depends on the Amplitude MCP tools for session replay, cohorts, taxonomy lookup and feature flag deployments. It has no bundled scripts and no tool restrictions are declared. Because DOM node IDs cannot be mapped to element names, interactions are described by position and sequence instead.

## When your agent uses it

> Turns bug reports into reproducible steps by finding error sessions in Amplitude Session Replay, extracting interaction timelines, and identifying the common action sequence that precedes the failure. Use when a user reports a bug, an error event spikes, someone says "how do I reproduce this", "what happened to user X", "repro steps", or you need to understand what a user did before an error occurred.

## 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/debug-replay)
- [License: MIT](https://github.com/amplitude/mcp-marketplace/tree/HEAD/plugins/amplitude/skills/debug-replay)

## Features

- **Error session search:** Finds replay sessions where a chosen error event or error message appears, filtered by user or time window.
- **Interaction timeline extraction:** Decodes replays into navigations, clicks, inputs and scrolls for each matched session.
- **Common path analysis:** Compares several timelines to isolate the shared action sequence leading up to a failure.
- **Deployment correlation:** Checks recent deployments to see whether an error spike lines up with a release.
- **Structured repro report:** Produces numbered steps, expected versus actual behavior, and replay links with a confidence rating.

## Good for

- Turn a customer's bug report into step-by-step reproduction instructions
- Find out what a specific user did before a JavaScript error occurred
- Investigate a spike in TypeError events and identify the triggering flow
- Check whether a recent deployment lines up with a new error pattern
- Pull replay evidence for a bug ticket

## 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/debug-replay`:

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

For one project only, put the folder in `.claude/skills/debug-replay` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/debug-replay` 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/debug-replay &&
cp -R "$tmp/plugins/amplitude/skills/debug-replay" ~/.agents/skills/debug-replay &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/debug-replay` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/debug-replay` 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/debug-replay &&
cp -R "$tmp/plugins/amplitude/skills/debug-replay" ~/.cursor/skills/debug-replay &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/debug-replay` 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/debug-replay
```

Or copy the folder to `~/.gemini/skills/debug-replay` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/debug-replay` 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/debug-replay` into your agent's skills folder as `debug-replay`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need to use Debug replay?

It relies on the Amplitude MCP tools for session replay, cohort lookup, taxonomy reading and deployment listing, plus a connected Amplitude project.

### When does Debug replay trigger?

The description says it applies when a user reports a bug, an error event spikes, someone asks for repro steps, or the agent needs to know what a user did before an error.

### Does Debug replay change anything in my project?

The skill describes read-only lookups of sessions, events, users and deployments. It does not describe writing data.

### Can Debug replay name the exact button a user clicked?

No. Replay events return DOM node IDs, so the skill describes interactions by screen position, page and sequence.

### How do I install Debug replay in Claude Code?

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

### Does Debug replay 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 Debug replay?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Debug replay?

The closest alternatives to Debug replay are Investigate AI session, Diagnosing bugs, Debugging and error recovery, Debug issue and Debug.

## Where this comes from

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

## Alternatives

- [Investigate AI session](https://ai-powered.com/skills/investigate-ai-session): Investigate AI session is an open-source agent skill for developer tools.
- [Diagnosing bugs](https://ai-powered.com/skills/diagnosing-bugs): Diagnosing bugs is an open-source agent skill for developer tools.
- [Debugging and error recovery](https://ai-powered.com/skills/debugging-and-error-recovery): Debugging and error recovery is an open-source agent skill for developer tools.
- [Debug issue](https://ai-powered.com/skills/debug-issue): Debug issue is an open-source agent skill for developer tools.
- [Debug](https://ai-powered.com/skills/debug-tansuasici): Debug is an open-source agent skill for developer tools.
- [Deassemble](https://ai-powered.com/skills/deassemble): Deassemble is an open-source agent skill for developer tools.
- [Diagnose loop](https://ai-powered.com/skills/diagnose-loop): Diagnose loop is an open-source agent skill for developer tools.
- [Customer issue to fix](https://ai-powered.com/skills/customer-issue-to-fix): Customer issue to fix is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/debug-replay
