ask-llm-compare
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "compare LLMs", "see how each provider answers", "side-by-side response", "what do Gemini, Codex, Grok…
от Lykhoyda★ 20 звёзд на GitHubОб этом скилле
Portable contract
Send the exact same bounded prompt to two to five selected providers concurrently. Preserve input order in the result, show each response verbatim without synthesis or adjudication, and show every provider failure instead of silently dropping it. Never invoke raw provider CLIs when a canonical Ask LLM bridge is available.
Host adapters
Pi adapter
Use one native ask-multi call. Put the common prompt in prompt and two to five unique names in providers; its implementation, not model-emitted sibling calls, guarantees concurrent bounded dispatch and stable ordering.
Other hosts adapter
Codex, Cursor Agent, Antigravity, Grok Build, Gemini CLI and OpenCode get this skill from their skills folder, not from a plugin. Select two to five unique provider names, then apply the availability filtering, dispatch, and reporting steps in ../ask-llm-review/transport.md with the common prompt. Present each response verbatim and each unavailable selection or failure in the original requested order.
Claude Code adapter
The existing detailed workflow below is the Claude Code adapter. Its Agent, MCP, hook, CLAUDE_PLUGIN_ROOT, and AskUserQuestion mechanics apply only on Claude Code; they do not override the Pi adapter above.
Compare Provider Responses Side-by-Side
Send the same question to multiple LLM providers and present their responses verbatim, side-by-side. No synthesis, no consensus highlighting, no validation pipeline — just raw outputs so the user can compare directly.
This is the right tool when:
- You want to see how each provider phrases the same answer (style, depth, confidence)
- You want a sanity check before picking one provider's recommendation
- You want to evaluate which provider best fits a specific kind of question
- You explicitly want to AVOID Claude synthesizing or weighting the responses
If you want consensus extraction → use /brainstorm instead.
If you're reviewing a code diff → use /multi-review instead.
Instructions
Phase 1: Parse the request
Extract from the user's message:
- The question/prompt to send to all providers (the meaningful payload)
- Optional provider filter — if the user says "compare gemini and codex", only those two; otherwise default to all five (gemini, codex, grok, ollama, antigravity)
- Optional context files — if the user references files (
@path/to/file), Read each referenced file and inline its contents into the shared provider prompt under a clearly labeled<context_file path="...">block.@fileexpansion is Gemini-only; passing the literal path to Codex, Ollama, Grok, or Antigravity silently drops the context. For a file too large to inline safely, include the relevant excerpts and state what was omitted.
If the question is missing or ambiguous, ask the user to clarify before dispatching.
Phase 2: Dispatch in parallel via a single foreground Bash call
Use the ADR-050 dispatch pattern (direct backgrounding + per-PID wait, NOT subshells, NOT run_in_background: true):
set +e
workdir=$(mktemp -d /tmp/ask-llm-compare-XXXXXX)
trap 'rm -rf "$workdir"' EXIT
GMCPT_TIMEOUT_MS=480000 node ${CLAUDE_PLUGIN_ROOT}/dist/run.js "$PROMPT" > "$workdir/gemini.out" 2> "$workdir/gemini.err" &
gem_pid=$!
GMCPT_TIMEOUT_MS=480000 node ${CLAUDE_PLUGIN_ROOT}/dist/codex-run.js "$PROMPT" > "$workdir/codex.out" 2> "$workdir/codex.err" &
codex_pid=$!
GMCPT_TIMEOUT_MS=480000 node ${CLAUDE_PLUGIN_ROOT}/dist/grok-run.js "$PROMPT" > "$workdir/grok.out" 2> "$workdir/grok.err" &
grok_pid=$!
GMCPT_TIMEOUT_MS=480000 node ${CLAUDE_PLUGIN_ROOT}/dist/ollama-run.js "$PROMPT" > "$workdir/ollama.out" 2> "$workdir/ollama.err" &
ollama_pid=$!
GMCPT_TIMEOUT_MS=480000 node ${CLAUDE_PLUGIN_ROOT}/dist/antigravity-run.js "$PROMPT" > "$workdir/antigravity.out" 2> "$workdir/antigravity.err" &
antigravity_pid=$!
gemini_rc=0; wait $gem_pid || gemini_rc=$?
codex_rc=0; wait $codex_pid || codex_rc=$?
grok_rc=0; wait $grok_pid || grok_rc=$?
ollama_rc=0; wait $ollama_pid || ollama_rc=$?
antigravity_rc=0; wait $antigravity_pid || antigravity_rc=$?
dump_provider() {
provider="$1"
rc="$2"
echo "===== ${provider} (rc=${rc}) ====="
cat "$workdir/${provider}.out" 2>/dev/null
if [ "$rc" -ne 0 ] || [ ! -s "$workdir/${provider}.out" ]; then
echo "===== ${provider} stderr ====="
sed -n '1,20p' "$workdir/${provider}.err" 2>/dev/null
fi
}
dump_provider gemini "$gemini_rc"
dump_provider codex "$codex_rc"
dump_provider grok "$grok_rc"
dump_provider ollama "$ollama_rc"
dump_provider antigravity "$antigravity_rc"
Set the Bash tool's timeout parameter to 600000ms (10 minutes, the max). Default 2-minute Bash timeouts will SIGKILL the providers mid-response — this is the same bug class that ADR-050 fixed for the brainstorm-coordinator.
If the user asked for a subset of providers (e.g., "compare gem
Установить ask-llm-compare в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ask-llm-compare?
This skill should be used when the user asks to "compare LLMs", "see how each provider answers", "side-by-side response", "what do Gemini, Codex, Grok, Ollama, and Antigravity think", or wants raw responses from multiple providers without synthesis. Unlike /brainstorm (which synthesizes findings) or /multi-review (which validates code reviews), /compare just shows each provider's answer side-by-side.
Как установить скилл ask-llm-compare?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ask-llm-compare запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic