What problem does it solve?
This skill guides the design and implementation of resilient error-handling, observability, and graceful recovery to minimize downtime and simplify debugging across backend and frontend layers.
Core Features & Use Cases
- Typed error models with a base AppError and specialized subclasses (BadRequestError, UnauthorizedError, NotFoundError, ConflictError, ValidationError, etc.) to standardize responses.
- A global error handler and structured logging that attach context (requestId, path, method) and sanitize responses in production.
- Recovery and resilience patterns including retry strategies, fallbacks, timeouts, and graceful degradation to keep systems available during partial failures.
- Frontend error boundaries and UI patterns to gracefully surface errors without crashing the app and provide recovery options.
- Best practices: always handle errors, log with context, avoid leaking sensitive data, and test error paths.
Quick Start
Introduce typed error classes, wire a centralized error handler in your server or app, and add structured logging to demonstrate end-to-end error flows.