← 返回 Skills 市场
0xrichyrich

Agent Debate

作者 0xrichyrich · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
379
总下载
1
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-debate
功能描述
Coordinates multiple agents to independently argue competing approaches, then synthesizes their positions to identify the best solution for complex decisions.
使用说明 (SKILL.md)

Agent Debate Skill

Spawn multiple sub-agents to debate approaches and converge on the best solution.

Overview

Uses parallel sub-agents with file-based coordination to simulate adversarial debate. Each agent investigates independently, writes findings, then a synthesis agent reviews all positions and picks the winner.

Pattern: Competing Hypotheses

Best for: architecture decisions, debugging, strategy, trade analysis

How It Works

  1. Lead defines the question and spawns 2-4 debate agents
  2. Each agent writes their position to plans/debate-{id}/agent-{n}.md
  3. A synthesis agent reads all positions and produces a verdict
  4. Lead reviews and acts on the verdict

File Structure

plans/debate-{topic}/
├── question.md          # The question being debated
├── agent-1.md           # Agent 1's position
├── agent-2.md           # Agent 2's position
├── agent-3.md           # Agent 3's position (optional)
├── rebuttal-1.md        # Agent 1's rebuttal (round 2)
├── rebuttal-2.md        # Agent 2's rebuttal (round 2)
├── synthesis.md         # Final synthesis and verdict
└── decision.md          # Lead's final decision

Usage

Single Round (Fast)

3 agents, one round, synthesis. ~5 minutes.

1. Write question to plans/debate-{topic}/question.md
2. Spawn 3 agents simultaneously:
   - Agent A: "Argue FOR approach X. Read plans/debate-{topic}/question.md. Write your position with evidence to plans/debate-{topic}/agent-1.md"
   - Agent B: "Argue FOR approach Y. Read plans/debate-{topic}/question.md. Write your position with evidence to plans/debate-{topic}/agent-2.md"
   - Agent C: "Argue FOR approach Z. Read plans/debate-{topic}/question.md. Write your position with evidence to plans/debate-{topic}/agent-3.md"
3. Wait for all to complete
4. Spawn synthesis agent:
   "Read all positions in plans/debate-{topic}/. Score each on: feasibility (1-10), risk (1-10), speed (1-10), quality (1-10). Write verdict to plans/debate-{topic}/synthesis.md"

Two Round (Thorough)

3 agents, position + rebuttal, synthesis. ~10 minutes.

Round 1: Same as single round (positions)
Round 2: Each agent reads others' positions and writes rebuttals
  - "Read all agent-*.md files. Write a rebuttal challenging the other positions. Save to rebuttal-{n}.md"
Round 3: Synthesis reads everything and decides

Red Team (Adversarial)

1 builder + 1 attacker. Best for security/robustness.

1. Builder: "Design/implement X. Write to plans/debate-{topic}/proposal.md"
2. Attacker: "Read proposal.md. Find every flaw, vulnerability, and edge case. Write to plans/debate-{topic}/attack.md"
3. Builder: "Read attack.md. Address each issue. Write to plans/debate-{topic}/defense.md"
4. Synthesis: "Score the final defense. Is it production-ready?"

Model Assignment

  • Debate agents: Opus 4.6 (needs deep reasoning)
  • Synthesis agent: Opus 4.6 (needs to weigh nuanced arguments)
  • Simple positions: Sonnet 4.5 (if cost matters and topic is straightforward)

When To Use

✅ Architecture decisions with multiple valid approaches ✅ Debugging with unclear root cause ✅ Trading strategy evaluation ✅ Security review (red team pattern) ✅ Hackathon approach selection

❌ Simple implementation tasks ❌ Tasks with one obvious answer ❌ Sequential work with dependencies

Example Prompts

Architecture Debate

Question: "Should Nudge use Turso (SQLite) or Supabase (Postgres) for production?"
Agent 1: Argue for Turso — edge computing, simplicity, cost
Agent 2: Argue for Supabase — ecosystem, realtime, auth
Agent 3: Devil's advocate — what about a hybrid approach?

Trading Strategy

Question: "Is ETH undervalued at current levels given macro conditions?"
Agent 1: Bull case — on-chain metrics, upcoming catalysts
Agent 2: Bear case — macro headwinds, technical levels
Agent 3: Neutral — range-bound thesis with key levels to watch

Debug Investigation

