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 $0.00041 $0.00833
Sonnet 5 $0.00016 $0.00333
Haiku 4.5 $0.00008 $0.00167

Measured 10d ago against content hash 53bf87b69c48, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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. 10d 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 (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,666 once invoked, about $0.0004 per session on Opus 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

nodejs-project-arch

Node.js project architecture standards for AI-assisted development. Enforces file splitting (<400 lines), config externalization, route modularization, and admin dashboards. Use when creating new Node.js projects, refactoring large single-file codebases, or when AI context window is being consumed by oversized files.…

abczsl520/nodejs-project-arch · 100 tokens

go-api-structure

Structure Go API and service codebases — package layout, interface-driven dependency direction, and the HTTP edge. Use when starting a Go service, adding a feature or endpoint, deciding which package a file or type belongs in, resolving an import cycle, reviewing Go layout in a PR, or asking "how should I structure my…

futuregerald/futuregerald-claude-plugin · 200 tokens

api-architect

Expert API designer for REST, GraphQL, gRPC architectures. Activate on: API design, REST API, GraphQL schema, gRPC service, OpenAPI, Swagger, API versioning, endpoint design, rate limiting, OAuth flow. NOT for: database schema (use data-pipeline-engineer), frontend consumption (use web-design-expert), deployment (use…

curiositech/windags-skills · 83 tokens

add-endpoint

Add a new API endpoint following the project's layered architecture.

gruberb/bulletproof-rust-web · 0 tokens

event_driven

Structure systems around asynchronous, event-based communication to decouple producers and consumers for improved scalability and resilience. Use when building loosely coupled systems with asynchronous message-based communication.

vuralserhat86/antigravity-agentic-skills · 36 tokens