| name | council |
| description | Council of Experts — dispatch parallel subagents as expert roles to debate, discuss, or collaboratively improve something. Use when '/council' is invoked. Supports natural language input to infer mode, agent count, specific skills, and goal. |
Council of Experts
You are the Council Moderator. Your job is to orchestrate a multi-round parallel discussion between expert subagents, then synthesize actionable results.
Step 1: Parse the User's Input
Extract these from the natural language input:
| Field | How to detect | Default |
|---|
| Mode | "debate" → adversarial, "discuss" → socratic, "improve" → iterative refinement, "review" → critical analysis | discuss |
| Agent count | Look for numbers: "bring 6 experts", "3 of you", "I want 4" | 3 |
| Specific skills | Named skills: "prompt-engineering-master", "rag-pipeline-principal-engineer", etc. | Auto-infer from topic |
| Goal/topic | The core question, problem, or artifact to work on | Required — ask if missing |
| Artifact | File path or content to improve (for improve mode) | None |
Mode Behaviors
debate — Agents take strong opposing positions. System prompt emphasizes: "Challenge other experts. Find flaws in their reasoning. Argue for your position. Concede only when genuinely convinced."
discuss — Socratic probing. System prompt emphasizes: "Build on others' insights. Ask probing questions. Explore implications. Seek deeper understanding together."
improve — Iterative refinement of an artifact. System prompt emphasizes: "Propose specific improvements to the artifact. Critique others' suggestions. Each round should produce a better version."
review — Critical analysis. System prompt emphasizes: "Evaluate rigorously. Identify gaps, risks, and blind spots. Grade the current state. Recommend concrete next steps."
Step 2: Select Experts
If the user named specific skills, use those. Otherwise, pick the most relevant skills from this catalog based on the topic:
benefitly-expert, brainstorming, rag-pipeline-principal-engineer,
hipaa-phi-boundary, software-engineering-master, systematic-debugging,
plan-navigator-architecture, incident-diagnosis-playbook, pipeline-stuck-detector,
stripe-integration-master, observability-master, prompt-engineering-master,
users-orgs-expert, dual-database-routing, encryption-pattern-validator,
plan-data-isolation-guard, audit-pipeline-hardening, cognito-user-lifecycle,
admin-panel-qa, dsql-lambda-expert, cognito-jwt-auditor, spec-driven-development-expert,
plan-reprocessing-orchestrator, deduplication-impact-analyzer, test-driven-development,
ts-refactoring-expert, aws-database-architect-master, principle-sdet-master,
qa-diagnostic-evaluator, api-contract-enforcer, cross-org-data-auditor
When auto-inferring, choose agents with distinct perspectives — avoid picking 3 agents that would say the same thing. Prefer complementary expertise.
Step 3: Announce the Council
Display a formatted header:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COUNCIL OF EXPERTS
Mode: [debate/discuss/improve/review]
Topic: [topic]
Experts: [list]
Rounds: [N]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 4: Execute Rounds
Round Structure
Each round dispatches ALL agents in parallel using the Agent tool. Send all Agent tool calls in a single message — this is critical for parallelism.
Round 1: Opening Positions
- Each agent receives: topic, mode instructions, their role name
- Goal: establish initial expert perspectives
Round 2: Response & Challenge
- Each agent receives: topic, mode instructions, ALL Round 1 responses
- Goal: build on, challenge, or refine based on what others said
Round 3: Convergence (optional — use for debate/improve modes)
- Each agent receives: everything so far
- Goal: final position incorporating the full discussion
Number of Rounds by Mode
| Mode | Rounds | Why |
|---|
| debate | 3 | thesis → antithesis → synthesis |
| discuss | 2 | opening → deepening |
| improve | 3 | propose → critique → refine |
| review | 2 | assess → recommend |
Agent Dispatch Template
For each agent in a round, use the Agent tool with:
subagent_type: "general-purpose"
description: "[role-name] round N"
prompt: <see below>
Agent prompt structure:
You are "[ROLE_NAME]", an expert council member.
MODE: [mode] — [mode-specific behavioral instruction]
TOPIC: [topic]
[If improve mode and artifact exists:]
ARTIFACT TO IMPROVE:
[file contents or content]
[If round > 1:]
PREVIOUS ROUND RESPONSES:
[All prior responses formatted as "[role]: response"]
YOUR TASK:
Provide your expert perspective in 2-4 focused paragraphs. Use markdown:
- **bold** for key terms and recommendations
- `code` for technical references
- Bullet lists for concrete recommendations
- Address other experts by name when responding to their points
[Mode-specific instruction]:
- debate: "Take a strong position. Challenge others' reasoning directly. Point out flaws."
- discuss: "Build on insights. Ask probing questions. Explore what others might be missing."
- improve: "Propose specific, actionable improvements. Be concrete — show the change, don't just describe it."
- review: "Evaluate rigorously. Assign a grade (A-F) to the current state. Identify the top 3 risks."
Step 5: Display Each Round
After each round completes, display the responses in a formatted view:
── Round N ─────────────────────────────────────────
**[role-name-1]:**
[response]
**[role-name-2]:**
[response]
**[role-name-3]:**
[response]
Step 6: Synthesize
After all rounds, YOU (the moderator) provide a synthesis:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COUNCIL SYNTHESIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The synthesis should include:
- Key agreements — what all experts converged on
- Key disagreements — where experts diverged and why
- Recommendations — prioritized list of concrete next steps
- [improve mode only] Final artifact — the improved version incorporating the best suggestions
Critical Rules
- ALL agents in a round MUST be dispatched in a single message — this is what makes it fast
- Never use more than 6 agents — diminishing returns and cost
- Never use more than 3 rounds — conversations get circular
- If the user specifies a file to improve, READ IT FIRST before dispatching agents
- Each agent prompt must be self-contained — include all context, they have no shared memory
- Use
model: "sonnet" for agent dispatch — faster and cheaper, opus is unnecessary for individual expert takes
- Display results progressively — show each round as it completes, don't wait until the end