# Diagnose errors

> Diagnose errors is an open-source agent skill for analytics and data. Triages product errors across network failures, JS errors and error clicks. 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/diagnose-errors
- **Repository:** https://github.com/amplitude/mcp-marketplace
- **GitHub stars:** 50
- **License:** MIT
- **Skill name:** diagnose-errors
- **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 investigates reactive reliability problems by pulling three auto-captured Amplitude event types, browser network requests, JavaScript error logs and clicks on error UI, and cross-referencing them by page. The aim is to link a failing request to the JavaScript error it triggers and the user clicks that follow, rather than reading each signal on its own.

The workflow scopes the request (broad triage, a specific endpoint or a particular error message), sets a default seven-day window and then quantifies volume, trends, top failing endpoints and top error messages. It classifies pages into critical, frontend-bug, backend-handled or silent-error groups, estimates affected users and segments, and checks recent deployments, experiments and user feedback before forming a root cause hypothesis.

It expects an Amplitude project with Session Replay or autocapture enabled and uses Amplitude MCP tools for context, queries, session replay search, flags, experiments and feedback. The output is a triage report with severity ratings and recommended actions.

## When your agent uses it

> Investigates errors across network failures, JavaScript errors, and error clicks to identify what's broken, where, and why. Use when the user says "what's broken", "errors are up", "why are users seeing errors", "JS errors", "network failures", "5xx spike", "something is broken", or wants to triage product reliability issues.

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

## Features

- **Network failure analysis:** Tracks 4xx and 5xx request rates and ranks failing endpoints by status code.
- **JavaScript error tracking:** Groups logged errors by message, type and file to surface the most frequent failures.
- **Error click monitoring:** Measures clicks on error-associated UI to gauge how users experience failures.
- **Cross-signal correlation:** Joins network, error and click data by page to reveal causal chains.
- **Severity classification:** Rates findings as critical, high, medium or low based on user impact.
- **Deployment and experiment checks:** Compares error spikes against recent deploys and experiment variants.
- **Session replay discovery:** Finds replay sessions containing the top error pattern for direct inspection.

## Good for

- What's broken in our product right now?
- Errors went up after yesterday's deploy, what changed?
- Why are users seeing TypeErrors in the chart builder?
- Find the 5xx endpoints causing JavaScript errors this week
- Show me replays of users who hit the most common error

## 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/diagnose-errors`:

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

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/diagnose-errors` yourself.

### VS Code

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

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

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

## FAQ

### What does Diagnose errors need to run?

It needs an Amplitude project with the auto-captured Network Request, Error Logged and Error Click events, which require Session Replay or the autocapture plugin. The skill reports clearly when these events are missing.

### When does Diagnose errors trigger?

It triggers on phrases such as what's broken, errors are up, JS errors, network failures, 5xx spike or requests to triage product reliability issues.

### Does Diagnose errors change anything in my project?

The skill describes investigative queries and reports. It does not state that it modifies code or configuration.

### What is the default time window?

It defaults to the last seven days with daily granularity unless the user specifies another period or a deploy date.

### How do I install Diagnose errors in Claude Code?

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

### Does Diagnose errors 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 Diagnose errors?

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 Diagnose errors?

The closest alternatives to Diagnose errors are Monitor reliability, Live data forensics, Monitor experiments consolidated, Analyze chart and Monitor experiments.

## Where this comes from

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

## Alternatives

- [Monitor reliability](https://ai-powered.com/skills/monitor-reliability): Monitor reliability is an open-source agent skill for analytics and data.
- [Live data forensics](https://ai-powered.com/skills/live-data-forensics): Live data forensics is an open-source agent skill for analytics and data.
- [Monitor experiments consolidated](https://ai-powered.com/skills/monitor-experiments-consolidated): Monitor experiments consolidated is an open-source agent skill for analytics and data.
- [Analyze chart](https://ai-powered.com/skills/analyze-chart): Analyze chart is an open-source agent skill for analytics and data.
- [Monitor experiments](https://ai-powered.com/skills/monitor-experiments): Monitor experiments 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.
- [Discover opportunities](https://ai-powered.com/skills/discover-opportunities): Discover opportunities is an open-source agent skill for analytics and data.

---
Source: https://ai-powered.com/skills/diagnose-errors
