What problem does it solve?
This skill provides structured patterns and utilities for building robust error handling in production apps, including error boundaries, API error handling, logging, and user-friendly messaging.
Core Features & Use Cases
- Error class hierarchy: Centralized AppError and derived classes (ValidationError, NotFoundError, UnauthorizedError, ForbiddenError, etc.) to standardize error shapes.
- Client & server error handling: Error boundaries for UI resilience and route/server error handling patterns for APIs.
- Logging & user-friendly messaging: Structured logging and user-friendly messages to avoid leaking internals while aiding debugging.
- Use Case: Implement consistent error handling across a Next.js app with pages, API routes, and server actions.
Quick Start
Copy or install this skill into your project, import the shared error classes and boundary components, and start wrapping operations and API endpoints with the provided patterns to ensure predictable failures and friendly feedback.