debug-replay
БесплатноБез исполняемых скриптовНе проверенTurns bug reports into reproducible steps by finding error sessions in Amplitude Session Replay, extracting interaction timelines, and identifying the common…
от amplitude★ 50 звёзд на GitHubОб этом скилле
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:
Amplitude:get_amp_session_replay_infowithaction: "search"— Find sessions matching event filters (errors, specific users, time windows). Returns session metadata and replay links.Amplitude:get_amp_session_replay_infowithaction: "list"— Simple paginated listing when you already have a user/device ID or just need recent sessions. Returns a session replay ID indevice_id/session_idformat.Amplitude:get_amp_session_replay_infowithaction: "events"— Decode a specific replay into an interaction timeline: navigations, clicks, inputs, scrolls. Pass the ID from the tools above assessionReplayId.
Supporting tools used in this skill:
Amplitude:use_amplitude_cohortswithaction: "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_flagswithaction: "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
- Call
Amplitude:get_amplitude_context. If multiple projects, ask which to investigate. - 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 Requestwith status code filters — API failures- Custom error events specific to the product
- If a user identifier was provided, call
Amplitude:use_amplitude_cohortswithaction: "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:
{
"action": "search",
"projectId": "12345",
"userProperties": [{"name": "gp:email", "is": "[email protected]"}],
"events": [{"name": "[Amplitude] Error Logged"}],
"limit": 5
}
If you have an error message but no specific user:
{
"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: 500for standard sessions - Use
event_limit: 200if 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.
- Align timelines by the error point. Work backwards from where the error appears to occur.
- Identify shared actions. Look for the same sequence of page navigations, clicks, and inputs across sessions.
- Note divergences. Where timelines differ, note the variations — these may indicate multiple trigger paths or optional steps.
- 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 m
Установить debug-replay в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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.
Как установить скилл debug-replay?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл debug-replay запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic