What problem does it solve?
Code often ships with inconsistent error responses, swallowed exceptions, missing timeouts, and leaked internal details, making failures hard to debug and unsafe for users.
Core Features & Use Cases
- Error Classification: Distinguishes expected errors (validation failures, missing resources) from unexpected ones (system outages) and handles each appropriately.
- Structured Error Responses: Enforces a unified
{ code, message, details? } format with accurate HTTP status codes and no leaked stack traces, SQL, or file paths.
- Logging & Recovery Standards: Requires structured JSON logs with sanitized sensitive data, plus timeouts, exponential-backoff retries, idempotent operations, circuit breakers, and graceful degradation.
- Use Case: When building an API endpoint that calls a third-party payment service, apply this Skill to add timeouts, retry with backoff, return a clean 4xx/5xx error format, and log failures without exposing tokens.
Quick Start
Use the hello-errors skill to review and improve the error handling in my API service code.