Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

chaos-testing

БесплатноБез исполняемых скриптовНе проверен

Use when designing or implementing chaos engineering experiments to verify system resilience under failure conditions. Covers chaos engineering principles…

onfire7777от onfire7777★ 17 звёзд на GitHub

Об этом скилле

Chaos Testing — Chaos Engineering

Overview

Chaos engineering is the discipline of experimenting on a system in order to build confidence in its ability to withstand turbulent conditions in production. Rather than waiting for failures to happen organically, chaos engineering proactively injects controlled faults to expose weaknesses before they cause real outages.

The discipline is grounded in the Principles of Chaos Engineering (principlesofchaos.org), which define a rigorous, experiment-driven approach to resilience validation:

  1. Build a hypothesis around steady-state behavior — define what "normal" looks like in terms of measurable business and system metrics.
  2. Vary real-world events — inject failures that reflect things that actually happen (server crashes, network partitions, disk full, dependency latency).
  3. Run experiments in production — only production truly represents production; start with staging, but graduate to production with safeguards.
  4. Automate experiments to run continuously — one-off experiments decay in value; automated chaos builds lasting confidence.
  5. Minimize blast radius — design experiments to limit the scope of impact, and have abort conditions ready.

Reference: Chaos Engineering: System Resiliency in Practice by Casey Rosenthal & Nora Jones (O'Reilly, 2020) is the definitive guide to the discipline, covering theory, organizational adoption, and practical tooling.

Core Concepts

Steady-State Hypothesis

The steady-state hypothesis defines the normal, expected behavior of a system using measurable indicators. Before injecting any fault, you must establish what "healthy" looks like so you can detect whether the system degrades. Common steady-state metrics include request success rate, p99 latency, error rate, throughput, and queue depth. The experiment succeeds if the steady state is maintained despite the injected fault, and fails if the steady state is violated.

Example hypothesis: "When 10% of application pods are terminated, the request success rate remains above 99.5% and p99 latency stays below 500ms."

Blast Radius

Blast radius is the scope of potential impact of a chaos experiment. Effective chaos engineering demands strict control over blast radius — start with the smallest possible scope and expand gradually as confidence grows. Controls include targeting a single host or pod, limiting experiment duration, defining automatic abort conditions (kill switches), running during low-traffic windows initially, and having rollback procedures ready.

Game Days

A game day is a planned event where teams deliberately inject failures into their systems and practice their incident response. Game days combine chaos experiments with organizational readiness: teams observe how monitoring, alerting, runbooks, and human coordination perform under realistic failure conditions. They are typically scheduled, cross-team events with defined scenarios, observers, and post-game retrospectives.

Experiment Design

Designing a chaos experiment follows a structured methodology:

  1. Form a hypothesis — Identify a steady-state metric and predict what will happen when a specific failure is introduced. Example: "If we lose one availability zone, failover completes within 30 seconds and no requests are dropped."

  2. Design the smallest experiment — Start with the most limited scope that can test the hypothesis. Target a single instance, a single failure mode, and a short duration. Prefer reversible faults (latency injection) over destructive ones (data corruption) when starting out.

  3. Measure and observe — Instrument the experiment to capture the steady-state metrics, system behavior, and any side effects. Use existing monitoring dashboards and add experiment-specific telemetry if needed.

  4. Analyze results — Compare observed behavior against the hypothesis. If the steady state held, confidence increases. If it broke, you have discovered a real weakness to fix. Document findings either way.

  5. Expand or remediate — If the experiment passed, gradually increase blast radius (more instances, longer duration, production environment). If it failed, fix the underlying issue and re-run the experiment.

Common Failure Modes

Category Failure Mode Example
Infrastructure Host/VM termination Kill a random EC2 instance or Kubernetes pod
Infrastructure Availability zone loss Simulate an entire AZ going offline
Infrastructure Disk full Fill disk to capacity on a target host
Network Latency injection Add 500ms latency to inter-service calls
Network Packet loss Drop 10% of packets between services
Network DNS failure Return NXDOMAIN for a downstream dependency
Network Partition Block traffic between two service groups
Application CPU stress Consume
Полный SKILL.md на GitHub

Установить chaos-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdREADME.mdmetadata.jsonrules/_sections.mdrules/_template.mdrules/chaos-testing-automate-experiments.mdrules/chaos-testing-define-abort-conditions-upfront.mdrules/chaos-testing-document-and-share-learnings.mdrules/chaos-testing-establish-steady-state-before-injecting-faults.mdrules/chaos-testing-fix-what-you-find.mdrules/chaos-testing-involve-the-whole-team.mdrules/chaos-testing-make-experiments-observable.mdrules/chaos-testing-run-game-days-regularly.mdrules/chaos-testing-start-small-and-expand-gradually.mdrules/chaos-testing-test-in-production-but-with-safeguards.md

FAQ

Что делает скилл chaos-testing?

Use when designing or implementing chaos engineering experiments to verify system resilience under failure conditions. Covers chaos engineering principles, steady-state hypothesis, blast radius management, game days, and tools like Chaos Monkey, Gremlin, Litmus, Chaos Mesh, Toxiproxy, and cloud-native fault injection services. USE FOR: chaos engineering, fault injection, resilience testing, game days, steady-state hypothesis, blast radius, Chaos Monkey, Gremlin, Litmus, Chaos Mesh, Toxiproxy, AWS Fault Injection Service, Azure Chaos Studio DO NOT USE FOR: load testing without fault injection (use performance-testing), general system monitoring (use logging-monitoring), disaster recovery planning (use architecture skills)

Как установить скилл chaos-testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл chaos-testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить chaos-testing с