/polymath-sre:chaos-experimentfrom polymath-sre
Design a chaos experiment — hypothesis, blast radius, abort criteria, observation, rollback; small-radius first.
Ships in polymath-sre. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Design one chaos experiment. Output is the hypothesis + plan + abort criteria + observation.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-sre:slo-design); an experiment without a steady state can't be judged.Chaos experiment: pod kill on refund-service (canary, staging)
Hypothesis:
When one refund-service pod dies, error rate stays < 0.5% for 5
minutes and recovery (back to baseline) takes < 30 seconds.
Pre-conditions:
- SLO healthy on refund-service.
- 3 replicas running.
- On-call team aware (scheduled in #payments-eng).
Injection (exactly one pod — `kubectl delete pod -l …` alone would delete
every matching pod):
pod="$(kubectl get pods -n payments -l app.kubernetes.io/name=refund -o name | shuf -n 1)" \
&& kubectl delete -n payments "$pod"
Observation (5 minutes):
Grafana dashboard `refund-canary-chaos` showing:
- request rate
- 5xx rate (must stay < 0.5%)
- P99 latency
- replica count
- pod restart count
Abort criteria:
- 5xx rate > 1% sustained 30s.
- Latency P99 > 2s sustained 60s.
- Any sev1/sev2 alert fires unrelated to the experiment.
Rollback:
Replica set controller respawns the pod automatically; no manual action.
Postmortem:
Did the hypothesis hold? If recovery > 30s, file ticket for readiness probe
or PDB tuning.
Promotion plan:
Pass at staging → run on one prod canary pod → pass → run across prod.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/capacity-planTurn a demand projection into a capacity plan — constrained resource, headroom date, scaling triggers, and cost; not forecasting the demand itself (demand-forecast)./demand-forecastModel capacity demand — growth (linear/compound/seasonal), translate to resource needs + headroom, and flag the lead time before a saturation breach./error-budget-policyAuthor an error-budget policy — what happens when budget is healthy, eroding, or exhausted; named consequences not vibes./oncall-designDesign an on-call program — rotation + escalation, alert quality/actionability, runbook coverage, toil budget, handoff, and the operational-review loop./slo-designDesign an SLO — pick the right SLI per critical user journey, set the threshold by the 28-day error-budget arithmetic, document the measurement.npx claudepluginhub mohammadbafkar/polymath --plugin polymath-sre