Question: "App crashes on iOS 17 but not 18. What's the root cause?"
Agent 1: Investigate API deprecation changes
Agent 2: Investigate SwiftUI rendering pipeline differences
Agent 3: Investigate memory management changes

Integration with Swarm

The debate pattern works across the swarm:

  • Sprint can debate hackathon approaches
  • Quant can run bull/bear/neutral analysis
  • Architect can evaluate design patterns
  • Any agent can spawn a debate when facing a non-obvious decision

Future: Native Agent Teams

When OpenClaw supports Claude Code's agent teams natively:

  • Agents will message each other directly (no file coordination)
  • Shared task list replaces file-based progress tracking
  • Lead can delegate without implementing
  • This skill becomes a lightweight wrapper around native teams
安全使用建议
This skill appears coherent for facilitating multi-agent debates, but take the following precautions before installing or running it: 1) Avoid putting secrets or sensitive data into the debate question or agent files — these are written to disk and could be read later. 2) Sanitize the debate topic input (debate-{topic}) to prevent path traversal or accidental writes outside the intended folder; use a controlled folder name or a whitelist. 3) Restrict file permissions on plans/debate-{topic}/ and run debates in an isolated or ephemeral workspace if possible. 4) Confirm the agent runtime limits (models referenced in SKILL.md may not match your environment) and that spawned sub-agents only have access to the intended folder. 5) If you will run red-team patterns, audit outputs carefully before acting on them. With those mitigations this skill is consistent with its purpose.
功能分析
Type: OpenClaw Skill Name: agent-debate Version: 1.0.0 The 'agent-debate' skill is designed to facilitate a structured debate among AI sub-agents using file-based coordination. All file operations (reading and writing markdown files) are explicitly defined and confined to a relative directory structure (`plans/debate-{topic}/`). There are no instructions for data exfiltration, arbitrary command execution, persistence mechanisms, or prompt injection intended to subvert the agent for malicious purposes. The 'Red Team' pattern, while security-focused, instructs an agent to *identify* flaws in a hypothetical design, not to *exploit* them on the host system. The skill's behavior is clearly aligned with its stated purpose.
能力评估
Purpose & Capability
The name/description (coordinate multiple agents to debate and synthesize positions) aligns with the SKILL.md instructions: spawn multiple agents, have them write positions to plans/debate-{topic}/, then run a synthesis agent. No unrelated binaries, env vars, or installs are requested.
Instruction Scope
Instructions are narrowly scoped to reading/writing files under plans/debate-{topic}/ and performing synthesis. This is consistent with the stated purpose. Practical risks: the skill stores debate content on disk (which can leak sensitive content if users place secrets in question.md or agent files), and the topic interpolation (debate-{topic}) could permit path traversal or unexpected paths if untrusted topic strings are used. The SKILL.md does not instruct reading system files or environment variables outside the debate folder.
Install Mechanism
Instruction-only skill with no install spec and no external downloads — lowest-risk installation profile.
Credentials
No environment variables, credentials, or config paths are requested. The absence of secrets is appropriate for the declared functionality.
Persistence & Privilege
always is false and the skill does not request elevated/persistent privileges or modify other skills. Autonomous invocation is allowed by default (disable-model-invocation is false), which is expected for a skill that spawns sub-agents.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-debate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-debate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Agent Debate Skill v1.0.0 — Initial Release - Introduces a debate pattern where multiple sub-agents independently argue solutions to a question, followed by a synthesis agent choosing the best answer. - Supports single or multi-round debates, including position, rebuttal, and synthesis phases. - Includes a specialized "Red Team" adversarial pattern for robustness and security evaluation. - Defines a clear file-based structure for agent coordination and progress tracking. - Provides recommended usage scenarios, example prompts, and guidelines for model selection. - Designed for architecture decisions, debugging, strategy analysis, and more.
元数据
Slug agent-debate
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Agent Debate 是什么?

Coordinates multiple agents to independently argue competing approaches, then synthesizes their positions to identify the best solution for complex decisions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 379 次。

如何安装 Agent Debate?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-debate」即可一键安装,无需额外配置。

Agent Debate 是免费的吗?

是的,Agent Debate 完全免费(开源免费),可自由下载、安装和使用。

Agent Debate 支持哪些平台?

Agent Debate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent Debate?

由 0xrichyrich(@0xrichyrich)开发并维护,当前版本 v1.0.0。

💬 留言讨论