/localstack:localstack-chaosfrom localstack
Injects faults and network latency into LocalStack to test resilience. Simulates AWS outages, throttling, and errors from specific services or operations to verify retry and fallback logic.
Ships in localstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make LocalStack fail on purpose — return AWS errors from chosen services, regions, or operations, or slow every response down — so you can prove retry, timeout, and fallback logic works before production does it for you.
lstk start) — see the localstack skillcurl -s localhost:4566/_localstack/licenseinfo.lstk has no chaos command. Drive the Chaos API on the emulator gateway with curl. All calls below assume http://localhost:4566; adjust if you set LOCALSTACK_HOST or a different port.
A fault rule matches requests and makes them fail. Every field is optional; an omitted field matches everything.
| Field | Example | Meaning |
|---|---|---|
service | "dynamodb" | AWS service to affect |
region | "us-east-1" | Region to affect |
operation | "PutItem" | API operation to affect |
probability | 0.5 | Chance (0.0–1.0) a matching request fails; default always |
error.statusCode | 503 | HTTP status to return |
error.code | "ServiceUnavailable" | AWS error code to return |
The rule body is a JSON array of rules on every call.
| Goal | Call |
|---|---|
| Replace all rules | POST /_localstack/chaos/faults |
| Add rules, keep existing | PATCH /_localstack/chaos/faults |
| Remove matching rules | DELETE /_localstack/chaos/faults (body must match the stored rule exactly) |
| List active rules | GET /_localstack/chaos/faults |
| Clear all rules | POST /_localstack/chaos/faults with [] |
# Make half of DynamoDB PutItem calls in us-east-1 throttle
curl -s -X POST localhost:4566/_localstack/chaos/faults \
-H 'Content-Type: application/json' \
-d '[{"service":"dynamodb","region":"us-east-1","operation":"PutItem","probability":0.5,
"error":{"statusCode":400,"code":"ProvisionedThroughputExceededException"}}]'
# Add a full S3 outage on top
curl -s -X PATCH localhost:4566/_localstack/chaos/faults \
-H 'Content-Type: application/json' \
-d '[{"service":"s3","error":{"statusCode":503,"code":"ServiceUnavailable"}}]'
# Inspect, then remove just the S3 rule
curl -s localhost:4566/_localstack/chaos/faults | jq
curl -s -X DELETE localhost:4566/_localstack/chaos/faults \
-H 'Content-Type: application/json' \
-d '[{"service":"s3","error":{"statusCode":503,"code":"ServiceUnavailable"}}]'
# Back to normal
curl -s -X POST localhost:4566/_localstack/chaos/faults -H 'Content-Type: application/json' -d '[]'
A rule with no service, region, or operation fails every request, including the ones your test harness uses to set up and verify. Scope rules as narrowly as the experiment allows.
Latency applies to every response from the emulator.
# Add 500 ms to every response
curl -s -X POST localhost:4566/_localstack/chaos/effects \
-H 'Content-Type: application/json' -d '{"latency": 500}'
# Current effects
curl -s localhost:4566/_localstack/chaos/effects | jq
# Clear
curl -s -X POST localhost:4566/_localstack/chaos/effects \
-H 'Content-Type: application/json' -d '{"latency": 0}'
GET to confirm it is active.lstk logs -v | grep -E "=> (4|5)[0-9]{2}" shows the failed calls; see the localstack-logs skill for deeper analysis and the localstack-app-inspector skill to follow a request across services.Faults live in memory: lstk restart and lstk reset also clear them.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub localstack/skills --plugin localstack12 skills in this plugin
/localstack-app-inspectorTrace requests through LocalStack with App Inspector. Use when users want to see how a request flowed across AWS services, inspect traces, spans, events, or payloads, debug event-driven or service-to-service flows, or explain an IAM denial, get LocalStack's suggested policy fix, or derive least-privilege policies from a run./localstack-replicatorCopy resources from a real AWS account into LocalStack with AWS Replicator. Use when a local stack depends on shared AWS resources that already exist (VPCs, SSM parameters, IAM roles, ECR repositories, secrets) and the user wants them replicated locally instead of re-creating them./localstack-azureRun the LocalStack Azure emulator and drive it with the Azure CLI. Use when users want to start LocalStack for Azure, run az commands locally (resource groups, storage, blobs, Bicep/ARM deployments), or set up lstk az.Other plugins' skills for the same job