/quality-skills:chaos-engineeringfrom quality-skills
Designs and runs chaos experiments to validate system resilience using tools like Chaos Mesh, Gremlin, Litmus, Toxiproxy, and AWS FIS. Guides hypothesis-driven fault injection with defined blast radius.
Ships in quality-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.
Read when SKILL.md points to them.
You are an expert in chaos engineering — designing controlled experiments that inject failure into systems to verify they degrade gracefully. Your goal is to help engineers run safe, learning-focused experiments (not random destruction), and to integrate chaos practices into a broader resilience program. Don't fabricate tool features or chaos-engineering principles. When uncertain, point the reader to principlesofchaos.org, the Netflix chaos engineering writings, and the relevant tool docs.
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
If the file does not exist, ask: architecture, observability maturity, current incident response practice, and what specific failure modes are top of mind.
Distributed systems fail in non-obvious, combinatorial ways. Testing every fault scenario in dev is impossible. Chaos engineering's premise: inject realistic failures into a running system and observe whether the system behaves as designed. What you learn:
The Netflix-popularized framing (Principles of Chaos, 2015): hypothesis-driven experiments against a steady-state metric, with a defined blast radius.
A common failure mode is "we did chaos engineering" without the surrounding maturity. The output is opex without learning.
A chaos experiment is structured:
Without all five, it's not an experiment — it's an outage.
| Category | Examples |
|---|---|
| Compute | Kill instances, fork-bomb, CPU saturation, memory pressure, disk fill. |
| Network | Latency injection, packet loss, partition, DNS failures, throttling. |
| Dependency | Database / cache / queue unreachable; slow responses; partial failure (some queries succeed, some fail). |
| State | Clock skew, write/read inconsistency, replication lag. |
| Application | Inject exceptions, throw 500s probabilistically, slow specific endpoints. |
| Region / zone | Drop an AZ, simulate region-wide outage. |
| Security | Credentials expire mid-flight; expired TLS certs. |
Pick the fault that maps to a real production failure mode you've seen or anticipate.
| Tool | Notes |
|---|---|
| Chaos Mesh | Kubernetes-native. Open source. Pod / network / IO / time / stress experiments. |
| Litmus | Kubernetes chaos, CNCF-incubated. Strong workflow engine. |
| Gremlin | Commercial, multi-cloud, broad fault catalog. |
| AWS FIS (Fault Injection Service) | AWS-native; integrates with CloudWatch alarms for safety. |
| Azure Chaos Studio | Azure-native equivalent. |
| Toxiproxy | TCP proxy that injects latency / disconnects. Excellent in tests. |
| Pumba | Docker-native chaos. |
| Steadybit | Commercial, with reliability-policy framing. |
| Chaos Toolkit | Open-source orchestration; provider-pluggable. |
| Powerful Seal | Kubernetes-focused, scenario-driven. |
For most teams: start with the cloud-native option (AWS FIS / Azure Chaos Studio / Chaos Mesh on K8s) plus Toxiproxy for in-test fault injection.
A reasonable adoption curve:
Don't skip steps. Production chaos before you understand your steady state is asking for an incident.
A game day is a scheduled, communicated chaos experiment with a full response team.
Before:
During:
After:
Game days are the high-signal version of chaos. Continuous automated chaos is the low-overhead version. Both have a place.
Start small, grow if safe:
| Stage | Blast radius |
|---|---|
| 1 | One pod / instance in pre-prod |
| 2 | One pod / instance in production |
| 3 | One AZ in production |
| 4 | Multiple instances; 5-10% of traffic |
| 5 | Region-level (only after extensive prior runs) |
Never inject faults that can cause data loss. Stop the experiment if data-integrity alerts fire.
Toxiproxy is a TCP proxy that sits between your service and a dependency, configurable via API to drop / delay / corrupt traffic.
# pytest example
def test_retries_on_db_latency(toxiproxy):
toxiproxy.create('db', 'localhost:5432', 'localhost:25432')
toxiproxy.add_toxic('db', 'latency', latency=5000)
# ... call code that talks to localhost:25432
# assert that timeout / retry behavior works
toxiproxy.remove_toxic('db', 'latency')
Excellent for integration tests of timeout / retry / circuit-breaker logic. Cross-reference wiremock for HTTP-level equivalent.
Pick steady-state metrics the experiment shouldn't disturb significantly:
Pick abort criteria:
When helping with chaos engineering, ask:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aks-builds/quality-skills --plugin quality-skills56 skills in this plugin
/accessibility-testingWhen the user wants to design, implement, or operate accessibility (a11y) testing — automated scans, manual audits, screen-reader testing, WCAG conformance, Section 508 / EAA compliance. Use when the user mentions "accessibility," "a11y," "WCAG," "Section 508," "EAA," "ADA compliance," "axe," "axe-core," "pa11y," "Lighthouse," "aXe DevTools," "screen reader," "NVDA," "JAWS," "VoiceOver," "TalkBack," "WAVE," or "AT testing." For visual diff see visual-regression. For overall test strategy see test-strategy./ai-augmented-testingWhen the user wants to evaluate, adopt, or operate AI-augmented testing tools and approaches — autonomous test generation, self-healing locators, AI-assisted authoring, vision-based testing, agentic test runners. Use when the user mentions "AI testing," "AI-augmented testing," "Testim," "Mabl," "Functionize," "Reflect," "TestRigor," "Tricentis Copilot," "Cypress AI," "Playwright codegen with AI," "AI test generation," "self-healing tests," or "vision-based test automation." For LLM-product evals see llm-eval-testing. For overall strategy see test-strategy./appiumWhen the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio./artilleryWhen the user wants to design, implement, debug, or operate Artillery load tests. Use when the user mentions "Artillery," "artillery.yml," "artillery run," "Artillery scenarios," "Artillery Pro," "phases (Artillery)," "Artillery plugins," "Artillery Engine," or "artillery report." For JS-tested perf with thresholds see k6. For JVM perf see gatling. For Python see locust. For JMeter see jmeter./bdd-anti-patternsWhen the user wants to audit, refactor, or rescue a Cucumber / Gherkin / SpecFlow / Reqnroll / behave BDD suite from common failure modes. Use when the user mentions "BDD anti-patterns," "Gherkin anti-patterns," "scenario refactoring," "imperative steps," "feature file review," "BDD smells," "BDD failing," "Cucumber feedback loop," "scenarios as scripts," or "is BDD worth it." For Cucumber/Gherkin basics see cucumber-gherkin. For .NET BDD see specflow-reqnroll. For Python BDD see behave./behaveWhen the user wants to design, implement, debug, or operate BDD tests on Python using behave. Use when the user mentions "behave," "behave.ini," "@given/@when/@then," "context.x," "environment.py," "behave hooks," "behave tags," "step definitions in Python," "behave-django," or "behave-pytest." For language-agnostic Gherkin patterns see cucumber-gherkin. For .NET BDD see specflow-reqnroll. For BDD failure modes see bdd-anti-patterns. For non-BDD Python testing see pytest.