Loading...
Loading...
When user encounters "error", "exception", "failed", "stack trace", "crashed", or needs error categorization. Provides structured root cause analysis and prevention strategies.
npx skill4agent add jamelna-apps/claude-dash error-diagnosis| Subcategory | Description | Prevention |
|---|---|---|
| Could be interpreted multiple ways | Be specific about expected output |
| Didn't specify what NOT to do | State exclusions explicitly |
| Key requirements buried in text | Put critical info first |
| Requirements in head, not prompt | Write everything down |
| Too high/low level for task | Match detail to task complexity |
| Subcategory | Description | Prevention |
|---|---|---|
| Conversation too long | Clear context periodically |
| Old info polluting responses | Start fresh for new topics |
| Assumed Claude remembered | Re-state critical context |
| Irrelevant info drowning signal | Provide focused context |
| Subcategory | Description | Prevention |
|---|---|---|
| Info didn't reach subagents | Pass explicit context |
| Used wrong specialized agent | Match agent to task |
| Didn't constrain behavior | Set clear boundaries |
| No check that output correct | Verify results |
| Subcategory | Description | Prevention |
|---|---|---|
| Incorrect command/syntax | Verify syntax before running |
| Package not installed | Check deps first |
| Insufficient permissions | Check access rights |
| File/directory not found | Verify paths exist |
| Code syntax issue | Lint before running |
Error received → Identify category → Identify subcategory{
"category": "tool",
"subcategory": "path_error",
"summary": "File not found when trying to read config",
"root_cause": "Path was relative but CWD was different",
"prevention": "Use absolute paths or verify CWD"
}Category: tool/missing_dependency
Check: Is the package installed? Right version? Correct import path?
Fix: npm install / pip install / check import statementCategory: tool/permission_error
Check: File permissions? Running as correct user? Sudo needed?
Fix: chmod, chown, or run with appropriate privilegesCategory: tool/syntax_error (or context/stale_context)
Check: Is object initialized? Correct method name? Async/await issue?
Fix: Add null checks, verify object shape, await promisesCategory: tool/wrong_command (or infrastructure)
Check: Server CORS config? Proxy setup? Credentials mode?
Fix: Configure CORS headers, use proxy in devCategory: prompt/* (most likely)
Check: Was instruction ambiguous? Missing constraints? Too much context?
Fix: Rewrite prompt with specific details## Error Analysis
**Category:** [category/subcategory]
**Root Cause:** [what actually went wrong]
## Fix
[specific steps to resolve]
## Prevention
[how to avoid this in the future]
## Similar Past Issues
[if any relevant observations exist]# Check past similar errors
memory_sessions category=bugfix query="similar error"
# Get reasoning bank solutions
reasoning_query context="error description"
# Check if this was a known gotcha
memory_sessions category=gotcha query="topic"