Skip to content
Back to skills

Resilience Patterns

ASecurity

Resilience — timeouts, retries with exponential backoff and jitter, circuit breakers, bulkheads, rate limiting and load shedding, fallbacks, idempotency keys, graceful degradation, backpressure. Use when code calls anything over a network or must survive overload (resilience, retry, circuit breaker, timeout, bulkhead, backpressure, idempotency).

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgo

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill resilience-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Resilience Patterns?

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

Security grade badge for Resilience Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-resilience-patterns/badge)](https://www.skillsdirectory.com/skills/vectora-os-resilience-patterns)

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: resilience-patterns
description: Resilience — timeouts, retries with exponential backoff and jitter, circuit breakers, bulkheads, rate limiting and load shedding, fallbacks, idempotency keys, graceful degradation, backpressure. Use when code calls anything over a network or must survive overload (resilience, retry, circuit breaker, timeout, bulkhead, backpressure, idempotency).
metadata:
  category: reliability
---

# Resilience patterns

## Purpose

Contain failures so one slow or failing dependency does not take the system down.

**Use when:** every outbound call and every overload-prone entry point.

**Not for:** hiding bugs with retries.

## Inputs

- Call graph, dependency SLAs, latency budgets.

## Outputs

- Resilience policy per dependency and tests for failure modes.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "resilience patterns"` for prior decisions, patterns and anti-patterns.

## Steps

1. **Budget.** Set timeouts from the caller's latency budget, not defaults.
   Done when every call has a timeout.
2. **Retry.** Retry only idempotent operations, with backoff, jitter and a cap.
   Done when retry storms are impossible.
3. **Isolate.** Add circuit breakers and bulkheads per dependency.
   Done when one dependency cannot exhaust shared pools.
4. **Degrade.** Define fallbacks and load shedding; test with fault injection.
   Done when failure tests pass.

## Best practices

- Retry budgets across layers — not retries at every layer.
- Fail fast beats hanging.

## Common mistakes

- Infinite retries without jitter.
- Timeouts longer than the caller's timeout.

## Example

Payment call: 800 ms timeout, 2 retries with jitter on 5xx only, breaker opens at 50% errors over 20 calls, fallback "payment pending".

## Reusable prompt

```text
Apply the Resilience patterns skill (.agents/skills/resilience-patterns/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Define timeouts, retries, breakers, bulkheads and fallbacks per dependency and the tests that prove them.
Return: Resilience policy per dependency and tests for failure modes..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```

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 ai-agents →

Comments

Loading comments…

Newsletter

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