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 proyecto26/system-design-skills --skill resilience-failuregit clone --depth 1 https://github.com/proyecto26/system-design-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/proyecto26/system-design-skills/resilience-failure)<a href="https://agentmods.dev/skills/proyecto26/system-design-skills/resilience-failure"><img src="https://agentmods.dev/badge/skills/proyecto26/system-design-skills/resilience-failure/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/proyecto26/system-design-skills/resilience-failure"><img src="https://agentmods.dev/badge/skills/proyecto26/system-design-skills/resilience-failure.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00145 | $0.02909 |
| Opus 5.5 | $0.00058 | $0.01164 |
| Sonnet 5.5 | $0.00029 | $0.00582 |
| Haiku 4.5 | $0.00015 | $0.00291 |
Grade A, and why
resilience-failure scanned grade A with 0 findings 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 1mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Resilience & Failure
Design the system so that when a part breaks — and it will — the failure is contained and the user still gets a useful (if degraded) answer instead of an error page or a cascading outage. Getting this wrong is the difference between a slow dependency and a total meltdown: the most common amplifier of an outage is the system's own reaction to it (retry storms, health-check stampedes).
When to reach for this
Any design with a remote dependency, a shared resource, or an SLA. Reach here to find single points of failure, decide what each call does when its dependency is slow or down, protect a service from being overwhelmed (rate limiting), and plan how a recovered service comes back without being crushed by the backlog.
When NOT to
Don't wrap a single in-process function or a best-effort batch job in circuit
breakers and bulkheads — that's machinery for cross-process/cross-network calls
(YAGNI). Don't add retries to a non-idempotent write without an idempotency key
first (→ api-design) — you'll duplicate side effects. The cheapest design that
meets the availability target wins; chasing an extra nine you don't need costs
real complexity (→ back-of-the-envelope for what a nine actually buys).
Clarify first
- Availability target — how many nines, and is it per-request or per-feature? (→
back-of-the-envelope.) - Blast radius — if this dependency dies, must the whole request fail, or can the feature degrade or hide?
- Idempotency — is the operation safe to retry? If not, what makes it safe (key, dedup)? (→
api-design.) - Latency budget — how long may a call wait before a timeout is better than waiting? (→
back-of-the-envelope.) - Limit dimension & policy — rate-limit per user / IP / API key / tenant? Hard (reject) or soft (queue/shape)? Burst tolerated?
The options
Layered defenses; most real designs combine several.
- Timeout — bound every remote call. Use everywhere; an unbounded wait is the root of most cascades.
- Retry with backoff + jitter — re-attempt transient failures with growing, randomized delays. Use for idempotent calls against blips; never naked retries.
- Circuit breaker — stop calling a dependency that's failing; fail fast and probe to recover. Use when a downstream is down or slow and retries would pile on.
- Bulkhead — isolate resources (thread pools, connection pools, queues) per dependency. Use so one slow dependency can't exhaust capacity shared by others.
- Graceful degradation — fall back to a cached/stale value, partial result, default, or hidden feature. Use when a usable-but-worse answer beats an error.
- Rate limiting / load shedding — cap inbound work; reject or shape excess. Use to protect a service from overload, abuse, or a stampeding caller.
- Redundancy / failover — run N>1 of every component; promote a standby on
failure. Use to remove SPOFs. (Health checks/LB failover live in
load-balancing.)
What ships with it
6 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.
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.
- 1mo ago Changed · +4 lines fc9691ebed33
- 3mo ago First seen · 171 lines · 145 tokens per session scan A 45ae9f9ee26d
resilience-failure is a skill published in the GitHub repository proyecto26/system-design-skills (155 stars, last pushed 1mo ago), licensed MIT. It adds 145 tokens to every session and 2,909 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
resilience-failure compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| resilience-failureproyecto26/system-design-skills | Skill | 155 | 1mo ago | MIT | A | 145 | Claude Code |
| data-engineeringcbrock84/headcount | Skill | 2.6k | 5d ago | MIT | A | 67 | Claude Code |
| api-designcbrock84/headcount | Skill | 2.6k | 5d ago | MIT | A | 64 | Claude Code |
| add-request-protectionarcjet/arcjet-plugin | Skill | 1 | 4d ago | Apache-2.0 | A | 40 | Claude Code |
| build-falco-web-appgaelic-ghost/socket | Skill | 12 | 3mo ago | Apache-2.0 | A | 42 | Claude Code |
| build-giraffe-web-appgaelic-ghost/socket | Skill | 12 | 3mo ago | Apache-2.0 | A | 43 | Claude Code |
| build-oxpecker-web-appgaelic-ghost/socket | Skill | 12 | 3mo ago | Apache-2.0 | A | 44 | Claude Code |