Claude Code Plugins

Community-maintained marketplace

Feedback

Implement robust error handling with user-friendly messages, specific exception types, centralized error boundaries, graceful degradation, retry strategies with exponential backoff, and proper resource cleanup. Use this skill when implementing try-catch blocks or error boundaries, when creating custom exception or error classes, when providing user-friendly error messages without exposing technical details, when implementing input validation and fail-fast patterns, when adding centralized error handling middleware or global error handlers, when designing graceful degradation for non-critical service failures, when implementing retry logic with exponential backoff for transient failures, when ensuring resource cleanup in finally blocks or using statements, when logging errors for debugging without exposing sensitive information, when handling errors at appropriate application boundaries (controllers, API layers), or when implementing error monitoring and alerting.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name Global Error Handling
description Implement robust error handling with user-friendly messages, specific exception types, centralized error boundaries, graceful degradation, retry strategies with exponential backoff, and proper resource cleanup. Use this skill when implementing try-catch blocks or error boundaries, when creating custom exception or error classes, when providing user-friendly error messages without exposing technical details, when implementing input validation and fail-fast patterns, when adding centralized error handling middleware or global error handlers, when designing graceful degradation for non-critical service failures, when implementing retry logic with exponential backoff for transient failures, when ensuring resource cleanup in finally blocks or using statements, when logging errors for debugging without exposing sensitive information, when handling errors at appropriate application boundaries (controllers, API layers), or when implementing error monitoring and alerting.

Global Error Handling

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle global error handling.

When to use this skill

  • When implementing try-catch blocks or error boundaries
  • When creating custom exception or error classes
  • When providing user-friendly error messages to end users
  • When implementing input validation and fail-fast error handling
  • When adding centralized error handling middleware or global error handlers
  • When designing graceful degradation for non-critical failures
  • When implementing retry logic with exponential backoff
  • When ensuring resource cleanup (database connections, file handles, network connections)
  • When logging errors for debugging without exposing sensitive information
  • When handling errors at appropriate boundaries (controllers, API layers, UI error boundaries)
  • When implementing error monitoring and alerting systems
  • When standardizing error response formats across APIs
  • When handling async errors and promise rejections
  • When preventing error message information leakage

Instructions

For details, refer to the information provided in this file: global error handling