Pins this version in aipm.package.json and aipm-lock.json.
aipm add @amplitude/debug-replay@1.0.0
Without project tracking
Writes the skill files only. Add --no-init to skip aipm.package.json and the lockfile.
aipm add @amplitude/debug-replay@1.0.0 --no-init
How to use
Install the skill above, then run this in your AI tool:
/debug-replay <your description>
About
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."
Source
What gets added to your project
Preview every file this package writes on install before you run the command above.
Summary
>
Skill instructions
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_info with action: "search" — Find sessions matching event filters (errors, specific users, time windows). Returns session metadata and replay links.
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.
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
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:
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.
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 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:
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.
## 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]
Error Context (if available):
Error message / type
Failing endpoint (if network error)
Page where error occurs
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
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:
Get context and confirm project
Look up jane@acme.com via use_amplitude_cohorts with action: "find"
Find her recent sessions with get_amp_session_replay_infoaction: "search" filtered to her email + any error events
Extract interaction timelines from 2-3 sessions
Identify the common path: navigates to reports → clicks export → nothing happens (or error)
Present numbered repro steps with replay links
Example 2: Error Spike Investigation
User says: "TypeError errors doubled yesterday, can you get repro steps?"
Actions:
Get context, confirm [Amplitude] Error Logged exists
Find sessions with TypeError in the last 48 hours via get_amp_session_replay_infoaction: "search"
Extract timelines from 3-5 sessions
Compare timelines to find the common action sequence before the TypeError
Check deployments for what shipped yesterday
Present repro steps anchored to the deployment
Example 3: Vague Bug Report
User says: "Users are having trouble with checkout"
Actions:
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?"
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/amplitude/debug-replay/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@amplitude/debug-replay@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: >
Run aipm add @amplitude/debug-replay@1.0.0 in a project that has AIPM initialized.
Supported tools
@amplitude/debug-replay@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.