brewtoolsdebatelisted
Install: claude install-skill kochetkov-ma/claude-brewcode
# Multi-Agent Debate
Orchestrates sequential multi-agent debates. Dynamic agents (2-5) with unique characters debate, main session acts as judge, secretary summarizes, judge writes final decisions.
---
## Phase 0: Validation
**EXECUTE** using Bash tool:
```bash
bash "${CLAUDE_SKILL_DIR}/scripts/validate.sh" && echo "VALID" || echo "FAILED"
```
> **STOP if FAILED** — fix missing files before continuing.
Read archetypes into context:
Read file: `${CLAUDE_SKILL_DIR}/agents/archetypes.md`
---
## Phase 1: Parse Arguments
**Arguments:** `$ARGUMENTS`
| Flag | Default | Description |
|------|---------|-------------|
| `-m` | ask user | Mode: `challenge`, `strategy`, `critic` |
| `-n` | 3 | Agent count: 2-5 |
| `-r` | 5 | Max debate rounds |
| `--review` | off | Run `/brewcode:review` on output |
| (positional) | — | Topic text or file path |
### Mode not specified (when `-m` omitted)
If mode is NOT explicitly provided via `-m` flag or clearly stated in the topic text, **do NOT auto-detect**. Ask user using AskUserQuestion:
> **Which debate mode?**
>
> 1. **Challenge** — generate/receive variants, debate to select the best one
> 2. **Strategy** — each agent proposes independently, then debate to converge
> 3. **Critic** — all agents attack the given solution to find weaknesses/risks
>
> Reply with mode name or number.
Only proceed after explicit user choice.
If topic is a file path (exists on disk) — read file content as topic.
---
## Phase 2: Init + Display
**EXECU