/duel-skill:duelfrom duel-skill
Challenges Claude's answer by having an OpenAI model critique it, then defends or revises through evidence-led debate. Use for explicit cross-model verification.
Ships in duel-skill. 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; scripts run unread.
Turn a questionable answer into a stronger one by exchanging actual critiques with an OpenAI model. You are the defender and final editor in the current Claude Code session. The bundled helper calls the critic through the OpenAI API. Never write both sides yourself and describe it as two models debating.
/duel uses the last substantive request and the answer the user wants challenged./duel <task> drafts an initial answer to that task, then debates it./duel --quick allows one critique/revision exchange./duel --rounds N allows 1–3 exchanges; default maximum is 3./duel --model MODEL selects the critic. Otherwise use DUEL_OPENAI_MODEL, then
the helper's default. /duel --manual uses critiques the user supplies from a
separate model instead of the API.Interpret flags as data. Never interpolate raw user arguments into a shell command. Ask a short clarifying question only if the target request or answer is ambiguous. Do not broaden the original task. A debate about an action does not authorize performing that action.
An explicit request to use Duel authorizes its ordinary bounded critique calls. If you merely suggest Duel during another task, get agreement before sending that task to another provider. Keep normal tool permissions in force. Briefly tell the user which model will receive the prepared question, answer, and relevant context, and the maximum number of calls. OpenAI API usage is billed separately.
python3 "${CLAUDE_SKILL_DIR}/scripts/duel.py" check (add --model when the
user selected one). It checks configuration
without making a network request or printing the API key. A successful check
does not prove the key is valid or the model is accessible.OPENAI_API_KEY in the terminal
environment that launches Claude Code, or offer manual mode. Never ask the user
to paste a key into chat, read credential stores, or quietly substitute a
simulated critic. A different model requires the user's choice if the configured
model fails..duel/ in the working project, with private
permissions where supported. Store only the selected task, answer, necessary
context, and debate artifacts there. These can be sensitive: do not commit them
or change the project's ignore rules without authorization. If the project
cannot be written, use a temporary run folder and report its location.Read references/protocol.md for the exact packet and file formats before the first exchange. Write JSON with a file-writing tool or a JSON serializer. Use distinct filenames for each round and do not overwrite prior runs.
For round 1, send the original question, current answer, context, and claim IDs. The helper makes exactly one request:
python3 "${CLAUDE_SKILL_DIR}/scripts/duel.py" critique \
--packet ".duel/RUN/round-1.packet.json" \
--output ".duel/RUN/round-1.critic.json"
Replace RUN with the actual run folder. For a user-selected model, append a
properly quoted --model value to every request. Read the saved JSON. In API mode,
count an exchange only after the helper succeeds with status: completed and a
nonempty critique, and you have responded to it. In manual mode, count it only
after receiving the user's actual pasted critique and responding to it.
Respond to each material objection with a short, checkable reason:
Update the claim ledger with retained, revised, dropped, or unresolved, the
reason, and supporting evidence when available. Keep IDs stable when wording
changes; give genuinely new claims new IDs. Save your revised answer and concise
response to the critic. Do not record private reasoning traces.
For later rounds, send the latest answer and the complete ordered history of earlier critiques and your responses. The second pass challenges the defense and revision; the third checks the near-final answer for remaining consequential errors. Each response field in history should include your revised answer as well as the reasons for changes, so the critic can follow the evolution.
Stop at the chosen limit, or earlier when there are no material unresolved objections or further progress requires unavailable evidence. Agreement between models alone does not establish truth. If a claim needs fresh research or a test, use available tools only within the user's scope and cite actual results. The critic itself has no web access or execution tools.
On helper errors, stop the automated exchange and report the actual failure. Do not treat an incomplete, empty, refused, or dry-run result as a critique. A timeout may still have incurred a charge; do not automatically resend it. Do not silently raise token limits, switch models, or start more rounds to get a preferred verdict.
Lead with the revised answer. Then give a compact claim table (ID, final claim, status, reason/evidence), the most useful change, and any unresolved uncertainty. State the actual critic model returned by the API and the number of completed exchanges. In manual mode, state the model only as user-reported (or unknown), with participation unverified. Link the local run record when useful.
Save final.md with that same answer and ledger. Say that Claude synthesized the
result; there is no independent third judge. Report fewer than the requested rounds
when you stopped early. Never claim the answer is proven or objectively best merely
because it survived a debate.
In manual mode, provide the packet and critic prompt described in the protocol, then wait for the user to supply the real external response. Label its origin as user-provided and unverified. If the user does not supply it, the duel is incomplete; you may still help with an ordinary single-model review if requested.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jakeschincariol/duel-skill --plugin duel-skillOther plugins' skills for the same job