circuit-breaker
Installation
SKILL.md
Circuit Breaker Pattern
Prevent cascade failures by failing fast when a service is unhealthy.
When to Use This Skill
- Adding resilience to external API calls
- Protecting against slow or failing downstream services
- Implementing graceful degradation
- Building fault-tolerant microservices
Core Concepts
A circuit breaker has three states:
- CLOSED: Normal operation, requests pass through
- OPEN: Service is failing, requests fail immediately
- HALF_OPEN: Testing if service recovered