handling-errors-idiomatically
CommunityRobust error handling for Next.js apps
Authoralexejluft
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents application crashes, security vulnerabilities from exposed stack traces, and silent failures by enforcing robust error handling patterns in Next.js applications.
Core Features & Use Cases
- Route Error Boundaries: Implements
error.tsxto gracefully handle errors within specific route segments. - Global Error Handling: Utilizes
global-error.tsxfor critical errors affecting the entire application. - API Route Safety: Ensures API routes never expose sensitive error details, returning user-friendly messages instead.
- Supabase Integration: Provides a pattern for checking and handling errors returned by Supabase queries.
- Client-Side Feedback: Guides the use of toast notifications for user-facing error messages.
Quick Start
Implement idiomatic error handling in your Next.js App Router project by ensuring every route has an error.tsx file and checking Supabase query results for errors.
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: handling-errors-idiomatically Download link: https://github.com/alexejluft/brudi/archive/main.zip#handling-errors-idiomatically 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 223,000+ vetted skills library on demand.