chaos

chaos is a skill for Claude Code from softspark/ai-toolkit. It costs 31 tokens per session (529 once invoked), scanned A, original, Apache-2.0.

A guide for deliberately introducing faults into non-production systems to test whether they recover, such as adding latency or stopping a dependency.

In plain words
What is it for?
Use it to run controlled experiments against services such as backend APIs or Redis and verify that systems survive and recover.
Why use it?
It helps expose resilience problems before real failures occur while requiring safety checks, monitoring, recovery, and logging.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it to run controlled experiments against services such as backend APIs or Redis and verify that systems survive and recover.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/softspark/ai-toolkit/chaos
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add softspark/ai-toolkit --skill chaos
Clone the repo
git clone --depth 1 https://github.com/softspark/ai-toolkit

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chaos

README.md
[![agentmods](https://agentmods.dev/badge/skills/softspark/ai-toolkit/chaos/github.svg)](https://agentmods.dev/skills/softspark/ai-toolkit/chaos)
Your own site
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/chaos"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/chaos/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chaos

Your own site · 80×15
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/chaos"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/chaos.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 43
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00529
Opus 5.5 $0.00012 $0.00212
Sonnet 5.5 $0.00006 $0.00106
Haiku 4.5 $0.00003 $0.00053

Measured 1mo ago against content hash 4896eb51bcd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chaos scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

app/skills/chaos/SKILL.md · 54 lines

What it actually says

Chaos Command

$ARGUMENTS

Triggers a controlled resilience experiment.

Usage

/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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 54 lines · 31 tokens per session scan A 4896eb51bcd3

Subscribe to this mod's changes

chaos is a skill published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed yesterday), licensed Apache-2.0. It adds 31 tokens to every session and 529 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.