Agent Skill
2/7/2026global-error-handling
Implement robust error handling with user-friendly messages, fail-fast validation, and graceful degradation. Use this skill when creating exception classes, writing try-catch blocks, implementing centralized error handlers, designing retry strategies with exponential backoff, cleaning up resources in finally blocks, or providing actionable error messages to users. Applies to all code that handles errors, exceptions, or failure scenarios.
J
jeremyrdavis
0GitHub Stars
1Views
npx skills add jeremyrdavis/coffeeshop26
SKILL.md
| Name | global-error-handling |
| Description | Implement robust error handling with user-friendly messages, fail-fast validation, and graceful degradation. Use this skill when creating exception classes, writing try-catch blocks, implementing centralized error handlers, designing retry strategies with exponential backoff, cleaning up resources in finally blocks, or providing actionable error messages to users. Applies to all code that handles errors, exceptions, or failure scenarios. |
name: global-error-handling description: Implement robust error handling with user-friendly messages, fail-fast validation, and graceful degradation. Use this skill when creating exception classes, writing try-catch blocks, implementing centralized error handlers, designing retry strategies with exponential backoff, cleaning up resources in finally blocks, or providing actionable error messages to users. Applies to all code that handles errors, exceptions, or failure scenarios.
When to use this skill
- When creating custom exception or error classes
- When writing try-catch blocks and error handlers
- When implementing centralized error handling at API boundaries
- When providing user-friendly, actionable error messages
- When failing fast with early validation and precondition checks
- When using specific exception types instead of generic ones
- When implementing graceful degradation for non-critical failures
- When designing retry strategies with exponential backoff
- When cleaning up resources in finally blocks
- When hiding technical details from user-facing error messages
- Applies to all error handling code across the project
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.
Instructions
For details, refer to the information provided in this file: global error handling
Skills Info
Original Name:global-error-handlingAuthor:jeremyrdavis
Download