/sre-skills:chaos-engineering-and-resilience-testingfrom sre-skills
Guides running chaos engineering experiments with steady-state hypotheses, blast radius control, and fault-injection tools (Chaos Mesh, LitmusChaos, AWS FIS) to validate system resilience. Includes structured game days and production graduation.
Ships in sre-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Architectural resilience — "we have three replicas," "we failover across availability zones," "the circuit breaker handles that dependency being slow" — is an assumption until it has been deliberately tested under real fault conditions; otherwise the first real test of that assumption is an actual outage, at the worst possible time, with no rollback ready. Chaos engineering is the discipline of injecting controlled failure into a system to verify that a measurable steady-state hypothesis holds under turbulent conditions, with blast radius deliberately limited so the experiment itself never becomes the incident it was meant to prevent. This skill covers defining a testable steady-state hypothesis, choosing and scoping fault-injection tools, running a structured "game day" exercise, and graduating experiments from staging to carefully controlled production runs — deliberately, with the same change-management rigor as a production deployment.
Define a measurable steady-state hypothesis tied to an existing SLI/SLO, not a vague expectation:
Hypothesis: during the experiment, checkout success rate stays
>= 99.5% and p99 latency stays < 400ms (same thresholds as the
service's existing SLO dashboard).
If you can't state the hypothesis as a number you're already measuring, define that measurement first — don't run the experiment against a vague "should be fine."
Start with the smallest reasonable blast radius, in a non-production environment first: a single pod/instance, a small percentage of traffic, a short duration — with an explicit automatic abort condition wired to the same steady-state metric, plus a manual kill switch as backup.
Warning: Running a chaos experiment with no blast-radius limit and no automated abort condition — especially directly in production — is a destructive action: it can turn a controlled experiment into a genuine, uncontrolled outage with no faster path to recovery than a real incident. Always scope blast radius explicitly and always define an abort trigger before starting.
Write the experiment definition. Chaos Mesh example — killing one pod, once, scoped to a label selector and namespace:
apiVersion: chaos-mesh.org/v1alpha1
kind: PodChaos
metadata:
name: payments-api-pod-kill
namespace: payments
spec:
action: pod-kill
mode: fixed
value: "1" # exactly one pod, not a percentage of all
selector:
namespaces:
- payments
labelSelectors:
app: payments-api
scheduler:
cron: "@once"
A LitmusChaos experiment expresses the same idea as a
ChaosEngine/ChaosExperiment CR referencing the pod-delete
experiment with a scoped appinfo selector. AWS FIS expresses an
infrastructure-level equivalent as an experiment template targeting
specific EC2 instances/AZs by resource tag, with a stopCondition
bound to a CloudWatch alarm — the FIS stopCondition is the
equivalent of the automated abort trigger and should always be set,
never left as "none."
Run the experiment while watching the steady-state dashboard live. If the hypothesis holds, gradually increase blast radius on subsequent runs (more pods, longer duration, an added fault type). If it breaks, abort immediately via the automated trigger or the manual kill switch, treat the deviation like a real incident (declare severity, assemble IC/roles per incident-response-and-on-call-management), and drive the finding through the same action-item process as blameless-postmortem-and-root-cause-analysis.
Run a structured "Game Day" — a scheduled, cross-team exercise combining multiple fault scenarios (e.g. an AZ outage simulated together with a downstream dependency timeout) with an explicit facilitator, observers, and a scribe, run exactly like a live incident drill using the same IC/Comms/Tech-Lead roles from incident-response-and-on-call-management. Announce it in advance to anyone who might otherwise mistake it for a real incident, and debrief immediately afterward while details are fresh.
Graduate to production only deliberately — after repeated clean runs in staging, with progressively larger (but still bounded) blast radius, explicit stakeholder sign-off, off-peak scheduling, and an automated abort trigger wired to real production SLIs (not solely human judgment in the moment). Treat a production chaos experiment with the same change-management rigor as a deployment — announced, scheduled, with a rollback path ready; the traffic-shifting/rollback mechanics in blue-green-canary-deployments are a reasonable abort mechanism for experiments that involve routing traffic away from an affected instance/AZ.
Feed findings back deliberately. A broken assumption becomes a tracked action item through the postmortem process, not just a Slack message. A validated assumption becomes documented evidence supporting the organization's disaster-recovery-and-backup-strategy — chaos engineering is how DR/HA assumptions get empirically tested, rather than asserted in a document that's never been exercised.
Symptom: A chaos experiment is run directly against production with no blast-radius limit and no abort condition, and it causes a full, customer-visible outage that takes as long to recover from as a genuine incident would have. Fix: Always scope blast radius explicitly (a label selector, a fixed count/percentage, a single AZ) and always define an automated abort trigger tied to a real SLI before the experiment starts; rehearse in staging first and graduate deliberately (steps 2 and 6).
Symptom: The team declares an experiment "passed" or "failed" based on a vague feeling ("seemed fine") rather than a specific measurement, and later a real incident reveals the same failure mode the experiment supposedly already covered. Fix: Define the steady-state hypothesis as a concrete number tied to an existing SLI/SLO before running anything (step 1) — if it can't be stated numerically, the experiment isn't ready to run yet.
Symptom: The team runs chaos experiments only in staging, year after year, because "production is too risky," and a real production incident later reveals a failure mode that staging never actually represented (different scale, different traffic mix, different AZ topology). Fix: Graduate deliberately with small, reversible, well-announced production experiments (step 6) rather than treating "never in production" as a permanent policy — validated staging behavior does not guarantee production behavior at real scale.
Symptom: A game day surfaces a real gap (e.g. a circuit breaker with no configured timeout), it's discussed in the debrief, and then nobody revisits it — six months later a real incident hits the exact same gap. Fix: Run every chaos/game-day finding through the same action-item tracking as a postmortem (owner, ticket, due date) rather than letting it live only in a debrief doc.
Symptom: Every experiment so far has only ever killed an application pod; the team has never tested a downstream dependency timing out, a full AZ loss, or a DNS failure — exactly the failure modes most likely to cause a real major outage. Fix: Deliberately vary fault type across experiments (pod kill → network latency/partition → downstream dependency failure → AZ/region loss) instead of repeating the same, easiest experiment.
Scenario: the payments-api team wants to validate that losing one
of three replicas doesn't cause customer-visible impact, given a
configured PodDisruptionBudget.
PodChaos definition from step 3 kills exactly one of three
payments-api pods, once, with an automatic abort if error rate
crosses 2% during a 5-minute observation window. Result: steady state
holds — the deployment's redundancy behaves as claimed.NetworkChaos experiment injects
200ms of latency toward the downstream fraud-check dependency to test
timeout/circuit-breaker handling. Result: the hypothesis breaks — the
circuit breaker had no configured timeout, and checkout latency spikes
past the SLO threshold with customer-visible impact. The experiment is
aborted via the automated trigger, treated as an incident, and the gap
becomes a tracked postmortem action item (add an explicit timeout and
fallback path to the fraud-check client).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/blameless-postmortem-and-root-cause-analysisGuides running a blameless postmortem after an incident — using a consistent template (timeline, impact, root cause, contributing factors, action items), facilitating without assigning individual blame, applying 5-whys/contributing-factor analysis without oversimplifying to one root cause, and tracking action items through to completion. Use when a user asks to "write a postmortem", "run a root-cause analysis", "do a 5-whys on this incident", "make sure this incident doesn't get blamed on one person", or "our postmortem action items never actually get done."
/capacity-planning-and-load-testingGuides demand forecasting and load/stress/soak testing methodology (using tools such as k6, Locust, or JMeter) to find a system's real bottleneck — CPU, memory, a connection pool, or a downstream dependency — before production traffic finds it, and to set autoscaling/capacity triggers from actual test evidence rather than guesses. Use when a user asks to "capacity plan for an upcoming launch/event", "write a load test", "find out what breaks first under load", "our load tests pass but production still falls over", or "set our autoscaling thresholds correctly."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin sre-skillsOther plugins' skills for the same job