home / skills / shotaiuchi / dotclaude / debug-stacktrace
This skill analyzes stack traces and error messages to pinpoint root causes, trace propagation, and correlate logs for effective debugging.
npx playbooks add skill shotaiuchi/dotclaude --skill debug-stacktraceReview the files below or copy the command above to add this skill to your agents.
---
name: debug-stacktrace
description: >-
Stack trace and error message analysis. Apply when investigating exceptions,
error chains, failure propagation paths, and crash logs to pinpoint failure
locations.
user-invocable: false
---
# Stack Trace Analyzer Investigation
Analyze stack traces and error messages to pinpoint the root cause of failures.
## Investigation Checklist
### Exception Chain Analysis
- Identify the root cause exception in nested/chained exceptions
- Check for swallowed exceptions that hide the real failure
- Verify exception types match the actual error condition
- Trace cause-effect relationships through exception wrappers
- Look for generic catch blocks that obscure specific errors
### Error Propagation
- Map the full propagation path from origin to surface
- Check if error context is preserved through rethrows
- Identify where error information is lost or transformed
- Verify error codes and messages remain consistent across layers
- Detect silent failures that produce misleading downstream errors
### Stack Frame Inspection
- Locate the exact frame where the failure originates
- Distinguish application code frames from library/framework frames
- Check for missing frames due to inlining or tail-call optimization
- Identify async boundaries that split the logical call path
- Correlate frame variables with expected state at each level
### Log Correlation
- Match stack traces with surrounding log entries by timestamp
- Identify preceding warnings or errors that indicate preconditions
- Cross-reference thread/request IDs across distributed components
- Check for log level filtering that may hide relevant context
- Reconstruct the timeline of events leading to the failure
## Output Format
Report findings with confidence ratings:
| Confidence | Description |
|------------|-------------|
| High | Root cause clearly identified with supporting evidence |
| Medium | Probable cause identified but needs verification |
| Low | Hypothesis formed but insufficient evidence |
| Inconclusive | Unable to determine from available information |
This skill analyzes stack traces and error messages to pinpoint root causes of exceptions and crashes. It guides investigators through exception chains, propagation paths, stack frame inspection, and log correlation to produce actionable findings. Reports include confidence ratings and concrete remediation suggestions.
The skill inspects nested and chained exceptions to find the originating error, checks for swallowed or transformed exceptions, and maps the propagation path across layers. It examines stack frames to distinguish application code from framework/library frames, notes async or optimized-frame gaps, and correlates traces with logs and timestamps to reconstruct the failure timeline.
What does a 'High' confidence rating mean?
High means the root cause is clearly identified and supported by stack frames, exception messages, and correlated logs.
What if the stack trace is incomplete or obfuscated?
Mark findings as Medium or Low; attempt log correlation, symbolication, or reproduce with debug builds to improve evidence.