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.
88
82%
Does it follow best practices?
Impact
97%
1.49xAverage score across 3 eval scenarios
Passed
No known issues
Standard error response format and ApiError class
Nested error wrapper
0%
100%
Error code field
0%
100%
Status in body
0%
100%
RequestId field
100%
100%
ApiError class
0%
100%
Factory methods
0%
100%
Validation details array
0%
100%
500 message sanitized
100%
100%
No stack trace exposed
100%
100%
500 error logging
100%
100%
4xx warning logging
0%
0%
Circuit breaker implementation
Three states
100%
100%
Default threshold = 5
100%
100%
Default timeout = 30000
100%
100%
Throws when OPEN
100%
100%
Failure counter reset on success
100%
100%
Opens at threshold
100%
100%
OPEN to HALF_OPEN
100%
100%
HALF_OPEN recovery
100%
100%
HALF_OPEN failure
100%
100%
State logged in demo
100%
100%
Flask error handling with retry and monitoring
Flask errorhandler decorators
50%
100%
Request ID middleware
0%
100%
request_id in error responses
0%
100%
Nested error format
100%
100%
SCREAMING_SNAKE_CASE codes
100%
100%
500 generic message
100%
100%
Server error logging level
100%
100%
Client error warning level
57%
100%
Retry decorator in weather_client
100%
100%
Exponential backoff with jitter
50%
100%
Sentry init with SENTRY_DSN
100%
100%
Sentry request_id tag
0%
100%
90d6bd7
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.