Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add j4flmao/agent-skills --skill resilience-patternsgit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/j4flmao/agent-skills/resilience-patterns)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/resilience-patterns"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/resilience-patterns/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/resilience-patterns"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/resilience-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Data Exfiltration · line 280 Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00121 | $0.05989 |
| Opus 5 | $0.00060 | $0.02995 |
| Sonnet 5 | $0.00024 | $0.01198 |
| Haiku 4.5 | $0.00012 | $0.00599 |
Grade A, and why
backend-resilience-patterns scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
response = requests.post(f"{PAYMENT_API}/charge", json={"order_id": order_id, "amount": amount}) How it starts
The opening of the file, as written. The whole thing — 669 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Backend Resilience Patterns
Purpose
Protect backend services from cascading failures by applying circuit breakers, retries with backoff, bulkheads, timeouts, and fallbacks. Resilience is not optional — every external call must be wrapped in fault-tolerance patterns.
Agent Protocol
Trigger
Exact user phrases: "resilience", "circuit breaker", "retry", "bulkhead", "timeout", "fallback", "resilience4j", "fault tolerance", "retry strategy", "backoff", "rate limiter".
Input Context
- Type of external calls (HTTP, database, message queue).
- Existing retry or timeout configuration.
- SLAs and latency requirements.
Output Artifact
Configuration snippets or code. No file unless requested.
Response Format
Pattern: {circuit-breaker|retry|bulkhead|timeout|fallback}
Config: {key parameters and values}
Completion Criteria
- At least timeout configured for every external call.
- Retry with exponential backoff and jitter configured.
- Circuit breaker defined per dependency (not one for all).
- Fallback handler defined for every circuit breaker.
- Bulkhead isolation applied to thread pools where needed.
Max Response Length
4 lines per pattern. 20 lines for full configuration.
Architecture Decision Tree
Which Resilience Pattern?
What type of failure are you protecting against?
├── Slow responses (server busy, GC pause, overloaded)
│ └── Timeout + Circuit Breaker
├── Transient failures (network blip, connection reset, DNS failure)
│ └── Retry with backoff + Circuit Breaker
├── Resource exhaustion (thread pool, connection pool, memory)
│ └── Bulkhead + Circuit Breaker
├── Downstream service completely down
│ └── Circuit Breaker + Fallback
└── Client sending too many requests
└── Rate Limiter + Bulkhead
Pattern Composition Order
How should patterns be composed?
┌─────────────────────────────────┐
│ 1. Timeout (outermost) │ ← Fail fast
│ 2. Bulkhead (semaphore limit) │ ← Isolate resources
│ 3. Circuit Breaker │ ← Stop cascading failures
│ 4. Retry (innermost) │ ← Retry transient failures
│ 5. Fallback (catch-all) │ ← Degrade gracefully
└─────────────────────────────────┘
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/bulkhead-patterns.md 2.9 KB
- references/circuit-breaker-patterns.md 5.8 KB
- references/fallback-strategies.md 3.7 KB
- references/resilience-cache.md 4.5 KB
- references/resilience-testing.md 5.0 KB
- references/resilience4j-guide.md 4.0 KB
- references/retry-backoff-strategies.md 4.0 KB
- references/timeout-retry-patterns.md 6.7 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 669 lines · 121 tokens per session scan A b786dccf6b5a
backend-resilience-patterns is a skill published in the GitHub repository j4flmao/agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 121 tokens to every session and 5,989 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
distributed-systems
Distributed systems patterns for locking, resilience, idempotency, and rate limiting. Use when implementing distributed locks, circuit breakers, retry policies, idempotency keys, token bucket rate limiters, or fault tolerance patterns.
error-handling
Use when designing the reaction to a class of failures — typed error taxonomies, retry/backoff/timeout policy, circuit breakers, React/Next error boundaries, and the user-message vs operator-log split. NOT diagnosing one specific crash (that is debug), NOT logs/metrics/traces (that is observability), NOT the wire…
error-handling
Implement robust error handling with custom error types, proper propagation, user-friendly messages, and logging. Use when adding error handling to APIs, libraries, or applications.
error-handling
Error handling patterns. Exception hierarchies, Result types, structured error responses, retry strategies, circuit breakers.
resilience-and-blast-radius-design
Design or audit a system's resilience posture using a layered framework — defense in depth, controlled degradation (load shedding vs. throttling), blast radius compartmentalization (role/location/time), failure domains, 3-tier component reliability hierarchy, and continuous validation. Use this skill when designing a…
api-rate-limit-handler
Implement bounded, idempotency-aware API throttling, backoff, and retry handling for 429 and transient 5xx responses.