# Send Red Team to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "red-team",
    "name": "Red Team",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/retrodigio/red-team",
    "canonicalUrl": "https://clawhub.ai/retrodigio/red-team",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/red-team",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=red-team",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "references/personas.md",
      "scripts/red-team.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/red-team"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/red-team",
    "downloadUrl": "https://openagent3.xyz/downloads/red-team",
    "agentUrl": "https://openagent3.xyz/skills/red-team/agent",
    "manifestUrl": "https://openagent3.xyz/skills/red-team/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/red-team/agent.md"
  }
}
```
## Documentation

### Red Team — Adversarial Debate Engine

Stress-test any decision by having AI agents with conflicting worldviews debate it.

### Prerequisites

One of these coding agent CLIs (uses your existing subscription — no API key needed):

Claude Code (default): claude — npm i -g @anthropic-ai/claude-code
Codex: codex — npm i -g @openai/codex
Gemini: gemini — npm i -g @google/gemini-cli

No Python dependencies beyond the standard library.

### Quick Start

# Basic 3-persona debate (uses Max subscription via claude CLI)
python3 ~/.openclaw/skills/red-team/scripts/red-team.py \\
  --question "Should we do X?" \\
  --personas "bull,bear,operator"

# Full debate with context and output file
python3 ~/.openclaw/skills/red-team/scripts/red-team.py \\
  -q "Should we invest $50k in this deal?" \\
  -p "bull,bear,cash-flow,local-realist" \\
  -r 3 \\
  -c /path/to/deal-data.md \\
  -o /tmp/red-team-result.md

# Use a different model
python3 ~/.openclaw/skills/red-team/scripts/red-team.py \\
  -q "Should we launch this product?" \\
  -p "bull,customer,operator" \\
  -m opus

# List all available personas
python3 ~/.openclaw/skills/red-team/scripts/red-team.py --list-personas

### How to Use (as OpenClaw Agent)

When the user asks you to "red team" something, "stress test" an idea, play "devil's advocate", or asks "what could go wrong":

Identify the question/decision from the user's message
Choose appropriate personas (default: bull,bear,operator — adjust based on domain)
Run the script and save output
Summarize the key findings to the user, share the full report if requested

Persona selection guide:

Investment/financial decisions → bull, bear, cash-flow, economist
Product/startup ideas → bull, customer, operator, technologist
Legal/compliance questions → regulator, bear, operator
Strategy/direction → contrarian, economist, historian, bull
General "should we do X?" → bull, bear, operator (good default)

### Available Personas

KeyNameWorldviewbullThe BullOptimistic, opportunity-focusedbearThe BearRisk-averse, capital preservationcontrarianThe ContrarianOppositional, consensus-challengingoperatorThe OperatorExecution-focused pragmatisteconomistThe EconomistMacro trends, opportunity costlocal-realistThe Local RealistGround truth, local specificscash-flowThe Cash Flow AnalystIncome, carrying costs, IRRregulatorThe RegulatorCompliance, legal risktechnologistThe TechnologistAutomation, scalabilitycustomerThe CustomerEnd-user demand, willingness to payethicistThe EthicistMoral implications, stakeholder impacthistorianThe HistorianHistorical patterns, precedent

### Custom Personas

Create a JSON file:

{
  "my-persona": {
    "name": "The Skeptic",
    "description": "Questions everything, trusts nothing",
    "system": "You are The Skeptic — you question every assumption..."
  }
}

Use with --custom-personas /path/to/file.json. Custom personas merge with built-ins.

### CLI Options

FlagDefaultDescription--question, -qrequiredThe question to debate--personas, -pbull,bear,operatorComma-separated persona keys--rounds, -r2Number of critique rounds--output, -ostdoutOutput file path--context-file, -cnoneAdditional context file--custom-personasnoneCustom personas JSON--model, -msonnetModel alias (sonnet, opus, haiku, gpt-4o, etc.)--backend, -bclaudeCLI backend: claude, codex, or gemini--list-personas—List personas and exit

### Output Structure

The output is a markdown document with:

Initial Proposals — Each agent's independent take
Critique Rounds — Agents critique each other
Refinement — Agents update positions based on critiques
Conviction Scores — Each agent scores all positions (0-100)
Synthesis & Decision Brief — Neutral agent produces:

Executive summary
Consensus points
Key disagreements
Risk matrix
Conviction score summary
Synthesized recommendation
Next steps

### When to Use

✅ Good for: Important decisions, investment analysis, product strategy, "go/no-go" calls, pre-mortems, challenging groupthink

❌ Not for: Simple factual questions, time-sensitive emergencies, decisions already made, emotional/personal choices

### Integration Tips

Save output to memory files for future reference
Create BEADS tasks from the "Next Steps" section
Feed context files from Obsidian or project docs
Re-run with different personas for different perspectives
Use --rounds 1 for quick takes, --rounds 3 for deep analysis
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: retrodigio
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-05-07T17:22:31.273Z
- Expires at: 2026-05-14T17:22:31.273Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/red-team)
- [Send to Agent page](https://openagent3.xyz/skills/red-team/agent)
- [JSON manifest](https://openagent3.xyz/skills/red-team/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/red-team/agent.md)
- [Download page](https://openagent3.xyz/downloads/red-team)