What problem does it solve? Applications often suffer from inconsistent error handling: ad-hoc exceptions, unclear API error responses, leaked internal details, and missing log context. This Skill provides structured patterns for designing error hierarchies, standardizing API error responses, and integrating error logging so failures are diagnosable and safe. ## Core Features & Use Cases - Error Hierarchy Design: Base error classes with categories for validation, not-found, authorization, business logic, and external service errors, with examples in Python, JavaScript, Go, Rust, and Java. - API Error Responses: Standard JSON error formats, HTTP status code mapping, error code naming conventions, and separation of user-facing versus developer-facing messages. - Logging Integration: Structured logging patterns, sensitive data redaction, correlation IDs, metrics, and alert rules for monitoring. - Use Case: When building a REST API, apply the hierarchy and response patterns so a validation failure returns a consistent 400 JSON body with an error code, while unexpected exceptions are logged with stack traces and return a safe 500 response. ## Quick Start Ask Claude to read the error-handling-patterns SKILL.md and design an error hierarchy with standardized API error responses for your project.