error-handling
Installation
SKILL.md
Error Handling Fixes
Fixes for proper error handling in TypeScript/JavaScript. These issues can cause silent failures, lost stack traces, and unhandled promise rejections that crash Node.js.
Quick Start
- Identify the error handling issue type
- Determine if the operation should fail loudly or gracefully
- Apply the appropriate fix pattern
- Verify error paths are tested
Priority Matrix
| Issue | Priority | Impact |
|---|---|---|
| Floating promises | P0 | Crashes Node.js on unhandled rejection |
| Silent catch blocks | P1 | Hides bugs, makes debugging impossible |
| Throwing non-Error | P1 | Loses stack traces, breaks error handling |