Debug Replayのロゴ

Debug Replay

組織
amplitude
debug-replay

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.

概要

公開者amplitude
リポジトリmcp-marketplace
スキル名debug-replay
スター
47
フォーク
12
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    amplitudeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDebug ReplayをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/amplitude/mcp-marketplace/tree/main/plugins/amplitude/skills/debug-replay
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/amplitude/mcp-marketplace.git /tmp/mcp-marketplace
mkdir -p .claude/skills
cp -r /tmp/mcp-marketplace/plugins/amplitude/skills/debug-replay .claude/skills/debug-replay
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDebug Replayを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDebug Replayを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Debug Replayは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Debug Replay

Investigate bugs by finding session replays where the error occurred, extracting the interaction timeline, and distilling it into numbered reproduction steps an engineer can follow. This skill bridges the gap between "a user reported a bug" and "here's exactly how to reproduce it."


CRITICAL: Tool Reference

This skill operates on three Amplitude Session Replay tools. Use them in this order:

  1. Amplitude:get_amp_session_replay_info with action: "search" — Find sessions matching event filters (errors, specific users, time windows). Returns session metadata and replay links.
  2. Amplitude:get_amp_session_replay_info with action: "list" — Simple paginated listing when you already have a user/device ID or just need recent sessions. Returns a session replay ID in device_id/session_id format.
  3. Amplitude:get_amp_session_replay_info with action: "events" — Decode a specific replay into an interaction timeline: navigations, clicks, inputs, scrolls. Pass the ID from the tools above as sessionReplayId.

Supporting tools used in this skill:

  • Amplitude:use_amplitude_cohorts with action: "find" — Look up users by email, user ID, or other identifiers.
  • Available taxonomy reader — Inspect the connected catalog and use its event and event-property read capabilities to discover valid filter names. Never guess names or copy parameters from an older schema.
  • Amplitude:use_amp_flags with action: "list_deployments" — Check if error aligns with a recent deploy.

Instructions

Step 1: Understand the Bug Report

Parse the user's request to extract:

  • Error identifier: Error message, error event name, or event type (e.g., [Amplitude] Error Logged, a custom error event)
  • User identifier (if provided): Email, user ID, device ID, or account name
  • Time window: When it was reported or when it started. Default to last 7 days if unspecified.
  • Product area (if mentioned): Page, feature, or flow where the bug occurs

If the report is vague (e.g., "something is broken in checkout"), ask one clarifying question before proceeding. Do not ask more than one.

Step 2: Get Context and Find the Error Event

  1. Call Amplitude:get_amplitude_context. If multiple projects, ask which to investigate.
  2. Use the catalog's taxonomy reader to confirm the exact error event name exists in the project. Common patterns:
    • [Amplitude] Error Logged — auto-captured JS errors
    • [Amplitude] Network Request with status code filters — API failures
    • Custom error events specific to the product
  3. If a user identifier was provided, call Amplitude:use_amplitude_cohorts with action: "find" to look up the user and get their user ID and device ID.

Step 3: Find Error Sessions

Use Amplitude:get_amp_session_replay_info with action: "search" to find sessions where the error occurred. Build filters based on what you know:

If you have a specific user:

json
{
  "action": "search",
  "projectId": "12345",
  "userProperties": [{"name": "gp:email", "is": "user@example.com"}],
  "events": [{"name": "[Amplitude] Error Logged"}],
  "limit": 5
}

If you have an error message but no specific user:

json
{
  "action": "search",
  "projectId": "12345",
  "events": [
    {
      "name": "[Amplitude] Error Logged",
      "withProperty": {"name": "Error Message", "contains": "TypeError"}
    }
  ],
  "limit": 5
}

Request 3-5 sessions. More sessions give better pattern extraction; fewer saves context.

Step 4: Extract Interaction Timelines

For each session found in Step 3, call Amplitude:get_amp_session_replay_info with action: "events" and the sessionReplayId.

  • Use event_limit: 500 for standard sessions
  • Use event_limit: 200 if analyzing 4+ sessions (to manage context)

What to capture from each timeline:

  • Page navigations (URLs visited)
  • Clicks and inputs leading up to the error point
  • Any unusual patterns: rapid repeated clicks (rage clicks), long pauses, back-and-forth navigation
  • The approximate timestamp where the error likely occurred (look for the last meaningful action before the session ends or the user navigates away in frustration)

Step 5: Extract Common Repro Path

