微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Red Team

Red Team · v1.0.0
安全 unknown 级 作者 retrodigio 公开目录收录
1.1k 下载 1 安装 2.8k 收藏 4 浏览

简介

Red Team

原始描述

Adversarial multi-agent debate engine for stress-testing decisions, ideas, and strategies. Orchestrates multiple AI agents with conflicting worldviews (bull,...

通过你的 Agent 添加

安装目录:red-team/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/red-team/
Codex CLI~/.codex/skills/red-team/
DeepSeek Harness~/.agents/skills/red-team/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: red-team description: > Adversarial multi-agent debate engine for stress-testing decisions, ideas, and strategies. Orchestrates multiple AI agents with conflicting worldviews (bull, bear, operator, contrarian, etc.) to debate a question through structured rounds, then synthesizes results into a decision brief. Use for: red team analysis, adversarial debate, stress testing ideas, devil's advocate, "what could go wrong" analysis, decision validation, pre-mortem exercises.

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":

  1. Identify the question/decision from the user's message
  2. Choose appropriate personas (default: bull,bear,operator — adjust based on domain)
  3. Run the script and save output
  4. 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

Key Name Worldview
bull The Bull Optimistic, opportunity-focused
bear The Bear Risk-averse, capital preservation
contrarian The Contrarian Oppositional, consensus-challenging
operator The Operator Execution-focused pragmatist
economist The Economist Macro trends, opportunity cost
local-realist The Local Realist Ground truth, local specifics
cash-flow The Cash Flow Analyst Income, carrying costs, IRR
regulator The Regulator Compliance, legal risk
technologist The Technologist Automation, scalability
customer The Customer End-user demand, willingness to pay
ethicist The Ethicist Moral implications, stakeholder impact
historian The Historian Historical 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

Flag Default Description
--question, -q required The question to debate
--personas, -p bull,bear,operator Comma-separated persona keys
--rounds, -r 2 Number of critique rounds
--output, -o stdout Output file path
--context-file, -c none Additional context file
--custom-personas none Custom personas JSON
--model, -m sonnet Model alias (sonnet, opus, haiku, gpt-4o, etc.)
--backend, -b claude CLI backend: claude, codex, or gemini
--list-personas — List personas and exit

Output Structure

The output is a markdown document with:

  1. Initial Proposals — Each agent's independent take
  2. Critique Rounds — Agents critique each other
  3. Refinement — Agents update positions based on critiques
  4. Conviction Scores — Each agent scores all positions (0-100)
  5. 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

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill