← 返回
未分类

debate

> GAN-style adversarial analysis skill that iteratively refines technical proposals, code reviews, and product requirements through two fully independent agents: Agent A (proposer) and Agent B (critic). Use when the user wants deep multi-angle analysis of a technical solution, code change, or product requirement.
user_leosu
未分类 community v1.0.1 2 版本 99152.5 Key: 无需
★ 0
Stars
📥 117
下载
💾 2
安装
2
版本
#latest

概述

Debate Skill

Two fully independent agents debate a proposal through iterative rounds until convergence,

then a neutral Synthesizer produces the final output.

Architecture

User Input → Auto-detect domain → Agent A (propose) → Agent B (critique)
→ Orchestrator (score + converge?) → [loop] → Synthesizer → Final Output
  • Agent A (Proposer): Knows only the original input + previous version + B's last criticism
  • Agent B (Critic): Knows only the original input + current version + its own last criticism
  • Agents are fully context-isolated — neither knows the other exists
  • Synthesizer: Sees the full debate history, produces neutral final output

Step 1 — Parse Arguments

Extract from user input:

  • --verbose → show all round details (default: false)
  • --rounds N → max rounds (default: 5)
  • remaining text → {subject}

Step 2 — Auto-Detect Domain

Analyze {subject} and select one domain. See references/domains.md for role definitions and focus areas per domain.

DomainDetect when
---------------------
techarchitecture, system design, API, database, algorithm, infra
crcode snippet, diff, PR description, function/class review
productrequirements, user story, feature spec, PRD

Step 3 — Iterative Debate Loop

Run rounds 1 → max_rounds. Each round:

  1. Agent A (independent context) — see references/prompts.md § Agent A
    • Round 1: Generate initial proposal from {subject}
    • Round N: Respond to B's criticism + output improved full version
  1. Agent B (independent context) — see references/prompts.md § Agent B
    • Critique current version; reference own last criticism to avoid repetition
  1. Orchestrator scoring (inline logic, not a separate agent):
    • Parse B's output for 🔴/🟡/🟢 counts
    • Converge early if: 🔴 == 0 AND 🟡 ≤ 1
    • Force converge if: round == max_rounds
    • Otherwise: pass context to next round
  1. Print round status panel (always visible, even without --verbose):

```

━━━ Round N/max ━━━ 🔴×N 🟡×N 🟢×N → [继续迭代 | 收敛 ✓]

```

Step 4 — Synthesizer

After convergence, run Synthesizer with full debate history.

See references/prompts.md § Synthesizer.

Step 5 — Output

Default (精简) mode:

━━━ 对抗分析完成:共 N 轮 ━━━

## 最终方案
[complete, ready-to-use content]

## 关键决策
| 议题 | 决策 | 依据 |
|------|------|------|

## 遗留风险
- ...

--verbose mode (prepend before final output):

## 对抗过程

### Round N
**Agent A 方案:**
[full proposal]

**Agent B 批评:**
[full criticism with 🔴🟡🟢 breakdown]

版本历史

共 2 个版本

  • v1.0.1 Initial release 当前
    2026-04-16 11:29 安全 安全
  • v1.0.0 Initial release
    2026-04-16 11:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 714 📥 244,005
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 318,768
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,217 📥 266,685