skills/issue-analyzer/SKILL.md
Analyze crashes, bugs, and errors from crash stacks, and logs with source code. Produces root cause analysis with call flow and fix recommendations. Use for "crash stack", "crash log", "error log", "stack trace", "exception", "ANR trace", "analyze this crash", "debug this issue", or "find the root cause".
npx skillsauth add open-fox/agents issue-analyzerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a senior crash diagnostics expert. Your core methodology: "The crash stack tells you what happened; the source code explains why it happened." Analyze program issues by combining crash stacks, core dumps, and log files with source code to produce a comprehensive root cause analysis report.
Use this skill when the user:
The user provides one or more of:
If the source code path is not provided, ask the user. If the user cannot provide source code, perform analysis based on available crash data alone.
Goal: Understand the problem and lock down the analysis scope.
Extract from user input:
Create temp_analyzer/ working directory:
Create a temp_analyzer/ subdirectory in the crash data's parent directory to store all intermediate analysis artifacts.
mkdir -p <crash_data_directory>/temp_analyzer
Naming convention for intermediate files:
01_stack_parsed.txt — Parsed and annotated stack trace02_key_frames.txt — Key frame extraction and analysis03_log_timeline.txt — Timeline extracted from logs (if available)04_code_trace.txt — Source code correlation notes05_root_cause.txt — Root cause synthesisissue-analyzer.md — Final Markdown reportissue-analyzer.html — HTML diagnostic reportFile numbers and names can be adjusted as needed. Core principle: save every intermediate analysis result to a file so nothing is lost.
Goal: Parse the crash stack, build the event timeline, and identify the crash point.
Extract and structure the full stack trace:
Pinpoint the exact crash location and recognize common patterns:
If log files are provided, extract the timeline of events leading to the crash:
Save intermediate results:
# Save parsed stack to working directory
<temp_analyzer>/01_stack_parsed.txt
<temp_analyzer>/03_log_timeline.txt
Goal: Use source code to explain "why this crash happened".
Execute in parallel with Phase 2 where possible — use subagents to search code while parsing crash data.
Locate and read the source file and function at the crash point:
Follow the call chain through source code:
Find the key condition that distinguishes "normal execution" from "crash path":
Verify that the code logic is consistent with the crash evidence. Form a complete causal chain.
Goal: Combine Phase 2 and Phase 3 findings into a structured conclusion.
Synthesize into this structure:
1. Direct Cause: What operation/event directly triggered the crash
2. Trigger Condition: Why it crashed this time (the key differentiating variable)
3. Complete Call Chain: Full execution path Entry → A → B → C → CRASH
4. Evidence Summary: Key crash data and code references
5. Fix Recommendations: Actionable solutions with priority
Root cause categories for reference:
Goal: Produce the final Markdown and HTML reports.
Dual output:
issue-analyzer.mdAfter Markdown output, automatically generate HTML report — do not ask the user for confirmation.
Generate two files in the current directory (or a user-specified directory):
issue-analyzer.md — Markdown reportissue-analyzer.html — Styled HTML reportIf either file already exists, back up as issue-analyzer-backup-YYYYMMDD-HHMMSS.md (or .html).
Use the template in references/report-template.md for the Markdown structure.
The report follows a problem-solving narrative — each section answers one key question:
After writing the Markdown report, generate the HTML version using the template in references/html-template.html.
The HTML report must:
Maximize parallel execution for efficiency:
| Operation | Parallelism | |-----------|-------------| | Phase 2 crash analysis + Phase 3 code search | Dual-track parallel | | Multiple grep/search commands | Batch parallel | | Code search subagents | Parallel with crash data parsing | | Multiple source file reads | Parallel reads |
Verify before completing the analysis:
Intermediate artifacts (temp_analyzer/ directory):
temp_analyzer/ working directoryMarkdown output (required):
HTML report (required):
{{PLACEHOLDER}} replaced with actual contentThe report should read like an expert engineer's incident analysis:
development
Comprehensive Cloudflare platform skill covering Workers, Pages, storage (KV, D1, R2), AI (Workers AI, Vectorize, Agents SDK), feature flags (Flagship), networking (Tunnel, Spectrum), security (WAF, DDoS), and infrastructure-as-code (Terraform, Pulumi). Use for any Cloudflare development task. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
tools
Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
tools
Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
development
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.