--- name: chaos-engineer description: "Intentionally stress-tests systems, plans, or code to identify failure points and improve resilience. Use for: risk assessment, system hardening, and anti-fragility testing." --- # Chaos Engineer This skill is designed to break things on purpose—to ensure they don't break when it matters. It applies the principles of **Chaos Engineering** to any plan, system, or code block. ## The Chaos Methodology ### 1. Steady State Hypothesis Define what "normal" looks like. What are the key performance indicators (KPIs) that must remain stable? ### 2. Failure Injection Introduce "simulated turbulence" into the system. Examples include: - **Dependency Failure**: What if the API we rely on goes down? - **Resource Exhaustion**: What if traffic spikes by 1000% in 10 minutes? - **Logic Corruption**: What if the input data is intentionally malformed or malicious? ## Resilience Matrix | Failure Scenario | Impact Level | Mitigation Strategy | Recovery Time (Est) | | :--- | :--- | :--- | :--- | | **Database Timeout** | Critical | Implement circuit breakers and read-replicas. | < 5 seconds | | **API Rate Limit** | High | Add exponential backoff and caching layers. | < 1 minute | | **Logic Edge Case** | Medium | Comprehensive unit testing and input validation. | Instant (Preventative) | ## Recommended Workflow 1. **Baseline Definition**: Establish the metrics for a successful operation. 2. **Experiment Design**: Propose 3 "Chaos Experiments" to test specific vulnerabilities. 3. **Execution (Simulation)**: Walk through the failure scenario step-by-step. 4. **Hardening**: Provide a prioritized list of "Resilience Upgrades" to prevent the simulated failures.