AGENT SKILL

ac-resilience-budgets

Bounding failure so it stays local: timeout budgets that add up across a call chain, retry budgets and why retries amplify outages, jittered backoff, circuit breaking and half-open recovery, bulkheads and pool isolation, load shedding and admission control, degradation modes chosen in advance, and the written resilience record. It explains how failure propagates and how to bound it; it never guarantees availability and never replaces capacity planning. Use when asking "timeout budget", "retry storm", "exponential backoff", "jitter", "circuit breaker", "bulkhead", "load shedding", "admission control", "graceful degradation", "brownout", "why did one slow service take everything down". Not for SLO definition and error budgets (ac-reliability), not for failure injection and capacity testing (ac-chaos-and-capacity-testing), not for provider SDK retry policy (ac-llm-api-integration).

License 许可
MIT
最近更新
2026-11-15
Stars
★ 81
Forks
17

01 前言 Front Matter

name
ac-resilience-budgets
status
seedling
license
MIT
metadata
{ "domain": "software-engineering" }
description
Bounding failure so it stays local: timeout budgets that add up across a call chain, retry budgets and why retries amplify outages, jittered backoff, circuit breaking and half-open recovery, bulkheads and pool isolation, load shedding and admission control, degradation modes chosen in advance, and the written resilience record. It explains how failure propagates and how to bound it; it never guarantees availability and never replaces capacity planning. Use when asking "timeout budget", "retry storm", "exponential backoff", "jitter", "circuit breaker", "bulkhead", "load shedding", "admission control", "graceful degradation", "brownout", "why did one slow service take everything down". Not for SLO definition and error budgets (ac-reliability), not for failure injection and capacity testing (ac-chaos-and-capacity-testing), not for provider SDK retry policy (ac-llm-api-integration).

02 资源文件 10

03 SKILL.md 正文

Resilience budgets

Overview

Failure spreads through the paths that connect services, and the mechanism is usually time rather than errors. A caller waits on a dependency with no timeout, its own connection pool fills with waiting requests, its callers queue behind it, and a single slow dependency becomes a system-wide outage without a single error being returned. Resilience budgets are the set of limits that stop that propagation.

This skill covers those limits: how timeouts compose across a call chain, why retries amplify an outage unless they are bounded by a budget, how circuit breakers and bulkheads isolate a failing path, how load shedding protects the requests that can still be served, and how to choose a degradation mode before it is needed. Capacity testing and SLO definition belong to other skills.

Primary sources: https://sre.google/ and https://aws.amazon.com/builders-library/.

When to use

  • When designing the failure behaviour of a service that calls others.
  • When an outage was caused by one dependency rather than by the service itself.
  • When retry policy is being set and its amplification is not considered.
  • When deciding what to shed or degrade under overload.

When NOT to use

  • For SLO definition, error budgets, and alerting (use ac-reliability).
  • For failure injection and capacity measurement (use ac-chaos-and-capacity-testing).
  • For a specific SDK's built-in retry behaviour (use ac-llm-api-integration).

Subskill Index

Leaf Domain segment Scope (one line)
subskills/timeout-budgets.md software-engineering/timeout-budgets How per-call timeouts compose, and the deadline that must propagate.
subskills/retry-budgets.md software-engineering/retry-budgets Why retries amplify, and the budget that bounds them.
subskills/backoff-and-jitter.md software-engineering/backoff-and-jitter Exponential backoff, jitter, and the synchronisation it prevents.
subskills/circuit-breaking.md software-engineering/circuit-breaking Open, half-open, closed, and the recovery that must be proven.
subskills/bulkheads-and-pools.md software-engineering/bulkheads-and-pools Isolating a failing dependency's resource use from everything else.
subskills/load-shedding.md software-engineering/load-shedding Admission control and dropping work deliberately rather than failing.
subskills/resilience-record.md software-engineering/resilience-record The written record: budgets, degradation modes, and their tests.

Status and honest limits

Resilience mechanisms add failure modes of their own: a circuit breaker that opens too eagerly removes a working dependency, a timeout set too tight converts latency into errors, and a retry budget sized without measurement either does nothing or amplifies. Every mechanism here needs a test that shows it engages at the intended point, and nothing in this skill guarantees availability.

04 同仓库更多 Skills

jiayaoqijia
jiayaoqijia/cryptoskill

troves

Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

trade

Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

staking

Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

send

Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

portfolio

View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

multi-swap

Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.

★ 81