devops-chaos-engineering
Use when the user asks about chaos engineering, chaos experiments, GameDays, Chaos Mesh, LitmusChaos, AWS Fault Injection Service, Azure Chaos Studio…
by j4flmao★ 47 GitHub stars
Install devops-chaos-engineering in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Chaos Engineering
Purpose
Build confidence that the system withstands turbulent conditions by running controlled experiments: state a steady-state hypothesis, inject a realistic fault with a bounded blast radius, observe, and fix the weaknesses found. The goal is learning and hardening, not breaking things for show.
Agent Protocol
Trigger
"chaos engineering", "chaos experiment", "gameday", "chaos mesh", "litmus", "AWS FIS", "resilience testing", "chaos in CI", "steady state", "chaos program".
Input Context
- Architecture and known failure modes (dependencies, AZs, queues, caches).
- SLIs/SLOs and dashboards available; maturity (never done chaos vs routine).
- Platform (Kubernetes, AWS/Azure/GCP VMs, serverless).
Output Artifact
Experiment plan(s), tool manifests, GameDay runbook. No file unless requested.
Response Format
Hypothesis: When {fault}, {SLI} stays within {threshold}
Fault + tool: {e.g. pod-kill via Chaos Mesh PodChaos}
Blast radius: {env, % targets, duration}
Abort: {SLI condition / alarm}
Observations to record: {metrics, alerts fired, recovery time}
Follow-up: {tickets}
Completion Criteria
- Hypothesis expressed in terms of user-facing SLIs.
- Blast radius, duration, abort conditions, and rollback defined before running.
- Stakeholders/on-call informed; results recorded with action items.
Principles (principlesofchaos.org)
- Define steady state as measurable output (orders/min, error ratio, p99), not internals.
- Hypothesize steady state continues in control and experiment groups.
- Inject real-world events (instance loss, latency, dependency errors, AZ outage, clock skew, full disks).
- Run in production when mature — staging first; minimize blast radius.
- Automate experiments to run continuously.
Maturity Path
| Stage | Activities |
|---|---|
| 1. Start | Tabletop exercises; manual pod/instance kills in staging during a GameDay |
| 2. Repeatable | Experiment catalog in Git; scheduled runs in staging; abort automation |
| 3. Production | Small-blast-radius prod experiments (one AZ, 1–5% of pods) with on-call aware |
| 4. Continuous | Experiments in CI/CD gates and scheduled prod runs; results feed SLO reviews |
Tool Selection
| Tool | Scope | Notes |
|---|---|---|
| Chaos Mesh (CNCF) | Kubernetes | CRDs: PodChaos, NetworkChaos, IOChaos, StressChaos, TimeChaos, DNSChaos, HTTPChaos; Workflows and Schedules |
| LitmusChaos (CNCF) | Kubernetes (+ some cloud faults) | ChaosHub experiment catalog; probes for steady-state checks |
| AWS Fault Injection Service | AWS resources (EC2, ECS, EKS, RDS, network, AZ power interruption scenarios) | Stop conditions via CloudWatch alarms; IAM-scoped |
| Azure Chaos Studio | Azure resources + agent-based VM faults | |
| Gremlin | Commercial, multi-platform | Hosted UI, safety controls |
| Toxiproxy | TCP proxy for tests | Great for integration tests in CI |
Experiment Example (Chaos Mesh)
apiVersion: chaos-mesh.org/v1alpha1
kind: PodChaos
metadata:
name: checkout-pod-kill
namespace: shop
spec:
action: pod-kill
mode: fixed-percent
value: "20"
selector:
namespaces: [shop]
labelSelectors:
app: checkout
---
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: payments-latency
namespace: shop
spec:
action: delay
mode: one
selector:
namespaces: [shop]
labelSelectors:
app: payments
delay:
latency: "500ms"
correlation: "100"
jitter: "50ms"
duration: "5m"
Hypothesis for these: "With 20% of checkout pods killed and 500 ms extra latency on one payments pod, checkout success ratio stays ≥ 99.5% and p99 < 1.5 s." Typical findings: missing PDBs, retries without timeouts, single-replica dependencies, slow readiness.
AWS FIS Example (stop condition)
{
"description": "Terminate 30% of checkout ECS tasks",
"targets": {
"tasks": {
"resourceType": "aws:ecs:task",
"resourceTags": { "service": "checkout" },
"selectionMode": "PERCENT(30)"
}
},
"actions": {
"stopTasks": { "actionId": "aws:ecs:stop-task", "targets": { "Tasks": "tasks" } }
},
"stopConditions": [
{ "source": "aws:cloudwatch:alarm", "value": "arn:aws:cloudwatch:eu-west-1:123456789012:alarm:checkout-5xx-high" }
],
"roleArn": "arn:aws:iam::123456789012:role/fis-experiments"
}
Chaos in CI/CD
#!/usr/bin/env bash
set -euo pipefail
kubectl apply -f chaos/payments-latency.yaml
trap 'kubectl delete -f chaos/payments-latency.yaml --ignore-not-found' EXIT
# Run a short load test and assert on SLIs instead of curl loops
k6 run --quiet tests/checkout-smoke.js # thresholds in the script fail the job on SLO breach
Gate releases on resilience regressions in staging; keep prod experiments scheduled and announced.
GameDay Runbook
- Scope + hypothesis + abort criteria agreed; on-call and support notified; change freeze checked.
- Roles: facilitator, operator (injects), observers (d
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- references/chaos-cicd.md
- references/chaos-engineering-advanced.md
- references/chaos-engineering-fundamentals.md
- references/chaos-experiments.md
- references/chaos-practices.md
- references/chaos-principles.md
- references/chaos-scenarios.md
- references/chaos-tools.md
- references/experiment-design.md
- references/merged-qa-chaos-engineering.md
- references/merged-sre-chaos-engineering.md
- scripts/pod_killer.sh
FAQ
What does the devops-chaos-engineering skill do?
Use when the user asks about chaos engineering, chaos experiments, GameDays, Chaos Mesh, LitmusChaos, AWS Fault Injection Service, Azure Chaos Studio, steady-state hypotheses, or chaos in CI. Produces experiment designs, tool choice and a chaos program. Not for load testing (use quality-load-testing) or backup restore drills (use backup-dr).
How do I install the devops-chaos-engineering skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the devops-chaos-engineering skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…