This is the core analytical step. Compare the timelines from multiple sessions to find the common prefix — the shared sequence of actions that precedes the error.

  1. Align timelines by the error point. Work backwards from where the error appears to occur.
  2. Identify shared actions. Look for the same sequence of page navigations, clicks, and inputs across sessions.
  3. Note divergences. Where timelines differ, note the variations — these may indicate multiple trigger paths or optional steps.
  4. Simplify. Collapse repeated or irrelevant actions (e.g., scrolling) into the minimal set of steps needed.

If only 1 session is available, extract the timeline as-is and note that it hasn't been validated across multiple sessions.

Step 6: Check Deployment Context

Call Amplitude:use_amp_flags with action: "list_deployments" once. If an error spike aligns with a recent deploy, note it — this is critical context for the engineer.

Step 7: Present Reproduction Steps

Structure the output as an engineering-ready bug report.

Required sections:

  1. Bug Summary (1-2 sentences): What's broken, who's affected, since when. Written as a headline an engineer would put in a ticket title.

  2. Environment Context:

    • Project and platform
    • Time window investigated
    • Number of sessions analyzed
    • Related deployment (if found)
  3. Reproduction Steps — Numbered, specific, copy-paste-ready:

## Reproduction Steps

1. Navigate to [URL]
2. Click [element/area description] at [approximate location]
3. Enter "[value]" in [field description]
4. Click [element/area description]
5. Observe: [error behavior — what the user sees]

**Expected:** [what should happen]
**Actual:** [what happens instead]
  1. Error Context (if available):

    • Error message / type
    • Failing endpoint (if network error)
    • Page where error occurs
  2. Session Evidence:

    • Replay links for each analyzed session (clickable)
    • Confidence level: High (3+ sessions show same path), Medium (2 sessions), Low (1 session only)
    • Note any variations between sessions
  3. Observations (optional): Patterns that may help debugging — rage clicks suggesting UI unresponsiveness, long pauses suggesting loading issues, specific input values that trigger the error.


Edge Cases

  • No error events found. The project may not have auto-capture enabled, or the error may be tracked under a custom event name. Use the available taxonomy event reader to search for error-related events. Report what you find and suggest what to instrument if nothing exists.
  • User not found. If use_amplitude_cohorts with action: "find" returns nothing, try searching with alternative identifiers (email domain, partial match). If still nothing, proceed without user filtering and search by error event alone.
  • Sessions found but no replay events. Some sessions may not have rrweb data (replay disabled, ad blocker, etc.). Skip those sessions and note it. Try the next session.
  • Only 1 session available. Present the timeline as "unvalidated reproduction steps" with Low confidence. Suggest the user try to reproduce manually to confirm.
  • Error is intermittent. If sessions show different paths to the same error, present them as separate reproduction paths: "Path A (seen in 3/5 sessions)" and "Path B (seen in 2/5 sessions)."
  • nodeId values can't be resolved. get_amp_session_replay_info with action: "events" returns DOM node IDs, not element names. Describe interactions by position (x, y coordinates), page context, and sequence rather than element identity. Use phrasing like "click in the upper-right area of the form" rather than "click the Submit button" unless you can infer from context.

Examples

Example 1: User-Reported Bug

User says: "Customer jane@acme.com says the export button doesn't work"

Actions:

  1. Get context and confirm project
  2. Look up jane@acme.com via use_amplitude_cohorts with action: "find"
  3. Find her recent sessions with get_amp_session_replay_info action: "search" filtered to her email + any error events
  4. Extract interaction timelines from 2-3 sessions
  5. Identify the common path: navigates to reports → clicks export → nothing happens (or error)
  6. Present numbered repro steps with replay links

Example 2: Error Spike Investigation

User says: "TypeError errors doubled yesterday, can you get repro steps?"

Actions:

  1. Get context, confirm [Amplitude] Error Logged exists
  2. Find sessions with TypeError in the last 48 hours via get_amp_session_replay_info action: "search"
  3. Extract timelines from 3-5 sessions
  4. Compare timelines to find the common action sequence before the TypeError
  5. Check deployments for what shipped yesterday
  6. Present repro steps anchored to the deployment

Example 3: Vague Bug Report

User says: "Users are having trouble with checkout"

Actions:

  1. Ask one clarifying question: "Do you have a specific error event or user in mind, or should I look for any errors on checkout pages?"
  2. Search for error events on checkout-related pages
  3. Find sessions, extract timelines, identify friction patterns
  4. Present repro steps for the most common failure path

よくある質問

AIスキル「Debug Replay」では何ができますか?

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.

TypingMindでDebug Replayを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Debug Replayはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDebug Replayをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/amplitude/mcp-marketplace/tree/main/plugins/amplitude/skills/debug-replayを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Debug Replayを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Debug Replayは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDebug Replayを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Debug Replay」は無料ですか?

はい。amplitudeがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