/sd0x-dev-flow:codex-brainstormfrom sd0x-dev-flow
Adversarial brainstorming via Claude+Codex debate for exploring solutions, feasibility analysis, and exhaustive enumeration. Outputs debate status, non-dominated options with trade-offs, and evidence gaps.
Ships in sd0x-dev-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
/codex-review)⚠️ Independent Research → Adversarial Debate → Stop when a round raises no new objection ⚠️
The report carries two results, reached independently of each other:
| Result | Question it answers | Decided by |
|---|---|---|
| Debate status | Did the two positions converge, or do they still diverge? | The objections raised and answered across rounds |
| Option comparison | Which feasible options does the evidence leave standing? | Dominance over the relevant criteria — references/equilibrium.md § Option Comparison |
Neither decides the other. Agreement does not make an option dominant, and a debate that ends divided still excludes an option the evidence shows to be dominated.
"No new objections" is a stopping rule, not a proof. The debate stops at the round in
which neither side raised a new, un-rebutted objection — the point where further debate stops
paying — and Equilibrium reached is reserved for a stop that leaves the two sides in agreement. No payoff model was defined, so the report never claims a formal game-theory result: not
that a Nash equilibrium was proven, not that the outcome is optimal, not a "mixed strategy".
| Phase | Action | Output |
|---|---|---|
| 1 | Claude independent research + analysis, forms Position A | Claude's optimal hypothesis |
| 2 | Codex independent research + analysis, forms Position B | Codex's optimal hypothesis |
| 3 | Multi-round adversarial debate, mutual attacks | Debate exchange record |
| 4 | Apply the stopping rule; compare the options by dominance | Debate status + retained options |
| 5 | Output final report | Brainstorm report |
⚠️ Must let Codex research independently; do NOT feed Claude's analysis results ⚠️
Dispatch this body per @skills/codex-code-review/references/codex-transport.md § Start — a fresh thread for Phase 2. The transport pins the
sandbox and the approval policy, so nothing is chosen here. Save the returned threadId; the
Phase 3 debate rounds continue that same thread per its § Resume (references/techniques.md).
Bind every placeholder before writing prompt.md — nothing evaluates an expression in a body-only
template.
You are a senior architect. Conduct an independent analysis of the following topic.
${TOPIC}
${CONSTRAINTS}
Before forming conclusions, you must first:
ls at the repository root, then list the directories it actually shows — do not assume a src/ or test/unit/ layout; many repositories, this one included, have neithergrep -rn "keyword" . -l | head -10 — rooted at the repository, or at a directory the discovery step above actually surfaced; never at an assumed src/Structure per round:
| Condition | Description | Debate status to report |
|---|---|---|
| No new objections | From round 3 on, a full round in which neither side raises a new, un-rebutted objection | Decided by where the positions stand: Equilibrium reached — converged (one proposal, or one agreed condition for choosing) or an agreed trade-off between retained options; Diverged when an earlier disagreement is still unresolved |
| Max rounds | 5 rounds reached and objections are still open | Diverged |
Diverged uses the same report, with the divergence sections added
(references/equilibrium.md § Handling Divergence).
Rounds 1–3 always run: the stopping rule is first checked at the end of round 3. A quiet early round is spent testing assumptions and evidence gaps, not ending the debate.
A termination condition ends the debate; it does not rank the options. Run Phase 4's comparison under either status.
Full rules and the worked example: references/equilibrium.md § Option Comparison.
Example (lower is better on both): A = 2 days / 100 ms, B = 4 days / 100 ms, C = 4 days / 60 ms. A dominates B (fewer days, equal latency), so B is excluded. A and C are both retained: A ships 2 days sooner, C is 40 ms faster — a trade-off, not a ranking. Were C's latency unknown, it would be an evidence gap: C stays, and "measure C's latency" goes in the report.
| File | Purpose |
|---|---|
references/templates.md | Claude/debate/report templates |
references/techniques.md | Attack/defense techniques |
references/equilibrium.md | Stopping rule, debate status, option comparison by dominance |
Input: What implementation approaches are available for this requirement?
Phase 1: Claude independent research → Position A (Solution X is optimal)
Phase 2: Codex independent research → Position B (Solution Y is optimal)
Phase 3: Adversarial debate
- R1: Claude attacks Y's scalability / Codex attacks X's complexity
- R2: Claude rebuts / Codex concedes and updates position
- R3: Both converge to Solution Z, no new objections → stop
Phase 4: Compare X, Y, Z by dominance → Z retained, X dominated by Z, Y retained pending one measurement
Phase 5: Report — debate status: Equilibrium reached (converged on Z); evidence gap: Y's latency
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sd0xdev/sd0x-harness --plugin sd0x-dev-flow102 skills in this plugin
/adrWrite an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as docs/features/<feature>/adr-<NNN>-<title>.md with a 3-digit zero-padded number. Handles the Superseded case: bidirectional linking when a new ADR replaces an old one. Use when: recording why an architectural approach was chosen, documenting a decision so it doesn't get re-litigated, marking a prior decision as superseded. Not for: feature-level technical design (use /tech-spec), task progress tracking (use /create-request), bulk backfill of historical decisions (a separate request — this skill writes one ADR at a time)./agentctl-setupInstall and set up the optional agentctl mod (task scope, refusal before execution, evidence that goes stale, model-free hand-over) — checks the environment, installs after approval, builds the first task line, optional deny rules, uninstall/architectureOther plugins' skills for the same job