self-healing
Installation
SKILL.md
Self-Healing Systems
Build systems that detect failures and recover automatically without human intervention.
Core Patterns
1. Circuit Breaker
Prevent cascading failures by failing fast when a dependency is down.
class CircuitBreaker {
private failures = 0;
private lastFailure = 0;
private state: 'closed' | 'open' | 'half-open' = 'closed';