agentleFS
TJM-NZTJM-NZ/claude-skills/resilience/SKILL.md

resilience

Skill0 starsChanged 10 days agoMITView on GitHub

Resilience audit - maps every network and IO call and checks it for timeout, retry discipline, isolation, fallback and blast radius, plus error handling and health probes. Finds where one slow or failing dependency becomes a full outage or a retry storm. Stack-agnostic.

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

Files
SKILL.md

Reliability engineer. Find where a single dependency failure, slowdown or burst of load turns into an outage. Resilience mistakes are rarely visible when everything works, so reason from failure modes: for each call, ask "what happens when this is slow, down, or wrong?"

Scope: timeouts and deadlines, retries, isolation, degradation, error handling, health probes. Not in scope: seeing failures in production (observability) | speed under normal load (perf-check) | correctness of logic (technical-review) | attack handling (security-audit). In-process function calls aren't a resilience boundary; the boundary is network, disk, queue, process and third-party code.

Workflow

  1. Context. Load references/method.md. Establish what must keep working when things fail (the critical path), what can degrade, and what the runtime does on failure (restarts, autoscaling, load balancer). Ask only what the repo can't answer.
  2. Detect stack. Glob manifests (package.json, pyproject.toml, requirements.txt, go.mod, Cargo.toml, Gemfile, pom.xml, excluding vendored dirs) and deployment files (Dockerfile, compose, Kubernetes, CI). Note HTTP clients, database drivers/ORM, queue and job systems, cache, third-party SDKs, and any resilience library already present. Don't recommend adding a library the project already has an equivalent for.
  3. Build the dependency map. List every outbound call and what it blocks: dependency, caller path (user-facing or background), timeout, retry, fallback. The gaps in that table drive the findings.
  4. Scope. Offer: Full (all modules) | Quick (timeouts, retries, errors) | Targeted (user picks a module or dependency). Skip if already specified.
  5. Analyse. Load the chosen modules. Grep hits are leads: read the code, confirm the call is on a real path, and trace what happens on failure.
  6. Report in the format below.
ModuleCovers
method.mdFailure-mode thinking, dependency map, criticality, evidence rules
timeouts.mdConnect/read/total timeouts, database timeouts, deadline propagation, queue and job limits
retries.mdWhen to retry, backoff and jitter, retry budgets, layered amplification, idempotency, Retry-After
isolation.mdCircuit breakers, bulkheads, load shedding, rate limits, pool separation, queues
degradation.mdFallbacks, stale data, feature shedding, what must fail loudly
errors.mdClassification, propagation, swallowed errors, error contract, startup failure
health-probes.mdLiveness, readiness, startup; why dependency checks cascade

Confidence

LevelMeaning
ConfirmedThe missing or wrong control is visible and the call is on a live path (no timeout on a user-facing HTTP call)
LikelyCode is silent but a library default, proxy or platform setting may cover it; name the default to check
PossibleDepends on traffic, topology or configuration not visible; goes under "Needs verification"

Library defaults decide many of these (some clients have no timeout, some have a sane one). State the default you are assuming and where to confirm it.

Severity

By blast radius:

  • Critical: can take down the whole service or corrupt data: no timeout on a call in a shared worker pool, retries on non-idempotent writes (duplicate charges, emails), unbounded retry or queue growth, errors swallowed on a data-changing path, liveness probe that checks a dependency.
  • High: a dependency outage or slowdown degrades the critical path: retry without backoff or jitter, retries stacked across layers, no isolation of a slow dependency, readiness that always says OK.
  • Medium: non-critical feature fails hard when it could degrade, inconsistent error shapes, hardcoded timeouts, no cap on retry time.
  • Low: list in one line.

Report format

# Resilience Audit: [project]

Critical path: [...] | Dependencies: [list] | Scope: [...]
Findings: Critical X | High Y | Medium Z | Low W   (Confirmed a | Likely b | Possible c)

## Dependency map
| Dependency | Used by (path) | Timeout | Retry | Isolation | Fallback |

## [SEVERITY] Title   (timeout | retry | isolation | degradation | errors | probes) · [confidence]
- Location: `file:line` (+ N other places)
- Failure mode: what goes wrong, and how it spreads
- Blast radius: which users, paths or services are affected
- Evidence: code, or the absence of a control
- Fix: concrete change, with the value or policy it should use
- Verify: how to test it (fault injection in a test environment, a unit test with a fake that hangs/errors)

## Needs verification

Group repeated patterns ("14 HTTP calls with no timeout") rather than one finding each. Skip test files and generated clients.

Safety

Recommend failure tests (stopping a dependency, injecting latency, chaos tooling) only for test or staging environments, and never run them. Don't edit code in the audit; offer fixes after.

After the report

Offer: fix Critical and High findings | add a shared HTTP-client wrapper with timeout, retry and budget policy | add failure-mode tests | re-audit. Make no changes until the user picks.

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.