Skip to content
Skill

Diagnose errors

Triages product errors across network failures, JS errors and error clicks

Diagnose errors is an open-source agent skill for analytics and data. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
50
Last commit
License
MIT
Listing updated

Similar skills

About Diagnose errors

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.

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 (12 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@amplitude

Or copy only this skill to ~/.claude/skills/diagnose-errors:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/diagnose-errors 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/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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/diagnose-errors 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/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.

Cursor docs on skills

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/diagnose-errors

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from amplitude/mcp-marketplace

  1. Breaks down an Amplitude chart to explain a spike, drop or unusual trend

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

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

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

    • Open source
    • 50 GitHub stars
    • Analytics and data
  5. Turns code changes in a PR, branch, file or feature into an analytics tracking plan

    • Open source
    • 50 GitHub stars
    • Analytics and data