Global Error Handling
Installation
SKILL.md
Global Error Handling
This Skill provides Claude Code with specific guidance on error handling best practices across backend and frontend code, including KISS, ISP, and SRP principles.
When to use this skill
- When adding try-catch blocks or error handling logic to any code
- When throwing or catching exceptions/errors in any programming language
- When creating custom exception or error classes
- When implementing centralized error handling (middleware, error boundaries, global handlers)
- When displaying error messages to users in UI components
- When handling async errors and promise rejections
- When implementing retry strategies with exponential backoff
- When ensuring graceful degradation when non-critical services fail
- When validating input and failing fast with clear error messages (KISS)
- When using specific exception types instead of generic errors (ISP)
- When cleaning up resources in finally blocks or equivalent mechanisms
- When working with error handling in backend (.ts, .py, .java, .go) or frontend (.tsx, .jsx, .vue)
- When implementing error logging and monitoring