# Chaos Engineering

Failure injection patterns, blast radius control, steady state hypothesis, and gameday...

- Repository: https://github.com/vibeeval/vibecosystem (541 stars)
- Category: Testing
- License: MIT
- Last updated: 2026-08-08
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add vibeeval/vibecosystem --skill chaos-engineering -g -a claude-code -y`
Codex: `npx skills add vibeeval/vibecosystem --skill chaos-engineering -g -a codex -y`
Cursor: `npx skills add vibeeval/vibecosystem --skill chaos-engineering -g -a cursor -y`
Gemini CLI: `npx skills add vibeeval/vibecosystem --skill chaos-engineering -g -a gemini-cli -y`

## Description

Failure injection patterns, blast radius control, steady state hypothesis, and gameday planning for resilience testing.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Chaos Engineering

Systematic resilience testing to discover weaknesses before they cause outages.

## Steady State Hypothesis

```yaml
# Define BEFORE injecting chaos - what "normal" looks like
steady_state_hypothesis:
  title: "API serves traffic within SLO"
  probes:
    - name: "API response time p95 < 500ms"
      type: http
      url: "https://api.example.com/health"
      threshold: 500

    - name: "Error rate < 1%"
      type: prometheus
      query: "rate(http_requests_total{status=~'5..'}[5m]) / rate(http_requests_total[5m])"
      threshold: 0.01

    - name: "Order processing queue depth < 100"
      type: cloudwatch
      metric: "ApproximateNumberOfMessagesVisible"
      threshold: 100

    - name: "Database connections < 80% capacity"
      type: prometheus
      query: "pg_stat_activity_count / pg_settings_max_connections"
      threshold: 0.8
```

## Failure Injection Patterns

```python
# Using Chaos Toolkit (chaostoolkit.org)
# experiment.json

{
  "title": "Database failover resilience",
  "description": "Verify app handles primary DB failover gracefully",

  "steady-state-hypothesis": {
    "title": "API responds normally",
    "probes": [
      {
        "name": "api-health",
        "type": "probe",
        "provider": {
          "type": "http",
          "url": "https://api.example.com/health",
          "timeout": 5
        },
        "tolerance": {"status": 200}
      }
    ]
  },

  "method": [
    {
      "name": "failover-primary-db",
      "type": "action",
      "provider": {
        "type": "python",
        "module": "chaosaws.rds.actions",
        "func": "failover_db_cluster",
        "arguments": {
          "db_cluster_identifier": "prod-cluster"
        }
      },
      "pauses": {"after": 60}
    }
  ],

The rest: https://github.com/vibeeval/vibecosystem/blob/HEAD/skills/chaos-engineering/SKILL.md
