mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-11-30 23:17:37 +00:00
- Rewrite code-reviewer, self-improving-agent, session-handoff, handoff and si:remember descriptions to lead with the user's ask; trigger evals go from 1/24 to 15/28 positive hits with no false fires. - Move OWASP references from Top 10:2021 to Top 10:2025 (pen-testing scanner, checklist, report example, secops/backend/security references) with a 2021-to-2025 mapping table and new A10 Mishandling of Exceptional Conditions. - Replace deprecated datetime.utcnow() in 15 scripts and hooks with identical output, and block it in CI. - Make gate G9 blocking as a ratchet over a 240-tool legacy baseline. - Fix INSTALLATION.md drift (Vibe flat layout, Codex advice, skill counts), add install lines to 35 plugin READMEs, regenerate all 20 agent-harness manifests and the docs site. - Bump the 43 changed plugins to 2.14.2. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018HXynYUKMCEpmhMQjyTx8J |
||
|---|---|---|
| .. | ||
| .claude-plugin | ||
| skills/chaos-engineering | ||
| README.md | ||
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-experimentslash command — interactive design wizard
Install
/plugin marketplace add alirezarezvani/claude-skills
/plugin install chaos-engineering@claude-code-skills
# 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
- Build a hypothesis around steady-state behavior — measurable, falsifiable
- Vary real-world events — realistic failures only, not astronomy-grade
- Run experiments in production — staging never has prod failure modes
- Automate experiments to run continuously — single experiment = press release; continuous = engineering
- 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.