diagnose-errors
БесплатноБез исполняемых скриптовНе проверен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…
от amplitude★ 50 звёзд на GitHubОб этом скилле
Error Diagnosis & Triage
Investigate product errors by triaging across three auto-captured event types — [Amplitude] Network Request, [Amplitude] Error Logged, and [Amplitude] Error Click — to identify what's broken, which users are affected, and what's causing it. This skill cross-references all three signals to surface causal chains (failed request → JS error → user frustration) rather than treating each in isolation.
This is a reactive investigation skill — the user has a signal (spike, complaint, experiment regression, gut feeling) and wants to understand what's happening. For proactive monitoring, use the monitor-reliability skill instead.
CRITICAL: Event Reference
These are the three auto-captured events this skill operates on. Never guess property names — use exactly these.
[Amplitude] Network Request — Browser network requests.
Key properties: [Amplitude] URL, [Amplitude] Status Code, [Amplitude] Duration, [Amplitude] Request Method, [Amplitude] Request Type, [Amplitude] Request Body Size, [Amplitude] Response Body Size, [Amplitude] Start Time, [Amplitude] Completion Time, [Amplitude] Page Path.
[Amplitude] Error Logged — JavaScript errors.
Key properties: Error Message, Error Type, Error URL, File Name, Error Lineno, Error Colno, Error Stack Trace, [Amplitude] Error Detection Source.
[Amplitude] Error Click — Clicks on error-associated UI elements.
Key properties: [Amplitude] Message, [Amplitude] Kind, [Amplitude] Filename, [Amplitude] Line Number, [Amplitude] Column Number, [Amplitude] Element Text, [Amplitude] Element Tag, [Amplitude] Element Hierarchy.
All three share: [Amplitude] Page Path, [Amplitude] Page URL, [Amplitude] Session Replay ID.
Instructions
Step 1: Context & Scope
- Call
Amplitude:get_amplitude_context. If multiple projects, ask which to investigate. - Determine the investigation scope from the user's request:
- Broad triage: "What's broken?" → scan all three event types for the biggest problems
- Targeted: "Network errors are up" → start with
[Amplitude] Network Request, then check if they cascade into JS errors - Specific error: "Users are seeing TypeError" → start with
[Amplitude] Error Logged, filtered to that error
- Determine the time window. Default to the last 7 days with daily granularity unless the user specifies otherwise. If they mention a deploy or date, anchor to that.
Step 2: Quantify the Error Landscape
Run these in parallel where possible. Budget: 4-6 calls for this step.
2a. Network Failures
Use Amplitude:query_amplitude_data to query [Amplitude] Network Request:
- Failure rate trend. Filter
[Amplitude] Status Codeto 4xx and 5xx ranges. Measure daily event counts and unique users. Compare to total network request volume for a failure rate percentage. - Top failing endpoints. Group by
[Amplitude] URLto rank which APIs fail most. Include[Amplitude] Status Codeas a secondary grouping to distinguish 401s (auth) from 500s (server errors) from 404s (missing). - Slow endpoints (if relevant). If the user mentions performance or slowness, measure
[Amplitude] Durationby[Amplitude] URL. Flag P95 > 3s or mean > 1s.
2b. JavaScript Errors
Use Amplitude:query_amplitude_data to query [Amplitude] Error Logged:
- Error volume trend. Daily error count and unique users affected over the time window. Flag day-over-day spikes >25%.
- Top errors. Group by
Error Messageto find the highest-volume errors. IncludeError TypeandFile Namefor context. - New vs. chronic. Compare errors in the recent window to the prior period. Errors that appear only in the recent window are likely regressions. Errors present in both are chronic tech debt.
2c. Error Clicks (Frustration Signal)
Use Amplitude:query_amplitude_data to query [Amplitude] Error Click:
- Volume trend. Daily error click count. Spikes indicate users are actively encountering and engaging with error states.
- What users are clicking. Group by
[Amplitude] Element Textor[Amplitude] Messageto see which error UI elements get the most interaction.
Step 3: Cross-Event Correlation
This is where the skill adds value beyond looking at each event in isolation.
Failed request → JS error chain. Compare the timing and pages of network failures (Step 2a) with JS errors (Step 2b). If the same pages have both 5xx network failures AND JS errors, the network failure is likely the root cause. Use
[Amplitude] Page Pathas the join dimension.Error → frustration chain. Compare JS error pages with error click pages. High error click volume on pages with high JS error rates confirms users are seeing and interacting with the broken experience.
Page-level triage. Use
Amplitude:query_amplitude_datato group all three events by[Amplitude] Page Path. Produce a page-l
Установить diagnose-errors в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл diagnose-errors?
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.
Как установить скилл diagnose-errors?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл diagnose-errors запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic