Chaos Engineer
When to Use This Skill
- Designing and executing chaos experiments
- Implementing failure injection frameworks (Chaos Monkey, Litmus, etc.)
- Planning and conducting game day exercises
- Building blast radius controls and safety mechanisms
- Setting up continuous chaos testing in CI/CD
- Improving system resilience based on experiment findings
Core Workflow
- System Analysis - Map architecture, dependencies, critical paths, and failure modes
- Experiment Design - Define hypothesis, steady state, blast radius, and safety controls
- Execute Chaos - Run controlled experiments with monitoring and quick rollback
- Learn & Improve - Document findings, implement fixes, enhance monitoring
- Automate - Integrate chaos testing into CI/CD for continuous resilience
Reference Guide
Load detailed guidance based on context:
| Topic |
Reference |
Load When |
| Experiments |
references/experiment-design.md |
Designing hypothesis, blast radius, rollback |
| Infrastructure |
references/infrastructure-chaos.md |
Server, network, zone, region failures |
| Kubernetes |
references/kubernetes-chaos.md |
Pod, node, Litmus, chaos mesh experiments |
| Tools & Automation |
references/chaos-tools.md |
Chaos Monkey, Gremlin, Pumba, CI/CD integration |
| Game Days |
references/game-days.md |
Planning, executing, learning from game days |
Safety Checklist
Non-obvious constraints that must be enforced on every experiment:
- Steady state first — define and verify baseline metrics before injecting any failure
- Blast radius cap — start with the smallest possible impact scope; expand only after validation
- Automated rollback ≤ 30 seconds — abort path must be scripted and tested before the experiment begins
- Single variable — change only one failure condition at a time until behaviour is well understood
- No production without safety nets — customer-facing environments require circuit breakers, feature flags, or canary isolation
- Close the loop — every experiment must produce a written learning summary and at least one tracked improvement
Output Templates
When implementing chaos engineering, provide:
- Experiment design document (hypothesis, metrics, blast radius)
- Implementation code (failure injection scripts/manifests)
- Monitoring setup and alert configuration
- Rollback procedures and safety controls
- Learning summary and improvement recommendations
Concrete Example: Pod Failure Experiment (Litmus Chaos)
The following shows a complete experiment — from hypothesis to rollback — using Litmus Chaos on Kubernetes.
Step 1 — Define steady state and apply the experiment
# Verify baseline: p99 latency < 200ms, error rate < 0.1%
kubectl get deploy my-service -n production
kubectl top pods -n production -l app=my-service
Step 2 — Create and apply a Litmus ChaosEngine manifest
# chaos-pod-delete.yaml
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: my-service-pod-delete
namespace: production
spec:
appinfo:
appns: production
applabel: "app=my-service"
appkind: deployment
# Limit blast radius: only 1 replica at a time
engineState: active
chaosServiceAccount: litmus-admin
experiments:
- name: pod-delete
spec:
components:
env:
- name: TOTAL_CHAOS_DURATION
value: "60" # seconds
- name: CHAOS_INTERVAL
value: "20" # delete one pod every 20s
- name: FORCE
value: "false"
- name: PODS_AFFECTED_PERC
value: "33" # max 33% of replicas affected
# Apply the experiment
kubectl apply -f chaos-pod-delete.yaml
# Watch experiment status
kubectl describe chaosengine my-service-pod-delete -n production
kubectl get chaosresult my-service-pod-delete-pod-delete -n production -w
Step 3 — Monitor during the experiment
# Tail application logs for errors
kubectl logs -l app=my-service -n production --since=2m -f
# Check ChaosResult verdict when complete
kubectl get chaosresult my-service-pod-delete-pod-delete \
-n production -o jsonpath='{.status.experimentStatus.verdict}'
Step 4 — Rollback / abort if steady state is violated
# Immediately stop the experiment
kubectl patch chaosengine my-service-pod-delete \
-n production --type merge -p '{"spec":{"engineState":"stop"}}'
# Confirm all pods are healthy
kubectl rollout status deployment/my-service -n production
Concrete Example: Network Latency with toxiproxy
# Install toxiproxy CLI
brew install toxiproxy # macOS; use the binary release on Linux
# Start toxiproxy server (runs alongside your service)
toxiproxy-server &
# Create a proxy for your downstream dependency
toxiproxy-cli create -l 0.0.0.0:22222 -u downstream-db:5432 db-proxy
# Inject 300ms latency with 10% jitter — blast radius: this proxy only
toxiproxy-cli toxic add db-proxy -t latency -a latency=300 -a jitter=30
# Run your load test / observe metrics here ...
# Remove the toxic to restore normal behaviour
toxiproxy-cli toxic remove db-proxy -n latency_downstream
Concrete Example: Chaos Monkey (Spinnaker / standalone)
# chaos-monkey-config.yml — restrict to a single ASG
deployment:
enabled: true
regionIndependence: false
chaos:
enabled: true
meanTimeBetweenKillsInWorkDays: 2
minTimeBetweenKillsInWorkDays: 1
grouping: APP # kill one instance per app, not per cluster
exceptions:
- account: production
region: us-east-1
detail: "*-canary" # never kill canary instances
# Apply and trigger a manual kill for testing
chaos-monkey --app my-service --account staging --dry-run false
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: chaos-engineer3description: Designs chaos experiments, creates failure injection frameworks, and facilitates game day exercises for distributed systems — producing runbooks, experiment manifests, rollback procedures, and post-mortem templates. Use when designing chaos experiments, implementing failure injection frameworks, or conducting game day exercises. Invoke for chaos experiments, resilience testing, blast radius control, game days, antifragile systems, fault injection, Chaos Monkey, Litmus Chaos. Use when this capability is needed.4---56# Chaos Engineer78## When to Use This Skill910- Designing and executing chaos experiments11- Implementing failure injection frameworks (Chaos Monkey, Litmus, etc.)12- Planning and conducting game day exercises13- Building blast radius controls and safety mechanisms14- Setting up continuous chaos testing in CI/CD15- Improving system resilience based on experiment findings1617## Core Workflow18191. **System Analysis** - Map architecture, dependencies, critical paths, and failure modes202. **Experiment Design** - Define hypothesis, steady state, blast radius, and safety controls213. **Execute Chaos** - Run controlled experiments with monitoring and quick rollback224. **Learn & Improve** - Document findings, implement fixes, enhance monitoring235. **Automate** - Integrate chaos testing into CI/CD for continuous resilience2425## Reference Guide2627Load detailed guidance based on context:2829| Topic | Reference | Load When |30|-------|-----------|-----------|31| Experiments | `references/experiment-design.md` | Designing hypothesis, blast radius, rollback |32| Infrastructure | `references/infrastructure-chaos.md` | Server, network, zone, region failures |33| Kubernetes | `references/kubernetes-chaos.md` | Pod, node, Litmus, chaos mesh experiments |34| Tools & Automation | `references/chaos-tools.md` | Chaos Monkey, Gremlin, Pumba, CI/CD integration |35| Game Days | `references/game-days.md` | Planning, executing, learning from game days |3637## Safety Checklist3839Non-obvious constraints that must be enforced on every experiment:4041- **Steady state first** — define and verify baseline metrics before injecting any failure42- **Blast radius cap** — start with the smallest possible impact scope; expand only after validation43- **Automated rollback ≤ 30 seconds** — abort path must be scripted and tested before the experiment begins44- **Single variable** — change only one failure condition at a time until behaviour is well understood45- **No production without safety nets** — customer-facing environments require circuit breakers, feature flags, or canary isolation46- **Close the loop** — every experiment must produce a written learning summary and at least one tracked improvement4748## Output Templates4950When implementing chaos engineering, provide:511. Experiment design document (hypothesis, metrics, blast radius)522. Implementation code (failure injection scripts/manifests)533. Monitoring setup and alert configuration544. Rollback procedures and safety controls555. Learning summary and improvement recommendations5657## Concrete Example: Pod Failure Experiment (Litmus Chaos)5859The following shows a complete experiment — from hypothesis to rollback — using Litmus Chaos on Kubernetes.6061### Step 1 — Define steady state and apply the experiment6263```bash64# Verify baseline: p99 latency < 200ms, error rate < 0.1%65kubectl get deploy my-service -n production66kubectl top pods -n production -l app=my-service67```6869### Step 2 — Create and apply a Litmus ChaosEngine manifest7071```yaml72# chaos-pod-delete.yaml73apiVersion: litmuschaos.io/v1alpha174kind: ChaosEngine75metadata:76 name: my-service-pod-delete77 namespace: production78spec:79 appinfo:80 appns: production81 applabel: "app=my-service"82 appkind: deployment83 # Limit blast radius: only 1 replica at a time84 engineState: active85 chaosServiceAccount: litmus-admin86 experiments:87 - name: pod-delete88 spec:89 components:90 env:91 - name: TOTAL_CHAOS_DURATION92 value: "60" # seconds93 - name: CHAOS_INTERVAL94 value: "20" # delete one pod every 20s95 - name: FORCE96 value: "false"97 - name: PODS_AFFECTED_PERC98 value: "33" # max 33% of replicas affected99```100101```bash102# Apply the experiment103kubectl apply -f chaos-pod-delete.yaml104105# Watch experiment status106kubectl describe chaosengine my-service-pod-delete -n production107kubectl get chaosresult my-service-pod-delete-pod-delete -n production -w108```109110### Step 3 — Monitor during the experiment111112```bash113# Tail application logs for errors114kubectl logs -l app=my-service -n production --since=2m -f115116# Check ChaosResult verdict when complete117kubectl get chaosresult my-service-pod-delete-pod-delete \118 -n production -o jsonpath='{.status.experimentStatus.verdict}'119```120121### Step 4 — Rollback / abort if steady state is violated122123```bash124# Immediately stop the experiment125kubectl patch chaosengine my-service-pod-delete \126 -n production --type merge -p '{"spec":{"engineState":"stop"}}'127128# Confirm all pods are healthy129kubectl rollout status deployment/my-service -n production130```131132## Concrete Example: Network Latency with toxiproxy133134```bash135# Install toxiproxy CLI136brew install toxiproxy # macOS; use the binary release on Linux137138# Start toxiproxy server (runs alongside your service)139toxiproxy-server &140141# Create a proxy for your downstream dependency142toxiproxy-cli create -l 0.0.0.0:22222 -u downstream-db:5432 db-proxy143144# Inject 300ms latency with 10% jitter — blast radius: this proxy only145toxiproxy-cli toxic add db-proxy -t latency -a latency=300 -a jitter=30146147# Run your load test / observe metrics here ...148149# Remove the toxic to restore normal behaviour150toxiproxy-cli toxic remove db-proxy -n latency_downstream151```152153## Concrete Example: Chaos Monkey (Spinnaker / standalone)154155```bash156# chaos-monkey-config.yml — restrict to a single ASG157deployment:158 enabled: true159 regionIndependence: false160chaos:161 enabled: true162 meanTimeBetweenKillsInWorkDays: 2163 minTimeBetweenKillsInWorkDays: 1164 grouping: APP # kill one instance per app, not per cluster165 exceptions:166 - account: production167 region: us-east-1168 detail: "*-canary" # never kill canary instances169170# Apply and trigger a manual kill for testing171chaos-monkey --app my-service --account staging --dry-run false172```173174---175> Converted and distributed by [TomeVault](https://tomevault.io/claim/jeffallan) — claim your Tome and manage your conversions.176<!-- tomevault:4.0:skill_md:2026-04-11 -->