What problem does it solve?
This Skill addresses the complexity of managing application errors by providing a unified, type-safe framework for capturing, logging, and displaying errors in Stacks applications.
Core Features & Use Cases
- Result Pattern: Replaces traditional try/catch blocks with Result types (Ok/Err) for predictable, recoverable error flows.
- Unified Error Handling: Provides a centralized ErrorHandler class for logging to files, console, and managing application exits.
- Environment-Aware Rendering: Automatically switches between detailed stack traces for development and user-friendly messages for production.
- Use Case: Use this to standardize how your application handles database failures, validation errors, or missing models across your entire codebase.
Quick Start
Use the stacks-error-handling skill to implement a Result-based error check for your current function and configure the appropriate error page rendering.