error-resilience
Installation
SKILL.md
Error Resilience — Fault-Tolerant Systems
Mandatory Pre-Flight Context Inspection
Before writing retry logic, circuit breakers, or error handling routines, you MUST inspect:
- Idempotency Key Rule for Retries → Require explicit idempotency keys when retrying state-changing mutations (POST/PUT); ban un-keyed blind retries
- Exponential Backoff with Full Jitter → Implement randomized full jitter with capped exponential delays (
sleep = rand(0, min(cap, base * 2^attempt))); ban fixed-delay retry loops - Global Request Timeout Budgets → Always pass and respect
AbortSignal.timeout(ms)to cancel downstream calls before connection pool starvation occurs - Operational vs Programmer Error Split → Catch and recover strictly from known operational errors (network blips, rate limits); fail fast on programmer bugs (
TypeError, null references)
Activation Boundaries
- Activate when: Building resilient distributed systems, implementing retry loops, circuit breakers, timeout budgets, bulkhead isolation, and React error boundaries.
- DO NOT activate when: Writing localized pure mathematical transformations or simple CSS styling.