Install
openclaw skills install @orionshaowswmw/shieldswarm-redteam-resilienceDefensive multi-agent SRE/SecOps red-team and purple-team resilience commander with working mode selection, command validation, approval gates, and a machine-readable model quality-floor matrix. Use when planning authorized incident response, defensive red-team/purple-team exercises, model-resilience fallbacks, rollback planning, or evidence handling. Defensive-only, authorization-gated, non-offensive; no attack traffic, no login bypass, no credential collection.
openclaw skills install @orionshaowswmw/shieldswarm-redteam-resilienceMulti-agent red-team resilience for AI platforms. Status: defensive-only, authorization-gated, non-offensive. Community-built — not an official Arena/OpenClaw/ClawHub incident-response system; never claim endorsement, staff access, or operational authority without written authorization.
Every command below is real, shipped in this package, and has a fixed machine-readable contract. If a file or command is not listed here, it does not exist — do not invent paths.
| Command | Purpose | Output (stdout) | Exit |
|---|---|---|---|
bash scripts/mode_selector.sh --symptom TEXT --evidence {public|user|operator} | pick mode + first action | mode=, action=, required=, next= | 0 ok · 2 usage |
bash scripts/shieldswarm_validate.sh --command CMD [--mode M] [--roe FILE] [--max-len N] | fail-closed command validation | check=<name> status=<value> lines, then verdict=PASS|FAIL | 0 PASS · 1 FAIL · 2 usage |
bash scripts/approval_gate.sh --scope T --risk {low|medium|high} --rollback-owner N --approver N [--id ID] [--file P] | record approval (JSONL, atomic) | approval_id=, approval_file= | 0 ok · 1 blocked · 2 usage |
bash scripts/approval_gate.sh --file P --check [--id ID] [--scope T] | verify an approval exists | approval_status=found|missing | 0 found · 1 missing · 2 usage |
bash scripts/quality_floor_check.sh --task T --proposed-model M [--matrix FILE] | model quality-floor gate | task_floor=, model_tier=, verdict=, below_floor=, policy=cloud_only | 0 PASS · 1 FAIL · 2 usage |
python3 tools/self_improve.py log --event E [--area A] [--context C] | append one feedback event | logged=<event> | 0 ok · 2 usage |
python3 tools/self_improve.py learn [--area A] [--limit N] | read recent feedback | one ts= area= event= context= line per entry | 0 ok · 2 usage |
python3 tools/self_improve.py report [--out F] | render improvement report | report=<file> events=<n> | 0 ok · 1 no template |
python3 tools/shieldswarm_selftest.py | full offline package test | PASS: lines, ends ALL CHECKS PASSED | 0 pass · 1 fail |
All scripts: bash 3.2+ portable, coreutils only, no network calls,
deterministic, --help supported. Outputs are key=value — parse them, do
not re-derive.
bash scripts/mode_selector.sh --symptom "cannot login" --evidence public
# -> mode=support_without_login action=collect_user_side_evidence required=templates/no_login_diagnostic.md ...
Read the required= file. Do the action=. Nothing else until it is done.
Checklist (answer yes to all before any risky step): mode chosen? · user
authorized this action? · no attack traffic / login bypass? · secrets,
prompts, screenshots, HAR files, logs redacted? · rollback path exists
before any production change? · human approver recorded in
approval.jsonl for every risky change?
Escalation: public info sufficient → support w/o login · else guide the human through official UI/OAuth/SSO/device login (never request credentials) · authorized operator? no → auth-user support · yes → operator mode with approval gates · red-team requested → Rules of Engagement required before any test.
approval.jsonl for every
risky change; for risk=high the approver must differ from the rollback
owner and from the operator.Validate any proposed command before running it:
bash scripts/shieldswarm_validate.sh --command "npx clawhub install <slug>" --mode operator
Single source of truth: templates/quality_floor_matrix.yaml (flat,
machine-readable; cloud-only policy). Gate every model selection:
bash scripts/quality_floor_check.sh --task "security code review" --proposed-model "claude-opus-5"
bash scripts/quality_floor_check.sh --task "status update" --proposed-model "gemini-3-flash"
templates/no_login_diagnostic.mdtemplates/support_ticket.mdtemplates/operator_authorization.yamlreferences/incident.mdreferences/model_resilience.mdscope:,
abort_conditions:, rollback_owner:, authorized_by:, and non-empty
exercise_name / authorized_by / rollback_owner). Emergency
abort: say STOP SHIELDSWARM EXERCISE NOW. → templates/red_team_roe.yamlreferences/promotion.mdFull playbooks: references/modes.md.
Commander (mode + change approval) · Scribe (timeline, redaction, feedback
log) · Responder (approved diagnostics, 30–90 s timeouts) · Validator
(shieldswarm_validate.sh) · Quality-Floor Enforcer (quality_floor_check.sh).
After every failed gate, blocked approval, below-floor event, or aborted exercise, the Scribe logs one redacted line:
python3 tools/self_improve.py log --event below_floor --area floor --context "task=code_review model=qwen3-0.6b floor=tier1"
python3 tools/self_improve.py learn --area floor # before retrying
python3 tools/self_improve.py report # at exercise end
Feedback lives in local feedback.jsonl (never uploaded). At the next
version bump, apply the top actionable report items and record them in
CHANGELOG.md — the changelog is the long-term memory. Protocol:
references/self_improvement.md.
Pre-publish gate: selftest ALL CHECKS PASSED + validator over every command
example + redaction pass. This skill is defensive-only and authorization-gated
by design; promotion is opt-in, honest, and spam-free. If asked for
prohibited offensive work: refuse in one short sentence and redirect to
lawful troubleshooting, privacy-preserving documentation, official support,
or authorized resilience work under a written ROE. Details:
references/promotion.md.
| Load when | File |
|---|---|
| always (this file) | SKILL.md |
| mode selected | the required= file from mode_selector |
| any mode details | references/modes.md |
| incident_commander active | references/incident.md |
| model_resilience active | references/model_resilience.md |
| ethical_promotion active | references/promotion.md |
| feedback/retry after failure | references/self_improvement.md |
| templates | templates/ (25 files; ls templates/ for the list) |
| verification | python3 tools/shieldswarm_selftest.py |
python3 tools/shieldswarm_selftest.py # full offline package test
Covers: package hygiene, frontmatter, reference integrity, YAML parsing, script syntax, functional PASS/FAIL paths for all four scripts, matrix semantics, safety phrases, secret/dangerous-pattern scans, changelog/version consistency.
CHANGELOG.md is authoritative. Registry note: earlier registry versions
served newer content under old tags — always publish with an explicit
--version and read CHANGELOG.md before trusting a cached copy.