Command Palette

Search for a command to run...

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

chaos-engineering

БесплатноЗапускает вложенные скриптыНе проверен

Designs hypothesis-driven fault-injection experiments, sizes their blast radius and plans gamedays. Use when designing a chaos experiment, planning a gameday…

borgheiот borghei★ 1 250 звёзд на GitHub

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

Chaos Engineering

End-to-end chaos engineering: experiment design, fault injection catalog, gameday execution, and the maturity model that turns one-off "let's break stuff" exercises into a reliable discipline. Provider-agnostic — works whether you use Litmus, Chaos Mesh, AWS FIS, Gremlin, ChaosToolkit, or hand-rolled scripts.

This skill answers four questions: what to inject, where to inject it, how to size the blast, and how to extract durable learning from each run.

Core Capabilities

  • Principles & maturity — the five Principles of Chaos and a four-level maturity model (L0 none → L4 always-on production chaos) with level-up criteria.
  • Experiment design loop — a nine-step loop (steady state → hypothesis → variables → blast radius → abort → run → analyze → act → document) with worked good/bad examples.
  • Fault catalog — what to inject per layer: pod/host, network, dependency, resource, state, and traffic, with tool mappings.
  • Blast-radius sizing — quantify worst-case affected users and recommended caps; experiments start tiny (1 pod / 1% / 1 min) and grow only after passing.
  • Gameday execution — scheduled multi-scenario exercises with roles, agendas, scenario selection, and debrief templates.
  • Discipline — anti-patterns to avoid, the "first five experiments" for new teams, and end-to-end workflows (single experiment, gameday, kill-switch verification, post-incident verification).

When to Use

Situation Skill applies
Spinning up a chaos program from scratch Yes — start with maturity model + first 5 experiments
Designing a single experiment for a known concern Yes — use the experiment design loop
Planning a gameday for a team or service Yes — use scripts/gameday_planner.py
Validating a kill switch or fallback path actually works Yes — chaos is the way to test these in prod-like conditions
Post-incident verification: "did the fix really fix it?" Yes — re-inject the original fault, confirm the new behavior
Compliance evidence (SOC 2 A1 / DORA Art. 25) Yes — chaos runs produce auditable resilience-testing evidence
Improving SLOs / error budgets Pair with engineering/observability-designer — chaos surfaces SLO violations

Clarify First

Before designing the experiment, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • Target & fault type: the service and what to inject (dependency-timeout, network, pod-kill, resource exhaustion) (drives the experiment doc via --target/--fault).
  • Steady-state hypothesis: the metric that defines "healthy" and the expected behavior under fault (the hypothesis the experiment tests).
  • Blast radius caps: user count, % targeted, duration, and abort triggers (sizes the experiment via blast_radius_calculator.py).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Workflow

The scripts write plans and documents only; they never touch a system.

# 1. Scaffold the experiment doc (hypothesis, steady state, abort criteria, checklist)
python scripts/chaos_experiment_designer.py --target payments-svc --fault dependency-timeout --duration 5m
python scripts/chaos_experiment_designer.py --list-faults          # the nine fault types

# 2. Size the blast: worst-case affected users, recommended caps, abort timing
python scripts/blast_radius_calculator.py --users 100000 --percent-targeted 1 --duration 60

# 3. Plan a gameday from scenario ids
python scripts/gameday_planner.py --service search-api --duration full --scenarios dep-timeout,partition,az-degraded
python scripts/gameday_planner.py --list-scenarios                 # pod-kill, rolling-restart, latency, partition,
                                                                   # dep-error, dep-timeout, cpu-stress, memory-pressure,
                                                                   # disk-fill, cache-flush, traffic-spike, az-degraded

All three take --format markdown|json (human|json for the calculator) and --output FILE. Exit codes: 0 document written; 2 bad arguments (unknown fault or scenario id, out-of-range percent).

Go / no-go before any run. Do not inject until every item is true, because a run without them produces risk and no learning:

  1. The steady-state metric and its normal range are written down and visible on a dashboard.
  2. The hypothesis names the expected behaviour under the fault ("p99 stays under 800 ms, fallback serves cached prices").
  3. Abort criteria are numeric, agreed, and someone owns the abort command.
  4. The blast radius is within the calculator's recommended cap for the current maturity level.
  5. On-call knows the window, and production runs have a rollback th
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

references/chaos-principles-and-maturity.mdreferences/experiment-design-loop.mdreferences/fault-injection-catalog.mdreferences/gameday-playbook.mdreferences/gameday-workflows-and-antipatterns.mdscripts/blast_radius_calculator.pyscripts/chaos_experiment_designer.pyscripts/gameday_planner.py

FAQ

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

Designs hypothesis-driven fault-injection experiments, sizes their blast radius and plans gamedays. Use when designing a chaos experiment, planning a gameday, choosing what to inject, or building a chaos maturity model.

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

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

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