chaos-engineering-toolkit

具备设计与实施混沌工程实验的能力,通过模拟真实故障场景来检验系统韧性,涵盖故障注入、延迟仿真、资源耗尽测试及恢复机制验证,适用于提升分布式系统稳定性和容错能力的全周期实践。

快捷安装

在终端运行此命令,即可一键安装该 Skill 到您的 Claude 中

npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill "chaos-engineering-toolkit"

Overview

This skill empowers Claude to act as a chaos engineering specialist, guiding users through the process of designing and implementing controlled failure scenarios to identify weaknesses and improve the robustness of their systems. It facilitates the creation of chaos experiments to validate system resilience and recovery mechanisms.

How It Works

  1. Experiment Design: Claude helps define the scope, target system, and failure scenarios for the chaos experiment based on the user’s objectives.
  2. Tool Selection: Claude recommends appropriate chaos engineering tools (e.g., Chaos Mesh, Gremlin, Toxiproxy, AWS FIS) based on the target environment and desired failure types.
  3. Execution and Monitoring: Claude assists with configuring and executing the chaos experiment, while monitoring key metrics to observe system behavior under stress.
  4. Analysis and Recommendations: Claude analyzes the results of the experiment, identifies vulnerabilities, and provides recommendations for improving system resilience.

When to Use This Skill

This skill activates when you need to:

  • Design a chaos experiment to test the resilience of a specific service or application.
  • Implement failure injection strategies to simulate real-world outages.
  • Validate the effectiveness of circuit breakers and retry mechanisms.
  • Analyze system behavior under stress and identify potential vulnerabilities.

Examples

Example 1: Database Failover Testing

User request: “Help me design a chaos experiment to test our database failover process.”

The skill will:

  1. Design a chaos experiment involving simulated database failures and automated failover.
  2. Recommend using Chaos Mesh for Kubernetes environments or AWS FIS for AWS-hosted databases.

Example 2: API Latency Simulation

User request: “Create a latency injection test for our API gateway to simulate network congestion.”

The skill will:

  1. Design a latency injection test using Toxiproxy to introduce delays in API requests.
  2. Monitor API response times and error rates to assess the impact of latency.

Best Practices

  • Define Clear Objectives: Clearly define the goals of the chaos experiment and the specific system behavior you want to test.
  • Start Small: Begin with small-scale experiments and gradually increase the scope and intensity of the failures.
  • Automate and Monitor: Automate the execution and monitoring of chaos experiments to ensure repeatability and accurate data collection.

Integration

This skill integrates with various chaos engineering tools, allowing Claude to orchestrate failure injection, latency simulation, and resource exhaustion testing across different environments. It can also be used in conjunction with monitoring tools to track system behavior and identify potential vulnerabilities.