Claude Code Plugins

Community-maintained marketplace

Feedback
0
0

Implement robust error handling with user-friendly messages without technical details, fail fast with explicit error messages, specific exception types for targeted handling, centralized error handling at appropriate boundaries, graceful degradation for non-critical failures, retry strategies with exponential backoff, and proper resource cleanup. Use this skill when implementing try-catch blocks, throwing or catching exceptions, handling API errors, implementing retry logic, managing resources that need cleanup, creating error messages for users, or establishing centralized error handling strategies. This skill applies when working on any code that needs error handling including API integrations, database operations, file operations, or user-facing features.

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 without technical details, fail fast with explicit error messages, specific exception types for targeted handling, centralized error handling at appropriate boundaries, graceful degradation for non-critical failures, retry strategies with exponential backoff, and proper resource cleanup. Use this skill when implementing try-catch blocks, throwing or catching exceptions, handling API errors, implementing retry logic, managing resources that need cleanup, creating error messages for users, or establishing centralized error handling strategies. This skill applies when working on any code that needs error handling including API integrations, database operations, file operations, or user-facing features.

Global Error Handling

When to use this skill

  • When implementing try-catch blocks for error handling
  • When throwing or catching exceptions in your code
  • When handling API errors from external services
  • When implementing retry logic with exponential backoff
  • When managing resources that need cleanup (file handles, connections)
  • When creating error messages for end users
  • When establishing centralized error handling strategies
  • When implementing graceful degradation for non-critical failures
  • When using specific exception types instead of generic ones
  • When working on code that interacts with databases, APIs, or file systems
  • When validating input and failing fast with clear error messages
  • When ensuring security by not exposing technical details in error messages

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.

Instructions

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