resilience-patterns
Circuit breaker, bulkhead, retry with jitter, graceful shutdown, health check patterns for production resilience.
Profile →npx skills add vibeeval/vibecosystem --skill resilience-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Resilience Patterns Production-grade patterns for surviving failures without cascading. ## Circuit Breaker ```typescript // States: CLOSED (normal) → OPEN (blocking) → HALF_OPEN (testing) type CircuitState = 'CLOSED' | 'OPEN' | 'HALF_OPEN' class CircuitBreaker { private state: CircuitState = 'CLOSED' private failureCount = 0 private lastFailureTime = 0 private successCount = 0 constructor( private readonly failureThreshold = 5, private readonly recoveryTimeout = 30_000, // ms private readonly halfOpenMaxCalls = 3 ) {} async call<T>(fn: () => Promise<T>): Promise<T> { if (this.state === 'OPEN') { if (Date.now() - this.lastFailureTime > this.recoveryTimeout) { this.state = 'HALF_OPEN' this.successCount = 0 } else { throw new Error('Circuit breaker is OPEN — request rejected') } } try { const result = await fn() this.onSuccess() return result } catch (err) { this.onFailure() throw err } } private onSuccess(): void { if (this.state === 'HALF_OPEN') { this.successCount++ if (this.successCount >= this.halfOpenMaxCalls) { this.state = 'CLOSED' this.failureCount = 0 } } else { this.failureCount = 0 } } private onFailure(): void { this.failureCount++ this.lastFailureTime = Date.now() if (
- Circuit Breaker
- Retry with Exponential Backoff + Jitter
- Bulkhead Pattern
- Timeout Policies
- Fallback Chain
- Health Check Endpoints
- Graceful Shutdown
- Idempotency Keys
What does the resilience-patterns skill do?
Circuit breaker, bulkhead, retry with jitter, graceful shutdown, health check patterns for production resilience.
How do I install it?
Run `npx skills add vibeeval/vibecosystem --skill resilience-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From vibeeval/vibecosystem, a repository with 521 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.