Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

chaos-engineering混沌工程

Agent Skill

chaos-engineering 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

408

周安装

17

GitHub Stars

4

下载量

136
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chaos-engineering(混沌工程)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/chaos-engineering
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill chaos-engineering
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill chaos-engineering

简介

用于模拟分布式系统故障,如网络分区或 Pod 终止,以提升系统韧性。

  • 提供故障注入与恢复验证能力,适用于高可用架构的测试与优化场景。
  • 使用时需明确目标环境、故障类型与监控指标,确保不影响生产用户。
  • 安装方式:通过 GitHub 仓库添加,命令为 npx skills add https://github.com/alphaonedev/openclaw-graph --skill chaos-engineering。
  • 涉及生产环境测试时,应先在隔离环境验证,并设置自动回滚与告警机制。

SKILL.md

chaos-engineering

Purpose

This skill enables OpenClaw to simulate failures in distributed systems, such as network partitions or pod kills, to identify weaknesses and improve resilience. It uses tools like Chaos Toolkit or similar integrations to inject faults programmatically.

When to Use

Use this skill during system testing phases, before production releases, or in response to outages to validate resilience. Apply it in microservices architectures, cloud environments (e.g., Kubernetes), or when dealing with high-availability setups to ensure systems handle failures gracefully.

Key Capabilities

  • Inject faults like CPU stress, network latency, or pod evictions via CLI or API.
  • Generate reports on system behavior post-failure, including metrics like recovery time.
  • Support for custom experiments defined in YAML configs, e.g., specifying targets and durations.
  • Integration with monitoring tools to correlate faults with real-time metrics.
  • Automated rollback of experiments to restore original state.

Usage Patterns

To run a chaos experiment, first define a configuration file, then execute via CLI. For API usage, authenticate and send requests to trigger events. Always run in a staging environment first. Pattern: Prepare config → Inject fault → Monitor effects → Analyze results. For repeated tests, use loops in scripts to vary parameters like duration or intensity.

Common Commands/API

Use the OpenClaw CLI for chaos operations, requiring $CHAOS_API_KEY for authentication. Example CLI command:

ocla chaos inject --type network-latency --duration 30s --target pod=myapp-123 --key $CHAOS_API_KEY

API endpoint: POST to /api/v1/chaos/experiments with JSON body:

{ "experiment": "network-partition", "targets": ["service:db"], "duration": 60 }

Config format (YAML snippet):

apiVersion: chaos.openclaw/v1
kind: Experiment
spec:
  type: cpu-stress
  percentage: 80

To stop an experiment: ocla chaos stop --id exp-456 --key $CHAOS_API_KEY.

Integration Notes

Integrate with Kubernetes by setting up a Chaos Engine operator; add annotations to deployments for auto-discovery. For monitoring, link with Prometheus via webhooks: e.g., export metrics to /metrics endpoint. Use environment variables for secrets, like export CHAOS_API_KEY=your-key. In code, import as a module:

import openclaw.chaos as oc
oc.inject_fault(type='pod-kill', target='app-pod')

Ensure compatibility with CI/CD tools by wrapping commands in scripts, e.g., in Jenkins: sh 'ocla chaos inject...'.

Error Handling

Check for errors like invalid targets or authentication failures; use try-catch in scripts. Example snippet:

try:
  ocla chaos inject --type pod-kill --target invalid-pod --key $CHAOS_API_KEY
except subprocess.CalledProcessError as e:
  print(f"Error: {e} - Check pod existence and API key")

Common issues: Rate limits (wait and retry), permission denials (verify RBAC), or experiment timeouts (set via --timeout 120s). Log all outputs and use --dry-run flag to preview actions without executing.

Concrete Usage Examples

  1. Test Kubernetes pod resilience: To simulate a pod failure in a staging cluster, run: ocla chaos inject --type pod-kill --target deployment/myapp --duration 10s --key $CHAOS_API_KEY. Then, verify recovery by checking pod status with kubectl get pods and analyze logs for downtime.
  2. Inject network latency for API testing: For a microservice, create a config file and execute: ocla chaos run --config path/to/experiment.yaml --key $CHAOS_API_KEY. The YAML might look like: spec: type: network-latency delay: 500ms. Monitor with integrated tools to measure response times before and after.

Graph Relationships

  • Related to: devops-sre (cluster), monitoring (for fault analysis), deployment (for targeting systems), fault-injection (tag overlap).
  • Connected via: resilience (tag), distributed-systems (embedding hint), enabling workflows with chaos-engineering and testing skills.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.87%
按下载量换算45

Claude

30.55%
按下载量换算42

Cursor

18.07%
按下载量换算25

Gemini CLI

9.83%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills