From debate-skills
Use this skill when orchestrating multi-agent adversarial planning debates before code is written. Activates when planning complex implementations, coordinating pre-implementation discovery, stress-testing implementation approaches, or producing validated plans for coding agents. Provides discovery prompts, debate protocol, and plan templates.
How this skill is triggered — by the user, by Claude, or both
Slash command
/debate-skills:debating-implementation-plansThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Orchestrate a team of 4 planning specialists who independently analyze a task, then debate to produce a validated implementation plan. Adversarial debate before coding catches issues when revising a plan costs nothing, instead of after coding when fixing means rewriting.
Orchestrate a team of 4 planning specialists who independently analyze a task, then debate to produce a validated implementation plan. Adversarial debate before coding catches issues when revising a plan costs nothing, instead of after coding when fixing means rewriting.
Planning failures are expensive:
Debate forces independent perspectives to collide before a single line of code is written.
Agent teams are experimental and disabled by default. Enable them by adding the following to your settings.json or shell environment:
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}
Use the full debate protocol for:
See "When to Skip" at the bottom for lighter alternatives.
| Agent | Role | Primary Technique | Focus |
|---|---|---|---|
| The Scout | Discovery | Exhaustive codebase exploration | Existing patterns, utilities, types, affected systems, test patterns |
| The Planner | Design | Concrete implementation planning | Step-by-step approach, file manifest, alternatives considered |
| The Critic | Pre-mortem | Failure mode analysis | Missed dependencies, integration risks, specification gaps, complexity |
| The Prosecutor | Devil's Advocate | Challenge all claims | Verifies Scout's findings, challenges Planner's assumptions, tests Critic's concerns |
Each agent is available as a custom agent in ../../agents/ and is configured with Opus, read-only tools, and this skill preloaded. See ./references/planner-personas.md for detailed persona rationale and thinking styles.
Create an agent team with the 4 planning agents. They are pre-configured in this plugin's agents/ directory (scout, planner, critic, prosecutor-planning).
Teammates don't inherit the lead's conversation history - they only get project context (CLAUDE.md, skills, MCP servers) plus the spawn prompt. Include the full task specification in the prompt.
Create an agent team to plan the implementation of [describe the task - include
the full specification, acceptance criteria, and any constraints].
Spawn 4 teammates using the scout, planner, critic, and prosecutor-planning agents.
Require plan approval for the prosecutor-planning agent (it must wait for Round 1 outputs).
Create tasks with dependencies:
- Round 1 tasks (no dependencies, run in parallel):
- "Scout: explore codebase for [task context]" → assign to scout
- "Planner: draft implementation plan for [task context]" → assign to planner
- "Critic: pre-mortem analysis of [task context]" → assign to critic
- Round 2 tasks (depend on all Round 1 tasks):
- "Prosecutor: challenge Round 1 outputs" → assign to prosecutor-planning
- "All agents: respond to challenges and cross-pollinate findings"
- Round 3 task (depends on Round 2):
- "Planner: produce final revised plan"
- "Critic: state final risk assessment"
- "Prosecutor: provide final verdicts"
After Round 3, synthesize into the final plan document.
Scout, Planner, and Critic analyze the task independently. All three run in parallel via the shared task list.
The Prosecutor is in plan approval mode during Round 1 - the lead won't approve its plan until Round 1 tasks are complete.
Why parallel, not sequential: The Planner's draft plan will miss things the Scout finds - that delta is where the value lives. The Critic can pre-mortem from the task description alone without needing the plan.
Round 2 tasks automatically unblock when Round 1 completes (via task dependencies).
See ./references/planning-debate-protocol.md for detailed messaging patterns.
The lead produces the final plan document using the template in ./references/plan-template.md.
The plan document is designed to be directly consumable by a coding agent. It includes:
The full 4-agent debate is thorough but costs time and tokens. Use lighter approaches for simpler work:
| Change Type | Approach | Agents | Rounds |
|---|---|---|---|
| Complex cross-module, new architecture | Full debate | 4 | 3 |
| Medium complexity, single module | Scout + Planner | 2 | 1 |
| Simple, well-understood | Solo Scout (discovery check) | 1 | 1 |
| Trivial (docs, config) | Skip entirely | 0 | 0 |
../../agents/ (scout, planner, critic, prosecutor-planning)./references/planner-personas.md./references/planning-debate-protocol.md./references/plan-template.mdnpx claudepluginhub adbutterfield/coding-agent-plugins --plugin debate-skillsPlans implementation by investigating code, writing specs and plans, and validating with a peer agent. Useful before coding for planning, design approach, or scoping.
Orchestrates 5 AI agents to research codebase, discuss consensus, clarify with user, and create plan.md for Plan Mode before implementing tasks like bugs, features, refactoring across files.
Generates detailed implementation plans for features, refactors, migrations, bug fixes, and architectural changes using multi-agent collaboration. Outputs structured Markdown files with steps, scope, and risks.