Command Palette

Search for a command to run...

Назад к скиллам
скилл № 36097

second-opinion

Get a second opinion from another AI model -- OpenAI models via the codex CLI, or Google's Gemini models via the agy (Antigravity) CLI -- on a design…

БесплатноБез исполняемых скриптов
maragudkот maragudk★ 30 звёзд на GitHub

Установить second-opinion в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Second opinion

Consult another model -- OpenAI's through the codex CLI, or Google's Gemini through the agy (Antigravity) CLI -- and relay what it says. The value of a second opinion is independence: let the other model reach its own conclusion, verify what it claims, then report it faithfully -- especially where it disagrees with you.

Pick a CLI

  • Named provider: "ask OpenAI/codex/GPT" means codex; "ask Gemini/Google/agy/Antigravity" means agy.
  • Unspecified: default to codex. It has a dedicated review mode and an OS-level read-only sandbox.
  • "Get a few opinions" or a high-stakes call: ask both, in parallel. Two independent families disagreeing is more informative than one model at two efforts.

The sections on writing the prompt, verifying, and relaying apply to both CLIs.

Shared setup

Use a working directory in the session scratchpad, and write the prompt to a file. A file avoids shell-quoting pain and keeps a record of what was asked:

DIR=<your scratchpad>/second-opinion
mkdir -p "$DIR"
# write $DIR/prompt.md

$DIR is the session scratchpad, never the repository or worktree under review. Prompt, answer, and log are tooling artifacts, not project files, and a 50-300 KB log dropped into the worktree pollutes the very diff you're asking the other model to read. Sub-agent definitions that forbid writing outside the workspace -- the builder's scope boundary, say -- aren't aimed at your own scratch files.

Expect minutes, not seconds for both CLIs -- several minutes at default effort, longer at high effort on big questions. Run the call as a background Bash task, then wait on the output file itself (e.g. a bounded until [ -s "$DIR/answer.md" ]; do sleep 15; done loop, backgrounded or via Monitor; for agy, wait on $DIR/agy.json). Don't poll with pgrep -- other agents may be running the same CLI.

codex (OpenAI)

Preflight

Check auth once per session: codex login status should print Logged in using ChatGPT (or the API-key equivalent). Anything else: stop and ask the user to authenticate -- suggest they type ! codex login (ChatGPT account, usage billed to their plan) or use codex login --api-key <key>.

Core command

codex exec -C <repo root> -s read-only -o "$DIR/answer.md" - < "$DIR/prompt.md" > "$DIR/codex.log" 2>&1
  • codex exec is non-interactive mode; - reads the prompt from stdin.
  • -C <dir> pins codex's working root. Pass it always: your own working directory resets between Bash calls, so "run it from the repo root" is not something to rely on. Add --skip-git-repo-check if the target isn't a git repository.
  • -s read-only lets codex read the workspace and run read-only commands to explore on its own, but never write. It also blocks network access -- so paste into the prompt anything codex cannot discover locally: gh output, release data, error logs, conversation context, external docs.
  • -o writes only the model's final answer to answer.md. Read that file for the opinion.
  • codex.log gets the event stream: a header (model, effort, session id), every command codex ran, and the full text of every file it read -- often 50-300 KB. Never cat it into context; head -15 for the header, tail -3 for the token count, and leave the rest on disk.
  • Attach screenshots or diagrams with -i <file> if the question is visual.

Model and effort

Omit model and effort flags by default so Codex uses the user's configuration or its built-in defaults. The header in codex.log confirms which model and effort ran.

To dial down for a quick, cheap opinion:

codex exec -m gpt-6.2-sol -c model_reasoning_effort="medium" ...
  • Use gpt-6.2-astra when a difficult question needs deeper reasoning. For a quicker run, choose gpt-6.2-sol, gpt-6.1-terra, or gpt-6-luna.
  • Effort levels: low, medium, high, xhigh, plus max (deeper single-track reasoning) and ultra (parallel internal subagents) for genuinely gnarly problems -- both slow and allowance-hungry, and not available on Luna.
  • codex does not validate these values client-side; a typo silently degrades the run rather than erroring. Check the header line.

Follow-ups

The session id is printed in the codex.log header. Continue the conversation with:

codex exec resume <session-id> "follow-up question"

This keeps the model's context, so use it when the user reacts to the opinion ("ask it about X too", "tell it we can't do that because Y"). Add --ephemeral to the original command only for one-shots you will never resume; it prevents the session from being saved.

Code review

For "second opinion on this diff/branch/commit", prefer codex exec review over a hand-rolled prompt. It is a dedicated review mode with a strict reviewer prompt -- only definite bugs introduced by the change, pre-existing problems excluded, "prefer no findings" over speculation -- and it is read-only by construction.

codex exec review --base main -o
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл second-opinion?

Get a second opinion from another AI model -- OpenAI models via the codex CLI, or Google's Gemini models via the agy (Antigravity) CLI -- on a design decision, a stubborn bug, a code review, or any question where an independent take is valuable. Use only when the user explicitly asks for one -- "get a second opinion", "ask OpenAI", "ask codex", "what does GPT think", "ask Gemini", "ask Google", "ask agy", "ask Antigravity", "/second-opinion", or similar. Do not use proactively.

Как установить скилл second-opinion?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл second-opinion запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить second-opinion с