chaos-engineer
Chaos engineering — designing safe failure-injection experiments to build resilience — use when proactively testing system robustness.
- License 许可
- MIT
- 最近更新
- 2026-11-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- chaos-engineer
- category
- operations
- description
- Chaos engineering — designing safe failure-injection experiments to build resilience — use when proactively testing system robustness.
03 SKILL.md 正文
Overview
Chaos engineering is the disciplined practice of injecting failure to verify that systems handle it — finding weaknesses in business hours instead of at 3am. Done right, it's careful science: hypothesis, blast radius control, and abort conditions. Done wrong, it's just breaking production. This skill covers the methodology that makes it the former.
When to use
- Designing your first chaos experiments (kill pods, inject latency, drop traffic)
- Building a chaos program: scope, safety, and cadence
- Running game days for critical user journeys
- Validating failover, autoscaling, and degradation behavior
- Convincing stakeholders that controlled failure injection is worthwhile
Core concepts
Hypothesis-driven, not random. Every experiment states a hypothesis: "We believe killing 30% of pods in zone A keeps p99 latency under 500ms because the HPA scales and the LB drains." You run the experiment to confirm or refute — the learning is the point, including (especially) when the hypothesis is wrong.
Blast radius starts tiny. Begin in staging, then production with minimal scope (one pod, one AZ, 1% of traffic), expanding only as confidence grows. Controls: target precisely, limit duration, and always have an instant abort (a big red button, automatic halt on SLO burn).
Steady-state first. Define normal (the metrics that characterize health) before injecting failure, so you can measure deviation objectively. Without a baseline, every experiment result is an anecdote.
The five classic failure modes to test: process death (crash recovery), network latency/packet loss (degraded dependencies), resource exhaustion (CPU/memory/disk pressure), dependency failure (what if the cache/DB/3rd party is down?), and zone/region loss (failover actually working). Most outages are one of these wearing a costume.
Game days for the human system. Scheduled simulations where the team practices response to a scenario — they test runbooks, communication, and coordination, not just technology. The debrief often surfaces more value than the experiment itself.
Practical workflow
- Pick a critical user journey and map its dependencies (services, datastores, third parties, DNS, CDN) — experiments target real paths.
- Write the hypothesis with a falsifiable steady-state claim and success criteria tied to SLIs.
- Design for safety: minimal blast radius, short duration, automatic abort on guardrail metrics (error budget burn, p99 latency), manual abort procedure, and execution during business hours with the owning team present and aware.
- Run in expanding scope: staging → production-canary → broader production — only advance when the previous scope behaved as hypothesized.
- Debrief blamelessly: what happened vs hypothesis, what broke unexpectedly, what the fix is — file action items with owners.
- Codify the program: a backlog of experiments prioritized by risk, regular cadence (monthly game day, continuous small experiments), and results tracked like any engineering work.
Common pitfalls
- Starting in production with wide blast radius — the fastest way to lose organizational trust; earn scope with small wins.
- No abort conditions — experiments without automatic halt on SLO burn turn "controlled" into "incident we caused on purpose".
- Testing at 2am to "avoid impact" — defeats the purpose (fewer eyes, slower response); run during business hours with the team ready.
- Surprising stakeholders — product, support, and leadership should know experiments are happening; surprises erode trust even when nothing breaks.
- One-off experiments with no follow-through — finding that failover takes 8 minutes is useless if nobody fixes it; the action items are the product.
- Chaos as theater — killing pods that Kubernetes replaces in seconds proves nothing about your actual risks; target the scary unknowns (region loss, dependency outage, data corruption paths).
04 同仓库更多 Skills
web-scrape
Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open/fetch fails on JS-heavy pages, or when you need clean markdown/structured extraction from a site. Requires FIRECRAWL_API_KEY.
design-taste-frontend
tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML/CSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, "AI-made", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).