resilience

resilience is a skill for Claude Code from bricerising/enterprise-software-playbook. It costs 81 tokens per session (1,666 once invoked), scanned A, original, Apache-2.0.

A guide for making services tolerate failures when they call other systems or process queues and events. It uses time limits, safe retries, duplicate-prevention keys, circuit breakers, and controlled fallback behavior.

In plain words
What is it for?
Use it to harden HTTP, gRPC, database, cache, queue, stream, and third-party API calls, and to document how each dependency should fail.
Why use it?
It limits the damage caused by timeouts, server errors, delayed queues, and unreliable external services, preventing one failure from spreading.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the enterprise-software-playbook plugin — 16 skills shipped together

Good fit Use it to harden HTTP, gRPC, database, cache, queue, stream, and third-party API calls, and to document how each dependency should fail.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bricerising/enterprise-software-playbook/resilience
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bricerising/enterprise-software-playbook --skill resilience
Clone the repo
git clone --depth 1 https://github.com/bricerising/enterprise-software-playbook

Made for: Claude Code.

Or install enterprise-software-playbook, the plugin that ships this one along with the rest of its 16 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for resilience

README.md
[![agentmods](https://agentmods.dev/badge/skills/bricerising/enterprise-software-playbook/resilience/github.svg)](https://agentmods.dev/skills/bricerising/enterprise-software-playbook/resilience)
Your own site
<a href="https://agentmods.dev/skills/bricerising/enterprise-software-playbook/resilience"><img src="https://agentmods.dev/badge/skills/bricerising/enterprise-software-playbook/resilience/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for resilience

Your own site · 80×15
<a href="https://agentmods.dev/skills/bricerising/enterprise-software-playbook/resilience"><img src="https://agentmods.dev/badge/skills/bricerising/enterprise-software-playbook/resilience.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,666 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.01666
Opus 5.5 $0.00032 $0.00666
Sonnet 5.5 $0.00016 $0.00333
Haiku 4.5 $0.00008 $0.00167

Measured 1mo ago against content hash 53bf87b69c48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

resilience scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/resilience/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Resilience

Overview

Make I/O failures boring: set explicit timeouts, retry safely, keep operations idempotent, and prevent cascades with circuit breakers and bulkheads.

Enterprise systems fail partially (timeouts, 5xx, queue lag). Resilience patterns make those failures bounded and observable.

Inputs / Outputs

Inputs: I/O boundary code (HTTP/gRPC/DB/cache/queue clients); dependency map (what calls what). Outputs: Hardened code with resilience patterns applied (timeouts, retries, idempotency, breakers, bulkheads); failure model documentation. Consumed by testing and finish.

Workflow

  1. Identify the I/O boundary: HTTP, gRPC, DB, cache, queue/stream, third-party API.

  2. Define the failure model:

    • which failures are expected/transient vs permanent
    • what “success” means under degradation (fallback? partial data? fail fast?)
  3. Apply patterns in this order:

    1. Timeouts + cancellation
    2. Idempotency (especially if retries exist)

    GATE: If adding retries, idempotency (pattern 2) MUST be addressed first. Never retry a non-idempotent operation without an idempotency key or server-side dedupe.

    1. Retries with backoff + jitter (bounded)
    2. Circuit breaker (when a dependency is unhealthy)
    3. Bulkheads / concurrency limits (to protect your own resources)
  4. Add observability (retry counts, breaker state, queue lag, error codes). Each metric should have a named decision it supports and an owner — see observability.

  5. Add consumer-visible tests for semantics; add a local smoke test for failure modes.

Minimum viable execution

When context or time is constrained, these are the load-bearing steps:

  1. Identify I/O boundaries (step 1) — what calls what.
  2. Apply timeout + cancellation (step 3.1) — mandatory for every outbound call.
  3. Ensure idempotency before retries (step 3.2-3.3) — never retry without it.
  4. Verify (step 5) — test that timeout errors are stable and retries are bounded.

Read the full file on GitHub · 140 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 140 lines · 81 tokens per session scan A 53bf87b69c48

Subscribe to this mod's changes

resilience is a skill published in the GitHub repository bricerising/enterprise-software-playbook (8 stars, last pushed 8d ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,666 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

frontmcp-guides

Tutorials, end-to-end walkthroughs, and complete reference projects for FrontMCP. Use when you want a getting-started guide, a full worked example, or to learn best practices by following a step-by-step build rather than a single API reference. Includes a beginner weather-API server (tool plus static resource, Zod…

agentfront/frontmcp · 157 tokens

dotnet-aspnetcore-service

Use when building or extending a C# service on ASP.NET Core - Minimal APIs or controllers, DI and options, EF Core with Npgsql, ProblemDetails, HttpClientFactory resilience, async and cancellation.

makifbaysal/tasktrooper · 48 tokens

node-typescript-service

Use when building or extending a TypeScript service on Node.js - Fastify, NestJS, Express or Hono, runtime validation at the boundary, strict types, the repository's ORM and migrations, async error handling, graceful shutdown.

makifbaysal/tasktrooper · 51 tokens

rust-axum-service

Use when building or extending a Rust service - axum on tokio (or the repository's actix-web / rocket), typed errors with IntoResponse, serde at the boundary, sqlx queries and migrations, never blocking the runtime, tracing, clippy.

makifbaysal/tasktrooper · 57 tokens

go-hexagonal-architecture

Use when adding a use case, port, repository or adapter in a Go service — where each piece goes, how errors and transactions cross layers, and how to check the import direction.

makifbaysal/tasktrooper · 43 tokens

quarkus-service-architecture

Use when building or extending a Java service with Quarkus - layered architecture, JAX-RS resources, CDI beans, Panache persistence, and native-friendly patterns.

makifbaysal/tasktrooper · 40 tokens