agentleFS
RinisnotarobotRinisnotarobot/rinco-pi-skills-commands/skills/workflows/resilience/SKILL.md

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

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.
  • codewithmukeshSkill

    convention-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

  • codewithmukeshSkill

    opentelemetry

    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

  • MovGP0Skill

    modern-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

  • wpankSkill

    caching

    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

  • hongyuancSkill

    vertical-slice

    Build and evaluate a production-quality vertical slice before advancing from Pre-Production to Production.

    Also in 3 projects that use this

  • MicrosoftSkill

    authentication

    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

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
  1. Distinctive:

    effect: read-only, naturally idempotent, idempotency-key guarded, conditionally safe, or non-idempotent.

    line 34
  2. Distinctive:

    Read Failure budgets and retries when the change waits on a remote dependency or may repeat an attempt.

    line 47
  3. Distinctive:

    Read Load, isolation, and recovery for overload, circuit, backpressure, and partial-failure branches.

    line 64
  4. Distinctive:

    Read Failure evidence. Select scenarios that must prove the scoped invariant, including the recovery path rather than only initial …

    line 90
  5. Distinctive:

    Keep one retry owner per call path.

    line 117
  6. Distinctive:

    Treat circuit breakers, retries, and queues as stateful operational mechanisms with metrics and recovery behavior, not decorators.

    line 121

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

PressureStart withRequired safety condition
Slow or hung dependencydeadline + cancellation propagationremaining budget reaches each remote wait
Transient failed attemptbounded backoff with jitterrepeat is safe and retry layer is singular
Unknown write outcomeidempotency record or status reconciliationsame operation identity returns one effect
Capacity saturationadmission control, bounded buffer, concurrency capoverload is rejected or degraded explicitly
Correlated dependency failurebulkhead; circuit breaker when justifiedfallback preserves correctness; probes are bounded
Multi-step partial failuredurable state + resume, compensate, or reconcileevery 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:

ConcernSkill (when loaded)
Error values, cause preservation, catch behavior, cleanupcoding-standards
Public error behavior, codes, and compatibilityspec
Unknown cascading failure or silent swallowing diagnosissystematic-debugging
Sensitive details exposed in responses or logssecurity-review
Diagnostic context, structured logs, metrics, and tracesbackend-patterns observability guidance
User-visible pending, degraded, error, and recovery presentationfrontend-patterns
Deadlines, retries, circuit breaking, overload, recoveryresilience

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.