resilience
Skill0 starsChanged 4 months agoMITView on GitHub
Design for failure on purpose — timeouts, retries with backoff and jitter, idempotency, circuit breakers, and graceful degradation at every boundary that can fail. Invoke when code calls a network, a queue, or any dependency that can be slow or down. Pairs with observability. Skip for pure in-process logic with no external calls.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- zdanovichnick/dotnet-pilottheir own version, first seen Nov 6, 2026
- vindreshsingh/engineering-skillstheir own version, first seen Oct 20, 2026
- TJM-NZ/claude-skillstheir own version, first seen Oct 11, 2026
- Resgrid/Coretheir own version, first seen Oct 8, 2026
- Rinisnotarobot/rinco-pi-skills-commandstheir own version, first seen Sep 11, 2026
Used with
Projects with it also use convention-learner, opentelemetry and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
codewithmukeshSkillconvention-learner
Detects and enforces project-specific coding conventions by analyzing existing codebase patterns. Learns naming conventions, folder structure, test organization, and coding style from the existing code. Load when: "conventions", "coding standards", "project patterns", "enforce style", "detect patterns", "learn conventions", "code consistency".
Also in 3 projects that use this
codewithmukeshSkillopentelemetry
OpenTelemetry observability for .NET 10 applications. Covers traces, metrics, and logs using the OpenTelemetry SDK with OTLP export. Includes custom ActivitySource, IMeterFactory metrics, resource configuration, and Aspire Dashboard integration. Load this skill when setting up distributed tracing, custom metrics, OTLP export, or when the user mentions "OpenTelemetry", "OTLP", "traces", "spans", "Activity", "ActivitySource", "metrics", "IMeterFactory", "Meter", "Counter", "Histogram", "Gauge", "telemetry", "observability", "distributed tracing", "OTEL", or "Aspire Dashboard".
Also in 3 projects that use this
MovGP0Skillmodern-csharp
Modern C# style guidance for Bendex and MicroSea code changes, including primary constructors, expression-bodied members, var usage, target-typed new, lambdas, and pattern matching.
Also in 3 projects that use this
hongyuancSkillvertical-slice
Build and evaluate a production-quality vertical slice before advancing from Pre-Production to Production.
Also in 3 projects that use this
MicrosoftSkillauthentication
Wire this in whenever the app uses or connects to data — records, a database, entities, per-user data, row-level security — or when the user wants sign-in, accounts, login, or protected pages. Rayfin data is always accessed as an authenticated user, so **data implies auth**; only a static page over public data skips it. The starter ships as a no-auth "hello world" that previews with no backend, and the full Fabric auth scaffolding is already in the project — this skill wires it in: AuthProvider + bootstrapAuth in main.tsx, the route guard in App.tsx, the sign-in page, sign-out, and the env/deploy requirement. Triggers: auth, authentication, sign in, sign-in, login, log in, sign out, logout, account, user, identity, protect route, require login, gated page, data, database, records, per-user, row-level security, who is the current user, Fabric auth, Entra.
Also in 3 projects that use this
grndlvlSkillddd
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- codewithmukesh/dotnet-claude-kit★ 808same name
- Resgrid/Core★ 238same name
- microsoft/scope★ 78same name
- harness-studio/harness-studio★ 9same name
- zdanovichnick/dotnet-pilot★ 5same name
- Rinisnotarobot/rinco-pi-skills-commands★ 2same name
- TJM-NZ/claude-skills★ 0same name
- vindreshsingh/engineering-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository82 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibilityCursor rule
- api-designCursor rule
- background-jobsCursor rule
- strict-modeCursor rule
- cachingCursor rule
- ci-pipeline-authoringCursor rule
- memory-safetyCursor rule
- code-reviewCursor rule
- concurrency-safetyCursor rule
- containerizationCursor rule
- continuous-learningCursor rule
- resource-safetyCursor rule
- nullable-reference-typesCursor rule
- database-transactionsCursor rule
- data-modelingCursor rule
- datetime-handlingCursor rule
- error-debuggingCursor rule
- eval-harnessCursor rule
- feature-flagsCursor rule
- git-commit-craftCursor rule
- error-handlingCursor rule
- incident-responseCursor rule
- null-safetyCursor rule
- vanilla-safetyCursor rule
- null-safetyCursor rule
- mcp-authoringCursor rule
- observabilityCursor rule
- perf-profilingCursor rule
- security-essentialsCursor rule
- powershell-strict-modeCursor rule
- type-safetyCursor rule
- rate-limitingCursor rule
- release-notesCursor rule
- resilienceCursor rule
- nil-and-exception-safetyCursor rule
- error-handlingCursor rule
- search-firstCursor rule
- secrets-managementCursor rule
- security-reviewCursor rule
- session-handoffCursor rule
- injection-safetyCursor rule
- strategic-compactCursor rule
- supply-chain-securityCursor rule
- optionals-and-memoryCursor rule
- tdd-workflowCursor rule
- state-and-plan-safetyCursor rule
- test-writingCursor rule
- strict-modeCursor rule
- verification-loopCursor rule
- config-safetyCursor rule
- accessibilitySkill
- api-designSkill
- background-jobsSkill
- cachingSkill
- ci-pipeline-authoringSkill
- code-reviewSkill
- concurrency-safetySkill
- containerizationSkill
- continuous-learningSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
After an incident that propagated — one component's failure took down more than itself.
- Distinctive: line 30
Bulkheads for isolation: Do not let one slow dependency consume the resources every other request needs.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Resilience
The discipline of designing for the failures you know are coming, instead of the sunny day you hope for. Every call across a boundary — a network request, a database query, a queue publish, a third-party API — will, given enough traffic and time, be slow, fail, time out, or return garbage. Resilience is deciding in advance what your code does when that happens, so a dependency's bad minute does not become your outage. The failure mode this prevents: one slow downstream service exhausting your threads, one transient blip surfacing as a user-facing error, one retry storm turning a hiccup into a cascade.
Resilience pairs with observability: you cannot harden what you cannot see fail, and instrumentation is how you learn which boundaries actually break.
When to invoke
- Writing code that calls anything it does not control in-process — a network service, a database, a cache, a queue, an external API.
- A boundary where slowness or failure has blast radius: a synchronous call in a request path, a fan-out, a write that must not be lost or duplicated.
- After an incident that propagated — one component's failure took down more than itself.
When NOT to invoke
- Pure in-process logic with no external calls and no shared failure mode. A function that transforms data in memory does not need a circuit breaker.
- Over-engineering a low-stakes path. A best-effort background poll that can simply run again next tick does not need the full apparatus; match the hardening to the cost of failure.
Design every remote call to fail well
- Timeouts on everything that crosses a boundary. A call with no timeout waits forever, and a thread that waits forever is a thread that never serves another request — this is how one slow dependency exhausts a pool and takes you down. Set a bound shorter than your own deadline. The default "no timeout" is the wrong default.
- Retries, but only when they are safe and bounded. Retry a transient failure (a timeout, a 503, a dropped connection) — not a deterministic one (a 400, a validation error); retrying that just fails again, slower. Cap the attempts. Use exponential backoff with jitter so a thousand clients retrying do not synchronize into a thundering herd that finishes off the recovering service.
- Idempotency where you retry a write. A retry means the operation can run more than once. A read is naturally safe; a write is not, unless you make it so — an idempotency key, an upsert, a dedupe on a unique constraint. Retrying "charge the card" without idempotency is how a customer gets billed twice.
- Circuit breakers for a dependency that is down. When a downstream has been failing, stop hammering it: trip the breaker, fail fast for a cooldown, then probe before closing. This sheds load from a struggling service so it can recover, and frees your own resources instead of queuing them against a black hole.
- Graceful degradation over total failure. Decide what a partial outage looks like. Serve stale cache when the source is down, hide the recommendations widget when its service times out, queue the write to apply later — a degraded answer often beats an error page. Know which features are essential and which can shed.
- Bulkheads for isolation. Do not let one slow dependency consume the resources every other request needs. Separate pools, queues, or limits per dependency keep a failure contained to the feature that owns it.
What to decide for each boundary
For every call that can fail, have an answer to: how long do I wait (timeout)? do I retry, how many times, with what backoff? is the operation safe to repeat (idempotency)? what do I do when it is down for a while (degrade, breaker)? what does the caller see? "It will probably work" is not one of the answers.
Anti-patterns
- No timeout. The single most common resilience bug. An unbounded wait turns a downstream slowdown into your own thread exhaustion and outage.
- Retrying everything, immediately, forever. Retrying non-transient errors, with no cap and no backoff, converts a small failure into a self-inflicted DDoS on the service trying to recover.
- Retrying non-idempotent writes. Duplicate charges, duplicate emails, duplicate orders — the data-corruption bug that hides until a flaky network triggers it.
- Catch-all that swallows the failure.
catch (e) {}around a remote call hides the failure from logs and metrics, so the outage is invisible until users report it. Handle it deliberately, and emit the signal. - Hardening uniformly. Wrapping every in-process function in retries and breakers adds complexity where there is no boundary to protect. Spend the effort at the boundaries that actually fail.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

