error-handling-rules
CommunityRobust error handling for React apps
System Documentation
What problem does it solve?
Many React applications lack a consistent, production-ready strategy to surface, classify, and recover from runtime and API errors, leading to poor user experience and unreliable monitoring. This Skill provides patterns and guardrails to ensure errors are handled at route, component, and network layers with clear user messaging and observability.
Core Features & Use Cases
- Error Boundary patterns with a configurable reset to contain render-time failures without crashing the entire app.
- Route-level handling for Next.js App Router and React Router including not-found pages and errorElement fallbacks.
- Typed Result pattern and AppError class with retryable flags and localized userMessage to standardize error propagation.
- Sentry integration with environment filtering, beforeSend logic, user/context tagging, and contextual capture for diagnostics.
- Mutation and query strategies: toast notifications for recoverable errors, setError for form validation responses, and exponential backoff retry policies.
Quick Start
Use the error-handling-rules skill to implement Error Boundaries, typed AppError, Sentry integration, retry strategies, and toast notifications in a React or Next.js project.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: error-handling-rules Download link: https://github.com/mauriciodelrio/delriodev-skills/archive/main.zip#error-handling-rules Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.