handling-errors
Installation
SKILL.md
Error Handling Patterns
Build resilient applications with robust error handling strategies that gracefully handle failures and provide excellent debugging experiences.
When to Use This Skill
- Implementing error handling in new features
- Designing error-resilient APIs
- Debugging production issues
- Implementing retry/circuit breaker patterns
- Handling async/concurrent errors
Workflow
- Categorize: Is it recoverable (network timeout) or unrecoverable (null pointer, corrupt memory)?
- Define Strategy: Exception hierarchy vs Result types?
- Implement: Use try/catch contexts, retry logic, or circuit breakers.
- Recover: Graceful degradation, fallback values, cleanup.