CtrlK
BlogDocsLog inGet started
Tessl Logo

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.

88

1.49x
Quality

82%

Does it follow best practices?

Impact

97%

1.49x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

91%

54%

User Registration API — Error Handling

Standard error response format and ApiError class

Criteria
Without context
With context

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%

100%

Inventory Service — Resilient External API Client

Circuit breaker implementation

Criteria
Without context
With context

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%

100%

40%

Weather Data Aggregator — Flask API with Error Handling

Flask error handling with retry and monitoring

Criteria
Without context
With context

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%

Repository
secondsky/claude-skills
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.