Agent skill

Chaos

by softspark in softspark/ai-toolkit

Injects controlled faults for resilience testing on non-prod.

Apache-2.0Auto-check: notesDevOps & Cloud

Install Chaos

skills CLI
$ npx skills add softspark/ai-toolkit --skill chaos -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install softspark/ai-toolkit chaos --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/softspark/ai-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/app/skills/chaos .claude/skills/chaos && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
chaos
GitHub stars
179
Token cost
~579 tokens
SKILL.md length
266 words
Files
1
Skills in repo
112
Repo updated
First seen
Licence
Apache-2.0

At a glance

Injects controlled faults for resilience testing on non-prod.

  • Works in 6 steps: Safety Check: Verify env != PROD. → Baseline: Check system health is green. → Inject: Run the fault injection. → …
  • Tasks that involve Chaos engineering
  • SKILL.md covers Usage, Protocol, Rules and Gotchas, plus 1 more section
  • Calls docker

What it does

Chaos is an agent skill from softspark/ai-toolkit. Injects controlled faults for resilience testing on non-prod. Triggers: chaos, fault injection, latency injection, dependency kill, resilience test.

Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Chaos engineering. The repository describes itself as: Professional-grade AI coding toolkit: 94 skills, 44 agents, multi-platform (Claude, Cursor, Windsurf, Copilot, Gemini, Cline, Roo Code, Aider, Augment, Antigravity, Codex CLI… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Chaos engineering

Example prompts

  • “Use the chaos skill to inject controlled faults for resilience testing on non-prod”
  • “/chaos”

Requirements

  • Docker
  • Pre-approved tools (allowed-tools): Bash, Read

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Safety Check: Verify env != PROD.
  2. Baseline: Check system health is green.
  3. Inject: Run the fault injection.
  4. Observe: Monitor logs/metrics for 60s.
  5. Recover: Restore system health.
  6. Report: Did we survive?

What it can do on your machine

Read from SKILL.md and the folder at commit d64db2b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • docker

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use docker, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Chaos loads about 579 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 266 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~579

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from softspark/ai-toolkit at commit d64db2b, republished under its Apache-2.0 licence (© softspark). 266 words, ~579 tokens.

Download SKILL.mdSave it as .claude/skills/chaos/SKILL.md (or your agent's skills folder).
name
chaos
description
Injects controlled faults for resilience testing on non-prod. Triggers: chaos, fault injection, latency injection, dependency kill, resilience test.
allowed-tools
Bash, Read
effort
medium
disable-model-invocation
true
argument-hint
[target]
context
fork
agent
chaos-monkey

Chaos Command

$ARGUMENTS

Triggers a controlled resilience experiment.

Usage

bash
/chaos <experiment> [target]
# Example: /chaos latency backend-api
# Example: /chaos kill redis

Protocol

  1. Safety Check: Verify env != PROD.
  2. Baseline: Check system health is green.
  3. Inject: Run the fault injection.
  4. Observe: Monitor logs/metrics for 60s.
  5. Recover: Restore system health.
  6. Report: Did we survive?

Rules

  • MUST verify target environment is non-production before injecting
  • NEVER run against a system without a healthy baseline
  • CRITICAL: abort immediately if recovery does not complete within the observation window
  • MANDATORY: log every injected fault with timestamp and scope

Gotchas

  • NODE_ENV=production on a developer's machine is common — checking that env var alone is not enough proof of non-prod. Combine with kubeconfig context, cloud account ID, or a project-specific env file check before injecting.
  • docker stats reports cached values; the first sample immediately after injection is often pre-fault. Wait at least 5 seconds before reading metrics.
  • Kubernetes liveness probes may self-heal the faulted pod inside the 60s observation window — the report shows green while the workload is still flapping. Check pod restart counters, not just health endpoints.
  • Latency injected with tc (Linux traffic control) persists across container restarts on the host and across SIGTERM. Always pair the inject step with an explicit tc qdisc del dev <iface> root cleanup in the recover step — the fork context will not undo it for you.

When NOT to Use

  • In production without an explicit, written runbook — use /workflow incident-response for real incidents
  • When the system has no observability (no metrics, no logs) — fix observability first
  • For load testing — use dedicated load-test tooling, not chaos injection
  • During an active incident — stabilize first with /panic, then investigate

© softspark, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in app/skills/chaos of softspark/ai-toolkit.

Open the folder on GitHubat commit d64db2b

Compare with similar skills

Chaos next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Chaos compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Chaos this skillsoftspark/ai-toolkit179—~579Automated safety check: NotesApache-2.0
Executing Distributed System Testsshenli/distributed-system-testing231—~5.1kAutomated safety check: NotesMIT
Audit Reviewtestflows/TestFlows-GitHub-Hetzner-Runners102—~2.1kAutomated safety check: PassCustom licence
Chaos Dr Testharness/harness-skills115—~2.6kAutomated safety check: PassApache-2.0
Chaos Experimentharness/harness-skills115—~1.6kAutomated safety check: PassApache-2.0
Chaos EngineerJeffallan/claude-skills12k—~1.8kAutomated safety check: PassMIT

Similar skills

  • Executing Distributed System Tests

    shenli/distributed-system-testing

    A skill your agent uses when running a previously designed distributed-systems test plan against a real or simulated cluster — driving fault injection, workload, chaos scenarios, linearizability /…

    231 GitHub stars~5.1k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check: notes
  • Audit Review

    testflows/TestFlows-GitHub-Hetzner-Runners

    Perform deep feature audits with transition-matrix and logical fault-injection validation.

    102 GitHub stars~2.1k tokensUpdated 17 days ago
    DevOps & CloudAuto-check passed
  • Chaos Dr Test

    harness/harness-skills

    A skill your agent uses when working with Chaos Engineering steps inside a Harness pipeline.

    115 GitHub stars~2.6k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Chaos Experiment

    harness/harness-skills

    A skill your agent uses when the user asks to create, edit, update, design, or configure a Harness Chaos Experiment — including faults, probes, actions, experiment YAML, fault injection, pod-delete…

    115 GitHub stars~1.6k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Chaos Engineer

    Jeffallan/claude-skills

    Designs chaos experiments, failure injection and game days for distributed systems, with blast radius limits, rollback plans and written learnings.

    12k GitHub stars~1.8k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • SRE Engineer

    Jeffallan/claude-skills

    Defines SLIs, SLOs and error budgets, and sets up golden-signal monitoring, blameless postmortems, toil automation and chaos experiments for production systems.

    12k GitHub stars~1.7k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed

More from softspark/ai-toolkit

All 112 skills in this repo
  • Prepare Test Env

    softspark/ai-toolkit

    Prepare or verify a project QA environment with source identity, readiness, browser access, evidence paths and owned cleanup.

    179 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check: notes
  • A11y Validate

    softspark/ai-toolkit

    Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. An agent skill from softspark/ai-toolkit.

    179 GitHub stars~3.8k tokensUpdated 2 days ago
    Auto-check: notes
  • Analyze

    softspark/ai-toolkit

    Analyzes code quality, complexity, patterns across codebase.

    179 GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Autonomous Dev

    softspark/ai-toolkit

    Drives a brief, specification, issue or existing PR through implementation, review, tests and QA to a ready PR.

    179 GitHub stars~2.6k tokensUpdated 2 days ago
    Auto-check: notes
  • Brand Voice

    softspark/ai-toolkit

    Direct technical voice for docs, README, user-facing text. An agent skill from softspark/ai-toolkit.

    179 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • CI

    softspark/ai-toolkit

    Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI).

    179 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check: notes

Categories

Questions about Chaos

What does Chaos do?

Injects controlled faults for resilience testing on non-prod. Chaos is an agent skill from softspark/ai-toolkit. Injects controlled faults for resilience testing on non-prod.

When should I use Chaos?

Chaos fits situations like: tasks that involve Chaos engineering.

How do I install Chaos in Claude Code?

Run `npx skills add softspark/ai-toolkit --skill chaos -a claude-code`. Or copy the skill folder (app/skills/chaos in softspark/ai-toolkit) into .claude/skills/chaos in your project. Claude Code loads it when a task matches its description.

How do I install Chaos in Codex?

Run `npx skills add softspark/ai-toolkit --skill chaos -a codex`. Or copy the skill folder (app/skills/chaos in softspark/ai-toolkit) into .agents/skills/chaos in your project. Codex loads it when a task matches its description.

Can I use Chaos in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add softspark/ai-toolkit --skill chaos -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/chaos, .gemini/skills/chaos, .github/skills/chaos and .opencode/skills/chaos in your project.

What does Chaos need to run?

Going by SKILL.md and its folder, Chaos needs the command-line tools its instructions call (docker). Our summary lists: Docker. Its frontmatter pre-approves these tools: Bash, Read.

Does Chaos access the network?

SKILL.md contains no URLs. Its commands use docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Chaos safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Chaos use?

Chaos is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Chaos use?

About 579 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Chaos?

Skills that share tags, products or a category with Chaos: Executing Distributed System Tests (shenli/distributed-system-testing, 231 stars), Audit Review (testflows/TestFlows-GitHub-Hetzner-Runners, 102 stars), Chaos Dr Test (harness/harness-skills, 115 stars) and Chaos Experiment (harness/harness-skills, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Chaos?

softspark (a GitHub user) maintains it in softspark/ai-toolkit, which has 179 GitHub stars. The repository holds 112 skills in this directory. The repository was last updated on October 7, 2026.

Source: softspark/ai-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.