본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)29k · #9546

chaos-engineering

하는 일

이 스킬은 라이브 시스템에서 통제된 장애 테스트를 계획하도록 안내합니다. 예를 들어 노드를 끄거나 네트워크를 느리게 만드는 일입니다. 실제 장애가 나기 전에 약점을 찾고 싶은 엔지니어에게 맞습니다.

사용하는 경우

  • ✓카오스 실험을 계획하면서 안전하게 멈추는 방법을 정해야 할 때.
  • ✓테스트가 영향을 줄 수 있는 사용자나 서비스 수를 제한하고 싶을 때.
  • ✓게임데이를 진행하거나 카오스 실험이 끝난 뒤 사후 분석을 작성할 때.

스킬 링크

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/chaos-engineering/skills/chaos-engineering/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/chaos-engineering/skills/chaos-engineering/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“데이터베이스 복제본 하나를 멈추는 안전한 카오스 실험을 계획해 주세요. 명확한 중단 규칙과 영향 범위 제한을 넣어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 측정 가능한 정상 상태를 중심으로 실험을 설계하고, 무엇인가 실행되기 전에 중단 기준을 정합니다. 영향 범위를 계산하고, 알맞은 도구를 추천하며, 나중에 사후 분석 초안 작성을 돕습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Chaos Engineering

Design experiments that surface real weaknesses in production systems — without becoming outages. Most "chaos engineering" attempts skip steady-state measurement, define no abort criteria, and have no blast-radius bound. This skill enforces the discipline that makes chaos experiments safe and useful.

When to use

  • Planning a chaos experiment (what to break, where, when, how to abort)
  • Calculating blast radius before running the experiment
  • Reviewing an existing experiment plan for safety
  • Choosing a chaos tool (Chaos Toolkit / Chaos Mesh / Litmus / Gremlin / AWS FIS)
  • Writing a chaos experiment postmortem
  • Running a Game Day exercise

When NOT to use

  • General incident response (use incident-response)
  • Threat hunting / red-team (use red-team, threat-detection)
  • Performance load testing (different goal — chaos is about failure modes, not capacity)
  • Production debugging (chaos discovers weaknesses preemptively, not after-the-fact)

Core principle: chaos without abort criteria is an outage

The 4 Principles of Chaos Engineering (Netflix, 2016):

  1. Build a hypothesis around steady-state behavior. Not "what breaks?" but "X holds; will it still hold under fault Y?"
  2. Vary real-world events. Inject realistic failures: kill nodes, slow networks, lose cache, throttle dependencies.
  3. Run experiments in production. Staging never has the same failure modes. Start small.
  4. Automate experiments to run continuously. One-off chaos is a press release; continuous chaos is engineering.

Add a fifth: Define abort criteria up front. A chaos experiment with no abort criteria is an outage by another name.

Quick start

SKILL=engineering/chaos-engineering/skills/chaos-engineering

# 1. Design an experiment
python "$SKILL/scripts/experiment_designer.py" --target "checkout-svc" --hypothesis "p99 latency stays <500ms" --attack latency --duration-min 15

# 2. Calculate blast radius
python "$SKILL/scripts/blast_radius_calculator.py" --traffic-share 0.05 --user-pop 1000000 --duration-min 15

# 3. Generate postmortem after the experiment
python "$SKILL/scripts/experiment_postmortem.py" --plan experiment.json --result-log results.txt

The 3 Python tools

All stdlib-only. Run with --help.

experiment_designer.py

Generates a structured experiment plan from inputs. Enforces the required sections (hypothesis, steady-state metric, blast radius, abort criteria, rollback).

python scripts/experiment_designer.py \
  --target "checkout-svc" \
  --hypothesis "p99 latency stays <500ms when payment-svc is slow" \
  --attack latency \
  --magnitude "+200ms" \
  --duration-min 15 \
  --blast-radius "5% of US traffic" \
  --abort-if "p99 > 1000ms OR error_rate > baseline + 1pp"

Outputs a markdown plan with: hypothesis, steady-state, attack, magnitude, duration, blast radius, abort criteria, rollback procedure, monitoring dashboards, and learning question.

blast_radius_calculator.py

Computes the blast radius of a planned experiment. Given traffic share + user population + duration, calculates expected affected users, expected error budget burn, and a risk score.

python scripts/blast_radius_calculator.py \
  --traffic-share 0.05 \
  --user-pop 1000000 \
  --duration-min 15 \
  --baseline-availability 0.999 \
  --expected-impact-availability 0.95

Outputs:

  • Expected affected users
  • Error budget consumed (in minutes of error budget)
  • Risk score: GREEN / YELLOW / RED
  • Recommendation: PROCEED / REDUCE / ABORT

GREEN = <1% error budget; YELLOW = 1-10%; RED = >10%.

experiment_postmortem.py

Produces a structured postmortem from an experiment plan + results. Catches the common postmortem failure modes: no learning recorded, no follow-up actions, blame-laden language.

python scripts/experiment_postmortem.py --plan experiment.json --result-log results.txt

Outputs markdown with: summary, hypothesis (was it confirmed/refuted?), what we learned, what surprised us, follow-up actions with owners, and link to next experiment.

The 7 attack types (taxonomy)

Different attacks reveal different weaknesses. See references/attack_taxonomy.md for full detail.

Attack What it tests Tooling
Latency Timeouts, retries, circuit breakers tc, Chaos Mesh NetworkChaos
Error Error handling, fallback paths Chaos Mesh HTTPChaos, Toxiproxy
Resource (CPU, memory, disk) Saturation han
자주 묻는 질문

정상 상태란 무엇인가요?

시스템의 정상적이고 측정 가능한 동작입니다. 실험은 장애 전, 중, 후에 이 상태를 확인합니다.

실제 장애 대응에도 쓰나요?

아니요. 장애 대응은 별도의 스킬에서 다룹니다.

어떤 도구를 언급하나요?

Chaos Toolkit, Chaos Mesh, Litmus, Gremlin, AWS FIS를 언급합니다.

상세 정보

작성자의 원본 설명

Use before running a chaos experiment, gameday or fault injection, or after one to write it up. Designs it with steady state and abort criteria in experiment_designer.py, sizes the blast radius with blast_radius_calculator.py and drafts the postmortem.

repo: alirezarezvani/claude-skills

인기도

GitHub 스타
29k
순위
#9546
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