reliability-strategy-builder

Implements circuit breakers, retries, fallbacks, bulkheads, and SLO definitions for resilient systems.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/zinohome/RTMessage --skill reliability-strategy-builder-zinohome
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: reliability-strategy-builder
Source: https://github.com/zinohome/RTMessage/tree/main/.github/skills/reliability-strategy-builder
Command: npx skills add https://github.com/zinohome/RTMessage --skill reliability-strategy-builder-zinohome

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Systems fail in production due to unhandled transient errors, cascading failures, and missing reliability targets. This Skill provides ready-to-use reliability patterns and SLO frameworks so you can design failure handling and incident response before outages happen. ## Core Features & Use Cases - Reliability Patterns: TypeScript implementations of circuit breakers, exponential backoff retries, fallback chains, and bulkhead isolation via semaphores. - SLO & Error Budget Definitions: YAML templates for availability, latency, and error-rate SLOs with error budget calculations. - Failure Mode Analysis & Incident Response: FMEA tables, severity levels (SEV1-SEV4), response steps, and operational checklists. - Use Case: When hardening a microservices API, generate circuit breaker logic for external calls, define a 99.9% availability SLO, and produce an incident response runbook in one pass. ## Quick Start Ask the AI to design a reliability strategy with circuit breakers, retries, and SLO definitions for your service.

Frequently Asked Questions about reliability-strategy-builder

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

FAQPage Schema
How do I implement a circuit breaker in TypeScript?▼

A circuit breaker tracks failure counts and transitions between closed, open, and half-open states. When failures exceed a threshold such as 5, it opens and rejects requests until a reset timeout, typically 60 seconds, allows a trial request.

How to add retry logic with exponential backoff to API calls?▼

Wrap the operation in a loop that catches errors and waits baseDelay times 2 to the power of the attempt number before retrying. Cap the maximum retries, for example 3, and rethrow the error once exhausted.

What is the difference between circuit breaker and retry pattern?▼

Retries handle transient failures by re-attempting immediately with backoff, while circuit breakers stop all requests to a persistently failing service to prevent cascading failures. They are commonly combined, with retries inside a circuit breaker.

How do I define SLOs and calculate error budgets?▼

Define SLOs as measurable targets such as 99.9% availability over a 30-day window using ratio or percentile measurements. The error budget is 100% minus the SLO, so 99.9% availability allows about 43.2 minutes of downtime per month.

When should I use the bulkhead pattern?▼

Use bulkheads when you need to isolate workloads so one failing or overloaded operation cannot exhaust shared resources. Separate thread pools or semaphores for critical, standard, and background tasks prevent resource contention.

What are the limitations of fallback mechanisms?▼

Fallbacks return degraded or stale data, such as cached values or minimal placeholder objects, so they trade accuracy for availability. They should be a last resort after retries and must be monitored to avoid masking persistent primary failures.