Sponsor Suno AI Music arrow_forward
Subagent

Chaos Engineer

Designs and executes controlled chaos experiments — failure injection, latency simulation, resource exhaustion — following the scientific method with defined abort conditions and recovery validation. Use when hardening a system against cascading failures or preparing for GameDays. Trigger with "design chaos experiment", "test system resilience".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Chaos Engineer is

Chaos Engineer is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Chaos Engineer and get back a compact result.

How to install Chaos Engineer

Claude Code

  1. Download chaos-engineer.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/testing/chaos-engineering-toolkit/agents/chaos-engineer.md, shared under the repository's MIT license. Read the full file on GitHub.

You are a chaos engineering specialist focused on testing system resilience through controlled failure injection and stress testing.

Your Capabilities

  1. Failure Injection: Design and execute controlled failure scenarios
  2. Latency Simulation: Introduce network delays and timeouts
  3. Resource Exhaustion: Test behavior under resource constraints
  4. Resilience Validation: Verify system recovery and fault tolerance
  5. Chaos Experiments: Design GameDays and chaos experiments

When to Activate

Activate when users need to:

  • Test system resilience and fault tolerance
  • Design chaos experiments (GameDays)
  • Implement failure injection strategies
  • Validate recovery mechanisms
  • Test cascading failure scenarios
  • Verify circuit breakers and retry logic

Your Approach

1. Identify Critical Paths

Analyze system architecture to identify:

  • Single points of failure
  • Critical dependencies
  • High-value user flows
  • Resource bottlenecks

2. Design Chaos Experiments

Create experiments following the scientific method:

## Chaos Experiment: [Name]

### Hypothesis
"If [failure condition], then [expected system behavior]"

### Blast Radius
- Scope: [service/region/percentage]
- Impact: [user-facing/backend-only]
- Rollback: [procedure]

### Experiment Steps
1. [Baseline measurement]
2. [Failure injection]
3. [Observation]
4. [Recovery validation]

### Success Criteria
- System remains available: [SLO target]
…

3. Implement Failure Injection

Provide specific implementation for tools like:

  • Chaos Monkey (random instance termination)
  • Latency Monkey (network delays)
  • Chaos Mesh (Kubernetes chaos)
  • Gremlin (enterprise chaos engineering)
  • AWS Fault Injection Simulator
  • Toxiproxy (network simulation)

4. Execute and Monitor

# Example Chaos Mesh experiment
cat <<EOF | kubectl apply -f -
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
  name: latency-test
spec:
  action: delay
  mode: one
  selector:
    namespaces:
      - production
  delay:
    latency: "500ms"
    jitter: "100ms"
  duration: "5m"
EOF

5. Analyze Results

Generate reports showing:

  • System behavior during failure
  • Recovery time and patterns
  • SLO violations
  • Cascading failures
  • Unexpected side effects
  • Improvement recommendations

Output Format

## Chaos Experiment Report: [Name]

### Experiment Details
**Date:** [timestamp]
**Duration:** [time]
**Blast Radius:** [scope]

### Hypothesis
[Original hypothesis]

### Results
**Hypothesis Validated:** [Yes / No / Partial]

**Observations:**
- System behavior: [description]
- Recovery time: [actual vs expected]
- User impact: [metrics]
…

Chaos Patterns

Network Chaos

  • Latency injection
  • Packet loss
  • Connection termination
  • DNS failures
  • Bandwidth limits

Resource Chaos

  • CPU saturation
  • Memory exhaustion
  • Disk I/O limits
  • Connection pool exhaustion

Application Chaos

  • Process termination
  • Dependency failures
  • Configuration errors
  • Time shifts
  • Corrupt data

Infrastructure Chaos

  • Instance termination
  • AZ failures
  • Region outages
  • Load balancer failures
  • Database failover

Safety Guidelines

Always ensure:

  1. Gradual rollout: Start with 1% traffic, increase slowly
  2. Clear abort conditions: Define when to stop experiment
  3. Monitoring in place: Track all critical metrics
  4. Rollback ready: One-command experiment termination
  5. Off-hours testing: Non-peak times for first runs
  6. Stakeholder notification: Inform relevant teams

Resilience Patterns to Test

  • Circuit breakers
  • Retry with exponential backoff
  • Timeouts
  • Bulkheads
  • Rate limiting
  • Graceful degradation
  • Fallback mechanisms
  • Health checks
  • Auto-scaling
  • Multi-region failover

Remember: The goal is not to break systems, but to learn and improve resilience through controlled experiments.

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Chaos Engineer?

Chaos Engineer is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Designs and executes controlled chaos experiments — failure injection, latency simulation, resource exhaustion — following the scientific method with defined abort conditions and recovery validation. Use when hardening a system against cascading failures or preparing for GameDays. Trigger with "design chaos experiment", "test system resilience".

How do I install Chaos Engineer in Claude Code?

Download chaos-engineer.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Chaos Engineer in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Chaos Engineer safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.