resilience-and-error-handling

Implement timeouts, retries, circuit breakers, and error boundaries for networked services.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lgerard314/global-plugin --skill resilience-and-error-handling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilience-and-error-handling
Source: https://github.com/lgerard314/global-plugin/tree/main/plugin/skills/resilience-and-error-handling
Command: npx skills add https://github.com/lgerard314/global-plugin --skill resilience-and-error-handling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Networks and distributed systems are fragile; without guardrails, timeouts, retries, and circuit breakers can cause cascading failures, degraded UX, and unstable performance.

Core Features & Use Cases

  • Enforces explicit timeouts and bounded retries with backoff and jitter to prevent resource exhaustion.
  • Introduces circuit breakers, error boundaries, and typed errors to isolate failures and enable graceful degradation.
  • Provides patterns for idempotency in external POSTs and safe, supervised background tasks across frontend and backend layers.

Quick Start

Configure your API calls with explicit timeouts, exponential backoff with jitter, and a circuit breaker to ensure graceful degradation.

Frequently Asked Questions about resilience-and-error-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent cascading failures in microservice integrations?

To prevent cascading failures in microservice integrations, apply resilience patterns like circuit breakers with fallbacks, explicit timeouts, and bounded retries with backoff and jitter. These guardrails isolate faults and enable graceful degradation across distributed networks.

What is the best way to implement retries with exponential backoff and jitter?

The best way to implement retries with exponential backoff and jitter is to bound the retry attempts and apply randomized jitter intervals. This prevents resource exhaustion and avoids synchronized retry storms across networked services during temporary outages.

When do I need a circuit breaker for HTTP calls?

You need a circuit breaker for HTTP calls when an external dependency is failing repeatedly, causing degraded UX or unstable performance. The circuit breaker trips to isolate the failing service and route traffic to a supervised fallback mechanism.

How do I handle typed errors for async operations across frontend and backend layers?

To handle typed errors for async operations across frontend and backend layers, implement error boundaries and structured typed error handling. This isolates failures during async tasks and enables safe, supervised background execution with graceful degradation.

Do I need idempotency for POST requests to external services?

Yes, you need idempotency for POST requests to external services to prevent duplicate side effects during network retries. Idempotency ensures that multiple identical requests produce the same result, maintaining data integrity when retrying failed external calls.

Why do networked services without timeouts cause resource exhaustion?

Networked services without explicit timeouts cause resource exhaustion because pending requests hold connections and memory indefinitely. Enforcing explicit timeouts on HTTP calls and async operations bounds resource consumption and prevents cascading failures across the system.