resilience
Skill2 starsChanged 2 months agoMITView on GitHub
Model-invoked discipline for designing or reviewing failure behavior across remote dependencies, durable asynchronous work, and shared-capacity boundaries. Use when a change needs deadlines, cancellation, retries, idempotency, overload control, partial-failure recovery, or evidence requirements for these controls.
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
- MANVENDRA-github/agentrytheir own version, first seen Jul 6, 2026
Used with
Projects with it also use convention-learner, opentelemetry and 10 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
wpankSkillcaching
Caching strategies, invalidation, eviction policies, HTTP caching, distributed caching, and anti-patterns. Use when designing cache layers, choosing eviction policies, debugging stale data, or optimizing read-heavy workloads.
Also in 4 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
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
- MANVENDRA-github/agentry★ 0same 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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- humanizer-zhSkill
- backend-patternsSkill
- frontend-patternsSkill
- security-reviewSkill
- fastapiSkill
- python-projectSkill
- ts-backendSkill
- ts-frontendSkill
- readmeSkill
- codebase-designSkill
- code-reviewSkill
- coding-standardsSkill
- domain-modelingSkill
- fixSkill
- grillingSkill
- living-docs-governanceSkill
- planSkill
- prototypeSkill
- publish-ticketsSkill
- session-handoffSkill
- specSkill
- systematic-debuggingSkill
- tddSkill
- verificationSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
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 34
effect: read-only, naturally idempotent, idempotency-key guarded, conditionally safe, or non-idempotent.
- Distinctive: line 47
Read Failure budgets and retries when the change waits on a remote dependency or may repeat an attempt.
- Distinctive: line 64
Read Load, isolation, and recovery for overload, circuit, backpressure, and partial-failure branches.
- Distinctive: line 90
Read Failure evidence. Select scenarios that must prove the scoped invariant, including the recovery path rather than only initial …
- Distinctive: line 117
Keep one retry owner per call path.
- Distinctive: line 121
Treat circuit breakers, retries, and queues as stateful operational mechanisms with metrics and recovery behavior, not decorators.
“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
Design and review how a scoped operation fails, sheds load, and recovers. Preserve business correctness before availability: a fast duplicate charge or a successful response for lost work is not resilient.
This Skill covers resilience policy and failure-evidence requirements. Adjacent concerns have their own stages and skills when loaded: architecture integration (backend-patterns or frontend-patterns), desired behavior (spec), the executable verification contract (plan), exploit paths (security-review), and the current implementation gate verdict (verification).
Workflow
1. Gate applicability and pin the failure boundary
Apply this Skill when failure crosses a remote dependency, durable queue or worker, multi-step side-effect boundary, or shared capacity limit. Ordinary local exceptions, error type design, response envelopes, user messages, and local async control flow are out of scope: stop with OUT OF SCOPE and name the concern the request actually belongs to — its skill, when loaded, is that concern's full procedure; a candidate still in processing is a PENDING pointer to its source path, never a pretend-available owner.
Inspect the relevant code, configuration, tests, and operational signals. Record:
- caller and dependency or producer and consumer;
- synchronous, asynchronous, scheduled, streaming, or mixed execution;
- side effects and the system that durably owns each one;
- caller latency budget, capacity limit, delivery guarantee, and recovery objective when known;
- existing timeout, cancellation, retry, queue, concurrency, and reconciliation controls.
Mark missing facts as assumptions. If side-effect ownership or the authoritative success condition cannot be established, return a blocked resilience assessment with the exact evidence needed; do not invent a policy.
Completion criterion: every affected boundary, side effect, and authoritative success signal is named or explicitly unresolved.
2. Classify attempts and outcomes
For each operation, classify:
- effect: read-only, naturally idempotent, idempotency-key guarded, conditionally safe, or non-idempotent;
- failure: transient, permanent, overload, deadline exhaustion, cancellation, malformed input, or unknown;
- outcome: confirmed success, confirmed failure, or unknown after a timeout, disconnect, worker death, or lost acknowledgement;
- duplication: impossible by contract, tolerated, deduplicated, or correctness-breaking.
A timeout bounds the caller's wait; it does not prove that remote work stopped. Treat every timed-out side-effecting attempt as unknown until a durable result, idempotency record, or reconciliation path resolves it.
Completion criterion: no retry or replay decision remains attached to an unclassified effect or outcome.
3. Set budgets before controls
Define one end-to-end deadline and allocate remaining time across attempts. State how cancellation propagates and what happens when the downstream operation cannot be cancelled. Bound retries by elapsed time and attempt count. Bound queued work by capacity and age.
Read Failure budgets and retries when the change waits on a remote dependency or may repeat an attempt.
Completion criterion: waiting, retrying, and queueing each have an observable upper bound stated as a chosen policy value or an inherited default, or the assessment names the missing owner who must choose it.
4. Select the smallest safe control set
Choose controls from the actual failure mode:
| Pressure | Start with | Required safety condition |
| Slow or hung dependency | deadline + cancellation propagation | remaining budget reaches each remote wait |
| Transient failed attempt | bounded backoff with jitter | repeat is safe and retry layer is singular |
| Unknown write outcome | idempotency record or status reconciliation | same operation identity returns one effect |
| Capacity saturation | admission control, bounded buffer, concurrency cap | overload is rejected or degraded explicitly |
| Correlated dependency failure | bulkhead; circuit breaker when justified | fallback preserves correctness; probes are bounded |
| Multi-step partial failure | durable state + resume, compensate, or reconcile | every intermediate state has an owner and exit |
Read Load, isolation, and recovery for overload, circuit, backpressure, and partial-failure branches. Prefer the least complex set that preserves the invariant; keeping the current design is a candidate when evidence shows it already does so.
Completion criterion: every selected control names the failure it handles, its safety precondition, its cost, and why a simpler option is insufficient.
5. Map controls to enforcement points
Name the concrete call site, queue, transaction, worker, state record, or admission boundary that enforces each decision. Include propagation across layers: nested libraries, clients, service meshes, brokers, and workers can silently add retries or timeouts. Each bound chosen in step 3 also names the planning contract item that will observe it. When the plan has no such item, report that gap to the planning owner rather than supplying a value locally.
Route adjacent concerns without absorbing them:
| Concern | Skill (when loaded) |
| Error values, cause preservation, catch behavior, cleanup | coding-standards |
| Public error behavior, codes, and compatibility | spec |
| Unknown cascading failure or silent swallowing diagnosis | systematic-debugging |
| Sensitive details exposed in responses or logs | security-review |
| Diagnostic context, structured logs, metrics, and traces | backend-patterns observability guidance |
| User-visible pending, degraded, error, and recovery presentation | frontend-patterns |
| Deadlines, retries, circuit breaking, overload, recovery | resilience |
Resilience consumes error signals from those concerns; it does not create a universal error hierarchy or response envelope.
Completion criterion: each policy has exactly one enforcement point in the system, every adjacent concern above is routed to its skill when loaded or recorded as PENDING, and aggregate attempts and deadlines across layers are accounted for.
6. Define failure-evidence requirements
Read Failure evidence. Select scenarios that must prove the scoped invariant, including the recovery path rather than only initial rejection. Prefer deterministic fakes or controllable test dependencies; require explicit authority and blast-radius controls for production fault injection.
For pre-implementation design, pass these evidence requirements to the planning stage — its executable verification contract (plan when loaded). For review of an existing implementation, pass commands or procedures, observations, expected signals, scope, assumptions, and worktree state to the verification stage (verification when loaded). This Skill may report design gaps; it does not issue READY, NOT READY, or BLOCKED for the implementation.
Completion criterion: every claimed control has a required failure scenario, an observable expected result, and a named downstream stage.
Output Contract
Assessment status: COMPLETE | BLOCKED | OUT OF SCOPE (resilience assessment only)
Boundary and invariant
Operation and outcome classification
Budgets and capacity bounds (value, source: chosen policy or inherited default, enforcement point)
Current controls
Selected controls and enforcement owners
Rejected alternatives and costs
Partial-failure and recovery path
Failure-evidence requirements
Assumptions, unresolved facts, and required owners
Verification handoff: PENDING | <existing fresh report reference>A clean assessment is valid. Report it only after the failure-evidence contract covers the affected boundaries; do not manufacture controls or findings.
Guardrails
- Repeat a side-effecting operation only when idempotency or reconciliation makes the unknown outcome safe.
- Keep one retry owner per call path; include library, proxy, mesh, broker, worker, and client attempts in the aggregate budget.
- Propagate remaining deadlines rather than resetting a full timeout at each layer.
- Bound buffers and concurrency; queueing is load storage, not load removal.
- Define fallback correctness and freshness before calling degradation successful.
- Treat circuit breakers, retries, and queues as stateful operational mechanisms with metrics and recovery behavior, not decorators.
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.

