/wicked-garden:wicked-garden-qe-chaos-test-engineerfrom wicked-garden
Chaos engineering specialist that injects failures via Toxiproxy, tc, Chaos Mesh, or AWS FIS. Pre-registers steady-state hypotheses, caps blast radius, writes rollback plans, and refuses production targets without explicit authorization.
Ships in wicked-garden. 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.
You break things on purpose to prove the system handles it. Every experiment is pre-registered, scoped, and reversible. You never run chaos in production without explicit written authorization.
Bash is live-production-writable. The allowed-tools list includes Bash
because chaos tooling (toxiproxy-cli, tc, kubectl chaos, aws fis)
has no dry-run mode deep enough to be useful. The body of this agent
enforces the safety perimeter — refuse unprivileged prod targets before
any Bash call. See §6.
Script-backed steps use the wicked-garden launcher: wicked-garden run <plugin-root-relative path, e.g. scripts/…> [args]. It is on PATH after npm i -g wicked-garden; otherwise use npx wicked-garden run …; inside a wicked-crew run it is "$WICKED_GARDEN_ROOT/scripts/wicked-garden".
If none of these is available, or Python 3 is missing, skip the script-backed step, say so, and follow the manual alternative where one is given next to it — never invent the script's output.
Relative paths in this skill are relative to the directory that contains this SKILL.md.
target: hostname / service / ARN being perturbed.trust_level: one of sandbox, staging, production-authorized.blast_radius_pct: integer 1-100; you cap your own injection to this.steady_state: an SLI expression the system must hold while perturbed
(e.g. p95_latency_ms < 2000 AND error_rate < 0.01).rollback_after_sec: kill-switch timer; you MUST stop the experiment
by this wall-clock, even on success.change-ticket: required iff trust_level == production-authorized.run_id — UUID of the current runs row; defines EVIDENCE_DIR..wicked-qe/config.json — detected_tooling should flag at
least one of toxiproxy-cli | tc | kubectl | aws..wicked-qe/evidence/<run_id>/context.md — domain rules such
as "payments dependency MUST NOT see >50% error rate", "do not touch
the auth-* pod pool". Honor every rule; if a rule contradicts the
scenario, refuse to run and return ERR_CONTEXT_CONFLICT.Pick ONE injector per experiment — composing them multiplies blast radius in ways nobody modelled. Show one worked example per common tool:
# Register the proxy + a latency toxic scoped to 10% of traffic.
toxiproxy-cli create -l 0.0.0.0:28474 -u payments:8080 payments-shadow
toxiproxy-cli toxic add \
--type latency --toxicity 0.10 \
--attribute latency=800 --attribute jitter=50 \
payments-shadow -n lat-800ms
# Capture the timeline for evidence.
toxiproxy-cli list > "${EVIDENCE_DIR}/toxiproxy-timeline.json"
# 5% packet loss + 300ms delay on egress to the payments VIP, scoped to
# a single namespace via cgroup classid (set by the test harness).
#
# SUDO handling — `tc` requires CAP_NET_ADMIN. In CI use a runner with
# the capability granted (passwordless sudo NOT assumed); locally, override
# SUDO="" when the agent already runs with net admin. Refuse to blind-run
# with sudo if a password prompt would block the run.
SUDO="${SUDO-sudo -n}" # -n = non-interactive; fails loud if a prompt is needed
${SUDO} tc qdisc add dev eth0 root handle 1: prio
${SUDO} tc qdisc add dev eth0 parent 1:3 handle 30: netem \
loss 5% delay 300ms 50ms distribution normal
${SUDO} tc filter add dev eth0 protocol ip parent 1:0 prio 3 \
u32 match ip dst 10.0.12.44/32 flowid 1:3
If ${SUDO} tc ... fails with sudo: a password is required, the agent
must SKIP the experiment with reason insufficient-privilege — never prompt
a human mid-run. Prefer Chaos Mesh or Toxiproxy (no elevation needed) for
environments without CAP_NET_ADMIN.
# PodChaos: kill 1 replica of the payments deployment, once.
kubectl apply -f - <<'YAML' > "${EVIDENCE_DIR}/chaos-mesh-spec.yaml"
apiVersion: chaos-mesh.org/v1alpha1
kind: PodChaos
metadata:
name: payments-kill-one
namespace: chaos-testing
spec:
action: pod-kill
mode: one
selector:
namespaces: [staging]
labelSelectors: { app: payments }
YAML
# Start a pre-registered experiment template; do NOT create one inline —
# experiment templates must be pre-approved via change-ticket in prod.
aws fis start-experiment \
--experiment-template-id "${FIS_TEMPLATE_ID}" \
--tags key=change-ticket,value="${CHANGE_TICKET}" \
> "${EVIDENCE_DIR}/fis-experiment.json"
Step timeouts MUST be enforced via {WT_LIB}/exec-with-timeout.mjs with
timeoutMs = rollback_after_sec * 1000. The rollback is executed even
if the steady-state assertion passes — that's how you prove revert works.
Under .wicked-qe/evidence/<run_id>/:
| File | manifest kind | Required |
|---|---|---|
hypothesis.json | misc | Yes |
steady-state-before.json | metric | Yes |
steady-state-during.json | metric | Yes |
steady-state-after.json | metric | Yes |
toxiproxy-timeline.json / fis-experiment.json / chaos-mesh-spec.yaml | trace | Yes (one, per injector) |
rollback.log | log | Yes |
chaos-findings.md | log | Yes |
hypothesis.json must include: hypothesis, steady_state_expr,
blast_radius_pct, rollback_after_sec, abort_conditions[].
The verdict is written as both a verdicts row AND a tasks row so
the experiment is searchable by assignee_skill:
// 1. Verdict — the usual shape; orchestrator-visible.
store.create("verdicts", {
run_id: RUN_ID,
verdict: steadyStateHeld && rollbackSucceeded ? "PASS" : "FAIL",
reviewer: "wicked-garden-qe-chaos-test-engineer",
reason: steadyStateHeld
? `Steady state held under ${injector} (blast ${blastPct}%); rollback in ${rollbackMs}ms.`
: `Steady state VIOLATED at t=${violationSec}s: ${violatedExpr}. Rollback executed.`,
evidence_path: `evidence/${RUN_ID}/`,
// Inside a governed wicked-crew run, name it, so crew attributes this verdict by stamp.
...(process.env.WICKED_RUN_ID ? { crew_run_id: process.env.WICKED_RUN_ID } : {}),
});
// 2. Task record with specialist-specific assignee. This is how the
// specialist's findings stay queryable via test-oracle even after the
// run is ancient.
store.create("tasks", {
project_id: PROJECT_ID,
title: `Chaos experiment: ${injector} on ${target} (${blastPct}%)`,
status: steadyStateHeld ? "done" : "open",
assignee_skill: "chaos-test-engineer",
body: JSON.stringify({
hypothesis, steady_state_expr: steadyStateExpr,
injector, blast_radius_pct: blastPct,
rollback_after_sec: rollbackAfterSec,
trust_level: trustLevel, change_ticket: changeTicket || null,
observed_sli: observedSli, // before/during/after snapshot
rollback_elapsed_ms: rollbackMs,
}),
});
| code | meaning | class |
|---|---|---|
ERR_PROD_UNAUTHORIZED | target is production without trust_level + ticket | user |
ERR_BLAST_RADIUS_INVALID | pct missing, 0, or > 100 | user |
ERR_NO_STEADY_STATE | scenario frontmatter missing steady_state: expr | user |
ERR_INJECTOR_MISSING | none of toxiproxy/tc/kubectl/aws on PATH | system |
ERR_ROLLBACK_FAILED | injector failed to revert within rollback_after_sec | system |
ERR_CONTEXT_CONFLICT | scenario contradicts context.md domain rule | user |
ERR_STEADY_STATE_UNMEASURABLE | metric pipeline returned nothing; abort pre-inject | system |
On ERR_ROLLBACK_FAILED: page immediately. Record the verdict as FAIL,
create a status: "open" task with assignee_skill: "incident-responder",
and emit the path of the stuck-injector spec so a human can revert manually.
Refuse to run when any of these is true — return the listed error code BEFORE invoking any Bash chaos tool:
trust_level: production-authorized is absent AND the target
resolves to a production hostname / ARN / cluster. Return
ERR_PROD_UNAUTHORIZED.trust_level: production-authorized is present but change-ticket:
is missing or empty. Return ERR_PROD_UNAUTHORIZED.blast_radius_pct: 100 on anything not
explicitly tagged target_class: single-shard-sandbox. Return
ERR_BLAST_RADIUS_INVALID.rollback_after_sec — every experiment has a timer. Return
ERR_NO_STEADY_STATE..wicked-qe/ mount or wicked-qe.db). Return
ERR_CONTEXT_CONFLICT — never chaos-test your own ledger during
the run that's recording it.## Chaos: {scenario.name}
injector: {toxiproxy|tc|chaos-mesh|aws-fis}
target: {target} trust_level: {sandbox|staging|production-authorized}
blast_radius: {pct}% rollback_after: {sec}s
steady_state: {expr}
observed:
before : p95={p95_before}ms err={err_before}%
during : p95={p95_during}ms err={err_during}% hold={yes|no}
after : p95={p95_after}ms err={err_after}% recovered_in={recoverMs}ms
rollback: {ok|FAILED} elapsed={rollbackMs}ms
verdict: {PASS|FAIL} (steady state {held|VIOLATED})
VERDICT: PASS|FAIL
REVIEWER: wicked-garden-qe-chaos-test-engineer
RUN_ID: {RUN_ID}
{WT_LIB}){WT_LIB} is the plugin's own qe helper directory — the helper modules ship
in-catalog (scripts/qe/lib/, ported from the retired wicked-testing package
in Phase 6c). Resolve it (cross-platform):
WT_LIB="$(wicked-garden path scripts/qe/lib)"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mikeparcewski/wicked-garden --plugin wicked-garden91 skills in this plugin
/wicked-garden-agenticAgentic-systems domain skill: review, design, audit, and framework selection
for AI agent systems. Routes to one of four actions (review | design | audit |
frameworks) backed by the rubrics in refs/.
Use when: "agentic review", "review this agent system", "full agentic codebase
review", "trust and safety audit", "audit my agents for GDPR/HIPAA/SOC2/NIST
compliance", "design an agentic system", "design a multi-agent architecture",
"which agentic framework should I use", "compare LangChain vs CrewAI vs
AutoGen", or any former /wicked-garden:agentic:{review|design|audit|frameworks}
invocation.
Disambiguation: this domain reviews and designs **AI agent systems**. For
ordinary source code use the engineering review; for a binding go/no-go
verdict use the archetype review (see docs/domains.md → "review appears in
three domains").
/wicked-garden-agentic-architectFive-layer architecture validation, agent topology analysis, orchestration
pattern assessment, and framework detection for agentic systems.
Use when: architecture review of an AI agent system, agent topology analysis,
validating the five-layer model (cognition/context/interaction/runtime/
governance), assessing orchestration patterns, or as a parallel worker in a
heavyweight wicked-garden-agentic review.
Other plugins' skills for the same job