Skip to content
Back to skills

Circuit Breakers

ASecurity

Prevent cascading failures across downstream dependencies using circuit breakers, bulkheads, timeouts, and fallbacks

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill circuit-breakers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Circuit Breakers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Circuit Breakers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-circuit-breakers-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-circuit-breakers-anvil)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: circuit-breakers
description: Prevent cascading failures across downstream dependencies using circuit breakers, bulkheads, timeouts, and fallbacks
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# Circuit breakers

Use when protecting services calling flaky downstream APIs, caches, payment gateways, or microservices.

## Timeouts and state transitions
- Always pair circuit breakers with tight per-request connect and read timeouts—without timeouts, hung sockets exhaust worker pools before tripping.
- Count only dependency failures (`5xx`, timeouts, connection errors) toward error thresholds; ignore client `4xx` errors so bad caller inputs do not trip circuits globally.
- Configure `closed -> open -> half-open` transitions with a clear cooldown window and bounded probe traffic in `half-open` before closing.

## Bulkheads and fallbacks
- Isolate slow third-party integrations inside bounded concurrency pools (bulkheads) so one degraded dependency cannot exhaust shared event loops or DB pools.
- Serve stale cached values, default UI states, or queued async retries cleanly when the circuit is open, and cap retries carefully to avoid amplifying load on recovery.

## Verify
Inject downstream delays and 503 storms in integration tests to verify fast tripping, half-open recovery probes, and caller latency bounds.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.