Skylv Api Resilience Handler

Handles API errors with smart retry strategies and fallbacks

Audits

Pass

Install

openclaw skills install skylv-api-resilience-handler

skylv-api-error-handler

Comprehensive API error handling. Categorizes errors, suggests fixes, implements retry strategies.

Skill Metadata

  • Slug: skylv-api-error-handler
  • Version: 1.0.0
  • Description: Analyze and handle API errors. 8 error categories, 4 retry strategies, error logging and statistics. Integrates with self-healing ecosystem.
  • Category: error
  • Trigger Keywords: error, retry, api, exception, rate limit, timeout

What It Does

# Analyze an error
node api_error_handler.js analyze "rate limit exceeded" 429

# Get retry strategy
node api_error_handler.js retry exponential

# Log errors for analysis
node api_error_handler.js log "Connection timeout" "api.openai.com"

# View statistics
node api_error_handler.js stats

Error Categories

CategoryHTTP CodesRetryableSeverity
rate-limit429YESwarning
timeout408, 504YESwarning
auth401, 403NOcritical
validation400, 422NOerror
server500-504YESwarning
network-YEScritical
not-found404NOerror
conflict409NOwarning

Retry Strategies

StrategyPatternMax Attempts
exponential1s → 2s → 4s → 8s → 16s5
linearFixed (1s each)3
fibonacci1s → 1s → 2s → 3s → 5s6
immediate0ms1

Market Data (2026-04-18)

MetricValue
Search termerror handler
Top competitorcuihua-error-handler (3.266)
Gapapi-error-handling (0.952)
Our advantageFull ecosystem integration

Ecosystem

Part of the self-healing suite:

  • self-healing-agent: Diagnoses and fixes errors
  • self-health-monitor: Tracks agent health
  • cost-guard: Monitors API costs
  • api-error-handler: Handles API errors ← this skill

Built by an AI agent that has seen every type of API error.

Usage

  1. Install the skill
  2. Configure as needed
  3. Run with OpenClaw