handling-errors

Enforce error bubbling, progressive degradation, and user-friendly messaging in applications.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/anthony-fdez/claude-skills --skill handling-errors-anthony-fdez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: handling-errors
Source: https://github.com/anthony-fdez/claude-skills/tree/main/.claude/skills/handling-errors
Command: npx skills add https://github.com/anthony-fdez/claude-skills --skill handling-errors-anthony-fdez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures your application gracefully handles errors, preventing crashes and providing clear feedback to users, thereby improving overall stability and user experience.

Core Features & Use Cases

  • Error Bubbling: Enforces throwing errors in async functions for proper propagation.
  • Progressive Degradation: Prevents entire UI sections from unmounting on individual errors.
  • User-Friendly Messages: Translates technical errors into actionable, understandable messages for users.
  • Use Case: When an API call fails, this skill ensures that only the affected component shows an error message with a retry option, rather than the whole page becoming unresponsive.

Quick Start

Use the handling-errors skill to implement a user-friendly error alert for a failed API request.

Frequently Asked Questions about handling-errors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle API errors without crashing the entire UI?

Handle API errors by implementing progressive degradation, which prevents entire UI sections from unmounting when individual errors occur. This approach ensures only the affected component displays an error message with a retry option, keeping the rest of the page responsive.

What is error bubbling in async functions and when do I need it?

Error bubbling is the mechanism of throwing errors in async functions to propagate them up the call stack. You need it when handling API failures or exception catching, ensuring errors are properly routed to boundary handlers for clear user feedback.

How do I display user-friendly error messages for failed API requests?

Display user-friendly error messages by translating technical exceptions into actionable, understandable feedback. When an API call fails, implement error states that show clear messaging with a retry option rather than allowing the application to crash or become unresponsive.

What's the best way to implement error boundaries for resilient UI development?

Implement error boundaries by combining progressive degradation with proper exception catching to manage form or store errors. This resilient UI development pattern isolates failures to specific components, preventing total application crashes and maintaining overall stability.

Why does my whole page become unresponsive when a single component throws an exception?

Your page becomes unresponsive because proper error handling patterns are missing. Without progressive degradation and error boundaries, an uncaught exception in a single component unmounts the entire UI tree instead of isolating the failure to display a localized error state.