Agent skill · software engineering · secondsky
api-error-handling
Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building production APIs, implementing error recovery patterns, or integrating error monitoring services.
Why this skill is useful
Provides a standardized error handling implementation for APIs, including specific patterns and logging that the AI wouldn't reliably generate on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
API Error Handling Implement robust error handling with standardized responses and proper logging. Standard Error Response Format Error Class (Node.js) Circuit Breaker Pattern Additional Implementations See references/python-flask.md for: Python Flask error handling with custom exceptions Circuit breaker with automatic recovery Retry with exponential backoff Sentry integration Best Practices Use consistent error format across all endpoints Include request IDs for traceability Log errors at appropriate severity levels Never expose stack traces to clients Distinguish client errors (4xx) from server errors (5xx) Provide actionable error messages
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/api-error-handling