claude-skills/engineering/chaos-engineering
Claude 74fa5ea219
fix(frontmatter): nest descriptive SKILL.md keys under metadata for Codex (#1027)
Codex's quick_validate.py allows only name, description, license,
allowed-tools and metadata at the top level, and rejects < or > in a
description. 77 SKILL.md files carried version/author/tags/
compatible_tools (and similar) at the top level and 36 descriptions
contained angle brackets, so they failed on a clean Codex install.

- Move those keys under metadata: (values verified identical after the
  move; claude-coach's duplicate Name/Version keys dropped).
- Reword angle brackets in descriptions (/cs:x <arg> -> /cs:x [arg],
  -> -> arrow, >50% -> more than 50%, and so on).
- check_frontmatter.py now fails a SKILL.md that reintroduces either.

Claude Code runtime keys (context, argument-hint) stay top-level: they
change behaviour, so they are left for Codex to ignore.

Closes #1027

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H62X35SkaV44z2QQZQGqnC
2026-10-21 06:56:10 +00:00
..
.claude-plugin chore(versioning,docs): normalize stale versions to 2.9.0 + refresh counts 2026-05-27 05:22:59 +00:00
skills/chaos-engineering fix(frontmatter): nest descriptive SKILL.md keys under metadata for Codex (#1027) 2026-10-21 06:56:10 +00:00
README.md feat(skills): ship chaos-engineering (Phase 3 — resilience testing discipline) 2026-05-09 21:24:16 +00:00

Chaos Engineering

End-to-end discipline for chaos experiments — design, run, learn — without becoming an outage.

What's inside

  • 3 stdlib Python tools — experiment designer, blast-radius calculator, postmortem generator
  • 4 reference docs — principles, experiment design, attack taxonomy, tooling landscape
  • 2 templates — experiment plan, postmortem
  • /chaos-experiment slash command — interactive design wizard

Install

# Via Claude Code marketplace
/plugin install chaos-engineering

# Or clone the repo
git clone https://github.com/alirezarezvani/claude-skills.git
cd claude-skills/engineering/chaos-engineering

Quick start

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

# 1. Design an experiment
python "$SKILL/scripts/experiment_designer.py" \
  --target checkout-svc \
  --hypothesis "p99 < 500ms when payment slows" \
  --attack latency --magnitude "+200ms" \
  --abort-if "p99 > 1000ms OR error_rate > +1pp"

# 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 running
python "$SKILL/scripts/experiment_postmortem.py" \
  --plan plan.json --result-log results.txt

Key principles

  1. Build a hypothesis around steady-state behavior — measurable, falsifiable
  2. Vary real-world events — realistic failures only, not astronomy-grade
  3. Run experiments in production — staging never has prod failure modes
  4. Automate experiments to run continuously — single experiment = press release; continuous = engineering
  5. Define abort criteria up front — chaos without abort = outage

The 7 attack types

Attack Tests Magnitude examples
Latency Timeouts, retries, circuit breakers +200ms, +2s
Error Error handling, fallback paths 1%, 50%, 100%
Resource Saturation, autoscaling, OOM 80% CPU, 90% memory, fill /var
Network partition Consensus, leader election, failover drop 100% to peer X
Dependency failure Graceful degradation timeout 100% to dep X
Time skew Clocks, TTLs, retry backoff +5min, +1day
Infrastructure Auto-recovery, replica maintenance kill 1 of N

Composition with other skills

Skill Composition
feature-flags-architect Kill switches there are abort triggers here
kubernetes-operator Operators are common chaos targets
incident-response Chaos that escalates becomes an incident

Skill structure

chaos-engineering/
├── README.md
├── .claude-plugin/plugin.json
└── skills/chaos-engineering/
    ├── SKILL.md
    ├── scripts/
    │   ├── experiment_designer.py
    │   ├── blast_radius_calculator.py
    │   └── experiment_postmortem.py
    ├── references/
    │   ├── chaos_principles.md
    │   ├── experiment_design.md
    │   ├── attack_taxonomy.md
    │   └── tooling_landscape.md
    └── assets/
        ├── experiment_template.md
        └── postmortem_template.md

Verifiable success

A team using this skill should achieve:

  • 100% of chaos experiments have written hypothesis, abort criteria, blast-radius calc
  • Blast radius for any single experiment ≤10% of monthly error budget
  • Mean time between chaos experiments <14 days (continuous, not one-off)
  • Each experiment produces ≥1 follow-up action that gets shipped
  • No chaos experiment escalates to a customer-impacting incident in trailing 90 days

License

MIT — see repo root LICENSE.