global-error-handling

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.

$ 安裝

git clone https://github.com/majiayu000/claude-skill-registry /tmp/claude-skill-registry && cp -r /tmp/claude-skill-registry/skills/data/global-error-handling ~/.claude/skills/claude-skill-registry

// tip: Run this command in your terminal to install the skill