agentleFS
divyekantdivyekant/resilience/SKILL.md

resilience

Skill0 starsChanged 3 months agoMITView on GitHub

Use when specifying, designing, implementing, reviewing, deploying, operating, or investigating software where failures can cross component boundaries. Especially useful for external dependencies, concurrency, retries, timeouts, state transitions, destructive operations, authentication, automation, migrations, degraded operation, incidents, and recovery.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use de-sloppify, instinct-system 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.
  • ResgridSkill

    de-sloppify

    Systematic code cleanup pipeline for .NET projects. Runs 7 ordered steps: formatting, unused usings, analyzer warnings, dead code removal, TODO resolution, sealed class audit, and CancellationToken propagation. Each step is verified independently with tests between phases. Load this skill when: "clean up", "de-sloppify", "tidy up", "remove dead code", "code cleanup", "housekeeping", "tech debt", "fix warnings", "seal classes", "add CancellationToken", "unused usings", "format code".

    Also in 3 projects that use this

  • ResgridSkill

    instinct-system

    Confidence-scored instinct system for learning project-specific patterns through an observe-hypothesize-confirm cycle. Instincts start as low-confidence hypotheses and graduate to permanent rules in MEMORY.md once confirmed. Stored per-project in .Codex/instincts.md. Load this skill when you notice a recurring pattern, want to track a project convention, encounter "learn this", "I think they always", "notice a pattern", "instinct", "hypothesis", "confidence", or when starting a session (to load existing instincts).

    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 4 projects that use this

  • sirdavidhuangSkill

    opentelemetry

    Implement OpenTelemetry (OTEL) observability - Collector configuration, Kubernetes deployment, traces/metrics/logs pipelines, instrumentation, and troubleshooting. Use when working with OTEL Collector, telemetry pipelines, observability infrastructure, or Kubernetes monitoring.

    Also in 4 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 5 projects that use this

  • GitHubSkill

    ef-core

    Get best practices for Entity Framework Core

    Also in 3 projects that use this

  • +2 more from Resgrid

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 16 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 16

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use only the sections that affect the current task.

    line 14
  2. Distinctive:

    Add a requirement only when it changes a design or acceptance decision.

    line 22
  3. Distinctive:

    Put containment at the shared boundary when one small guard protects all callers.

    line 27
  4. Distinctive:

    Use bounded retries and timeouts.

    line 28
  5. Distinctive:

    Add only defenses justified by a demonstrated or credible material risk.

    line 31
  6. Distinctive:

    Check for changed coupling, blast radius, visibility, recovery, defense depth, and operator control.

    line 37
  7. Very specific:

    If the change adds no material system risk, say: No material system-risk delta.

    line 43
  8. Distinctive:

    Keep controls available during the failure they must recover.

    line 48
  9. Distinctive:

    Do not force a complex incident into one unique root cause.

    line 53
  10. Distinctive:

    If a required format asks for one root cause, state that no single root cause is supported, then summarize the contributor network in that …

    line 59
  11. Distinctive:

    Check whether the fix adds coupling, hidden failure modes, or operator burden.

    line 64
  12. Distinctive:

    Prefer a small control at the proven boundary over a broad redesign.

    line 65
  13. Very specific:

    When invoked explicitly, provide a visible resilience analysis and concrete decisions.

    line 69
  14. Distinctive:

    Do not create catalogs of speculative failures.

    line 73
  15. Distinctive:

    Do not treat all complexity as harmful.

    line 74
  16. Distinctive:

    Do not blame an operator or stop at the nearest technical trigger.

    line 75
  17. Distinctive:

    Do not simplify away security, accessibility, validation, error handling, or data-loss controls.

    line 76
  18. Distinctive:

    Do not claim certainty that the evidence does not support.

    line 77

“Common” is measured: kept by at least 6 in 10 of the 7 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

Build the minimum resilient solution.

Ponytail removes unnecessary complexity. Resilience ensures that what remains contains failure. Do not add speculative defenses.

Choose the relevant lens

Use only the sections that affect the current task.

Specify and design

  • Identify the material hazard, not every possible failure.
  • Define acceptable degraded behavior and the maximum blast radius.
  • State how people and systems detect, stop, and recover from failure.
  • Include operator decisions and external dependencies in the system boundary.
  • Add a requirement only when it changes a design or acceptance decision.

Implement

  • Trace callers, dependencies, state transitions, and recovery paths before editing.
  • Put containment at the shared boundary when one small guard protects all callers.
  • Use bounded retries and timeouts. Prevent retry amplification.
  • Make ambiguous operations idempotent or reconcile their state before retrying.
  • Preserve useful progress signals and a reversible recovery path.
  • Add only defenses justified by a demonstrated or credible material risk.

Review a change

Compare the failure surface before and after the change. Read enough surrounding code to trace the real path.

Check for changed coupling, blast radius, visibility, recovery, defense depth, and operator control. Treat a new retry, queue, cache, fallback, lock, automation rule, or dependency as a possible failure interaction, not an isolated feature.

Report each material finding as:

location — risk — evidence — affected defense or recovery path — decision or owner

If the change adds no material system risk, say: No material system-risk delta. If evidence is missing, say so instead of guessing.

Operate

  • Distinguish healthy, progressing, degraded, blocked, recovering, and failed states.
  • Keep controls available during the failure they must recover.
  • Make partial progress, saturation, and retry pressure visible.

Investigate an incident

  • Do not force a complex incident into one unique root cause.
  • Describe the contributor network and the defenses that failed or worked.
  • Explain why actions made sense with the information available then.
  • Include production pressure and previous successful gambles when relevant.
  • Separate the trigger from the conditions that let failure spread.

If a required format asks for one root cause, state that no single root cause is supported, then summarize the contributor network in that field.

Remediate

  • Address the failure family, not only the observed sequence.
  • Check whether the fix adds coupling, hidden failure modes, or operator burden.
  • Prefer a small control at the proven boundary over a broad redesign.

Operating modes

When invoked explicitly, provide a visible resilience analysis and concrete decisions. When selected automatically, apply only the relevant constraints inside the requested deliverable. Do not add a separate report, gate, phase, or checklist unless the user asks for one.

Boundaries

  • Do not create catalogs of speculative failures.
  • Do not treat all complexity as harmful. Safety can require necessary complexity.
  • Do not blame an operator or stop at the nearest technical trigger.
  • Do not simplify away security, accessibility, validation, error handling, or data-loss controls.
  • Do not claim certainty that the evidence does not support.

Conceptual source: Richard I. Cook, How Complex Systems Fail.

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.