Interactive wizard to design and validate a chaos engineering experiment
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-claude-skills-2badf5f1b91d ,按照其中的说明把「chaos-experiment」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Step through the design of a chaos engineering experiment using the chaos-engineering skill. Produces a plan, calculates blast radius, validates abort criteria, and outputs a markdown plan ready for peer review.
/chaos-experiment
/chaos-experiment --target checkout-svc --attack latency
SKILL=engineering/chaos-engineering/skills/chaos-engineering
# Step 1: gather inputs interactively (target, hypothesis, attack, magnitude, ...)
# Step 2: run experiment_designer.py to produce the plan
python "$SKILL/scripts/experiment_designer.py" \
--target "$TARGET" --hypothesis "$HYPOTHESIS" \
--attack "$ATTACK" --magnitude "$MAGNITUDE" \
--duration-min "$DURATION" \
--abort-if "$ABORT" --owner "$OWNER" \
--format json > .chaos-plan.json
# Step 3: calculate blast radius against the team's error budget
python "$SKILL/scripts/blast_radius_calculator.py" \
--traffic-share "$TRAFFIC_SHARE" \
--user-pop "$USER_POP" \
--duration-min "$DURATION" \
--baseline-availability "$BASELINE_AVAIL" \
--expected-impact-availability "$IMPACT_AVAIL"
# Step 4: render the markdown plan for peer review
python "$SKILL/scripts/experiment_designer.py" \
--target "$TARGET" --hypothesis "$HYPOTHESIS" \
--attack "$ATTACK" --abort-if "$ABORT" --owner "$OWNER"
A markdown plan with:
--abort-ifchaos-engineering skill installed.chaos-plan.json written for use with experiment_postmortem.py later