From ai-workspace
Pressure-test a proposal through structured dialogue between a proponent and skeptic. Extracts the current proposal from context, runs rounds of challenge and refinement, and saves a synthesized plan as a thread artifact.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-workspace:debateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Pressure-test the current proposal by running a structured dialogue between a `proponent` and a `skeptic`. Both agents share the same goal: a stronger, more honest proposal. Neither is trying to win.
Pressure-test the current proposal by running a structured dialogue between a proponent and a skeptic. Both agents share the same goal: a stronger, more honest proposal. Neither is trying to win.
/ai-workspace:debate # 2 rounds (default, Claude Code)
/ai-workspace:debate 3 # custom number of rounds (Claude Code)
/debate # 2 rounds (default, Codex CLI)
/debate 3 # custom number of rounds (Codex CLI)
Identify the current proposal or idea from:
Summarize it in 2-3 sentences: what is being proposed, what problem it solves, and what the key assumptions are.
Check whether any specialist agents are available beyond the proponent and skeptic. If none are found, warn the user before starting:
Note: no specialist agents are available. The debate will rely solely on the proponent
and skeptic without external validation of assumptions, which limits its rigor.
On Claude Code, install the specialist agents pack:
/plugin install tech-expert-agents@sebmartin
On Codex CLI, specialist subagents are not yet distributed as a plugin.
You can install them manually by placing .toml agent files in ~/.codex/agents/.
Then confirm the proposal with the user before starting:
I'll pressure-test the following proposal:
[summary]
Starting debate — N rounds. I'll pause if either agent needs clarification from you.
Each round follows this structure:
Invoke each agent as a subagent so they run in isolated context. The exact mechanism depends on the CLI:
Task tool with subagent_type: "proponent" or subagent_type: "skeptic". Multiple subagents can run in parallel.proponent or skeptic subagent by name (Codex spawns subagents on explicit request). Requires the agent .toml files to be present in ~/.codex/agents/ — the init skill installs these.In either case, pass the full debate context so far so each agent builds on, not repeats, what came before.
Between each agent turn, briefly summarize what changed: which concerns were raised, which were resolved, which remain open.
If either agent needs clarification from the user (signaled by language like "I need to ask the user:" or "Before I can continue, I need to know:"), pause the debate immediately. Present the question clearly:
[Proponent / Skeptic] needs clarification before continuing:
[question]
Wait for the user's answer. Resume the debate from where it paused with the new information included in context.
Either agent may delegate to any available specialist agents (architect, security reviewer, cost analyst, etc.) to validate assumptions. On Claude Code these are invoked via the Task tool; on Codex CLI they are spawned by name from ~/.codex/agents/. Their findings are included in that agent's turn output and carried forward in the debate context. The richer the set of available specialist agents, the more rigorous the debate.
After all rounds complete, synthesize a final plan that incorporates the strongest elements from the debate. Do not simply pick a side — integrate the refinements made across all rounds.
The synthesis should cover:
Present the synthesis to the user before saving.
Save to the active thread:
threads/{thread-name}/artifacts/debate-YYYYMMDD.mdShow the relative file path (e.g. ./threads/my-thread/artifacts/debate-20260307.md) so the user can open it directly.
If no active thread is set, present the synthesis inline and ask the user if they want to save it.
# Debate: [Proposal Title] ([YYYY-MM-DD])
## Proposal
[Original proposal summary]
## Debate
### Round 1
**Proponent**: [strongest case for the proposal]
**Skeptic**: [specific counters and blind spots]
**Proponent (refined)**: [response to counters, updated proposal elements]
### Round 2
...
## Refined Proposal
[The strengthened version of the proposal, integrating all refinements]
## Key Strengths
- [What held up under scrutiny]
## Resolved Weaknesses
- [Concern raised]: [How the proposal addressed it]
## Remaining Open Questions
- [What still needs a decision or more information]
## Next Steps
- [Concrete actions]
npx claudepluginhub sebmartin/ai-marketplace --plugin ai-workspaceProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.