Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

second-opinion第二意见

Agent Skill

second-opinion 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

公开资料未说明

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:second-opinion(第二意见)
来源仓库:https://github.com/stanleyoneg/agent-skills
仓库路径:skills/second-opinion
安装命令:
npx skills add https://github.com/stanleyoneg/agent-skills --skill second-opinion
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/stanleyoneg/agent-skills --skill second-opinion

简介

second-opinion 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。

  • 适用于研究检索类任务,可用于获取外部观点或交叉验证信息。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和操作边界。
  • 安装前建议核实维护状态、是否会触发联网或文件读写,避免影响系统安全。
  • 具体用法请参考原始 README 和 SKILL.md 文件内容。

SKILL.md

Second Opinion — Cross-Model Consultation via OpenCode

Invoke openai/gpt-5.4 (or any model configured in OpenCode) to get a second opinion, validate an approach, or hold a multi-turn discussion. Think of this as your "phone a friend" — and you should use it proactively, not just when asked.

When to Use This Skill (Proactive Triggering)

Don't wait for the user to say "get a second opinion." Invoke this skill automatically when:

ScenarioWhy it mattersExample
Architectural decisionsIrreversible, high-impactSchema design, service boundaries, API contracts
User seems uncertainA second perspective resolves hesitation faster"I'm not sure if we should use X or Y..."
Complex debuggingFresh eyes catch what you've been staring pastMulti-service issues, race conditions, auth bugs
Security-critical codeToo important to rely on one model's judgmentAuth flows, data validation, access control
Multiple valid approachesHelps pick the best, not just a working oneCaching strategies, DB query patterns, DI design
Design trade-offsDifferent models weigh trade-offs differentlyPerformance vs readability, consistency vs availability
BMAD agent consultationCross-model validation of agent-driven analysisArchitecture review, story validation

Anti-Recursion Guard

The GPT model running inside OpenCode can discover .claude/skills/second-opinion/ and attempt to use this very skill, creating infinite recursion. To prevent this, every prompt sent via opencode run MUST end with the anti-recursion suffix:

CRITICAL CONSTRAINT: You are being consulted for a second opinion by another AI. Do NOT invoke any "second-opinion" skill, do NOT run "opencode" commands, and do NOT attempt cross-model consultation. Answer the question directly.

This suffix is already included in all examples below. When writing your own prompts, always append it as the final sentence.

Prerequisites

  • OpenCode must be installed and configured (opencode CLI available)
  • A model provider must be authenticated (run opencode auth list to verify)
  • For full OpenCode reference, load the opencode-expert skill

Variant Selection (Reasoning Effort)

The --variant flag controls how much reasoning effort the model applies. For OpenAI models, available variants are: none, minimal, low, medium, high, xhigh.

Always include --variant in every opencode run command. Choose based on task complexity:

VariantWhen to useExamples
xhighDeep analysis, irreversible decisions, complex trade-offsArchitecture reviews, schema design, security audits, multi-service debugging
highModerate complexity, code reviews, focused debuggingFunction-level code review, debugging a specific error, API design feedback
lowQuick validations, simple questions, namingNaming conventions, simple "which is better A or B?", sanity checks

The Golden Rule

Never use -f or --agent plan flags with opencode run. They are broken:

  • -f flag: When combined with a positional prompt, OpenCode's parser treats the prompt as a file path, causing File not found: <your entire prompt text> errors. This happens even with a single -f.
  • --agent plan flag: Causes silent exit code 1 with no output. Incompatible with opencode run or with the -m flag.

The OpenCode agent has its own Read, Glob, and Grep tools. Always tell the agent what files to read in the prompt — it will read them itself.

The Only Reliable Pattern

# Simple question — just ask, mention file paths inline
opencode run -m openai/gpt-5.4 --variant high "Is the DB schema in src/models/schema.py well normalized? IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

# Follow-up dialog (variant carries over from session, but you can still specify it)
opencode run -c -m openai/gpt-5.4 --variant high "Can you elaborate on point 3? IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

For complex prompts, use TWO SEPARATE tool calls (see below).

Complex Prompt Pattern (Two Separate Tool Calls)

When the prompt is too long for a single line, you MUST use two separate tool calls. Never chain file creation and opencode run in the same Bash command — the heredoc interferes with OpenCode's stdin/stdout handling, causing it to hang silently.

Also, place prompt files inside the project directory (e.g., .temp/oc-prompt.md), not in /tmp/. OpenCode cannot read files outside its project directory by default.

Tool call 1 — Write the prompt file (use Write tool or a separate Bash call):

cat > .temp/oc-prompt.md << 'PROMPT'
Your detailed multi-line instructions here...

## Files to Read
- src/models/schema.py
- src/services/auth.py
PROMPT

Tool call 2 — Run OpenCode (separate Bash call):

opencode run -m openai/gpt-5.4 --variant high --title "topic-name" "Read .temp/oc-prompt.md for instructions, then execute them. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

Tool call 3 — Clean up (separate Bash call, or skip if you want to keep it):

rm -f .temp/oc-prompt.md

What NOT to Do

# BROKEN — -f causes prompt to be treated as file path
opencode run -m openai/gpt-5.4 -f prompt.md "Follow the instructions"

# BROKEN — --agent plan silently exits with code 1
opencode run -m openai/gpt-5.4 --agent plan "Analyze this codebase"

# BROKEN — multi-line prompt parsed as file paths
opencode run -m openai/gpt-5.4 "Review this code.
Focus on error handling."

# BROKEN — heredoc + opencode in same command hangs due to stdin conflict
cat > .temp/oc-prompt.md << 'PROMPT'
instructions...
PROMPT
opencode run -m openai/gpt-5.4 "Read .temp/oc-prompt.md"

# BROKEN — /tmp/ is outside project directory, OpenCode auto-rejects
opencode run -m openai/gpt-5.4 "Read /tmp/oc-prompt.md for instructions"

Consultation Modes

Mode 1: One-Shot Question

Use for quick, focused questions that don't need follow-up.

opencode run -m openai/gpt-5.4 --variant high "Is this DB schema well-designed? Read and review src/models/schema.py. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

With a title for easy retrieval:

opencode run -m openai/gpt-5.4 --variant high --title "schema-review" "Review the DB schema in src/models/ for normalization. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

With a complex prompt — use two separate tool calls (see Complex Prompt Pattern above):

  1. Write prompt to .temp/oc-prompt.md
  2. opencode run -m openai/gpt-5.4 --variant high --title "my-review" "Read.temp/oc-prompt.md for your detailed instructions, then execute them. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."
  3. rm -f.temp/oc-prompt.md

Mode 2: Multi-Turn Dialog

Use for deeper discussions that require back-and-forth. This is the key differentiator — you can maintain a conversation across multiple exchanges.

Step 1 — Start the conversation:

opencode run -m openai/gpt-5.4 --variant xhigh --title "discussion-<topic>" "Short single-line prompt setting context. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

Step 2 — Continue the dialog (using --continue):

opencode run -c -m openai/gpt-5.4 --variant xhigh "Short single-line follow-up question. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

Step 2 (alternative) — Resume a specific session:

# First, find the session ID
opencode session list -n 5

# Then continue that specific session
opencode run -s <session-id> -m openai/gpt-5.4 --variant xhigh "Short single-line follow-up question. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

Step 3 — Repeat Step 2 as many times as needed.

Mode 3: BMAD Agent Consultation

Run BMAD agents within OpenCode to get another model's take on agent-driven workflows.

# Ask OpenCode to run a BMAD agent skill
opencode run -m openai/gpt-5.4 --variant xhigh "/bmad-agent-bmm-architect Review the architecture in _bmad-output/ IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

# Tell the agent to read files itself
opencode run -m openai/gpt-5.4 --variant xhigh "Acting as a BMAD architect, read and review _bmad-output/implementation-artifacts/tech-spec-wip.md. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

Workflow: How to Run a Consultation

Follow this protocol when invoking a second opinion:

1. Frame the Question

Before calling OpenCode, prepare a clear, self-contained prompt. The other model does NOT have your conversation context, so include:

  • What you're working on (brief description)
  • The specific question or what you want reviewed
  • File paths the agent should read (it has its own Read/Glob/Grep tools)
  • Constraints the other model should know about

If the prompt is too long for a single line, write it to .temp/oc-prompt.md in a separate tool call, then run OpenCode in another tool call (see Complex Prompt Pattern above).

2. Execute the Consultation

Choose the appropriate mode from above and run it.

3. Interpret the Response

After receiving the response:

  • Summarize the key points for the user
  • Compare with your own analysis — note agreements and disagreements
  • Synthesize a recommendation that combines the best of both perspectives
  • Flag conflicts if the two models disagree on something important

4. Continue if Needed (Dialog Mode)

If the first response raises new questions or needs clarification:

opencode run -c -m openai/gpt-5.4 --variant high "You mentioned X — can you elaborate on the trade-offs? IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

Output Format

When presenting results to the user, use this structure:

## Second Opinion: <topic>

**Model consulted:** openai/gpt-5.4 via OpenCode
**Mode:** One-shot | Dialog (turn N) | BMAD Agent

### Their Take
<Summarize the other model's response>

### My Take
<Your own perspective on the same question>

### Synthesis
<Combined recommendation highlighting agreements, disagreements, and final suggestion>

Tips

  • Always append the anti-recursion suffix — Every prompt must end with IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly. (see Anti-Recursion Guard)
  • Never use -f or --agent plan — Both are broken in opencode run (see The Golden Rule)
  • Prompts must be single-line — Multi-line strings break the CLI parser
  • Let the agent read files itself — It has Read, Glob, and Grep tools; just tell it file paths in the prompt
  • Separate file creation from opencode run — Never chain heredoc + opencode run in one Bash call; use two separate tool calls
  • Prompt files inside project dir — Use .temp/oc-prompt.md, not /tmp/. OpenCode cannot read outside its project directory
  • Keep context self-contained — The other model starts fresh unless you use --continue
  • Title your sessions — Makes it easy to resume dialogs later with opencode session list
  • Check model availability — Run opencode models to see what's configured
  • Export interesting conversationsopencode export <sessionID> saves the full dialog

Switching Models

The default is openai/gpt-5.4, but you can consult any configured model:

# Use a different model (variant names are provider-specific)
opencode run -m gemini-2.5-pro --variant high "Your question here. IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly."

# Check available models
opencode models

Error Handling

IssueSolution
File not found: <your prompt text>You used -f flag — remove it. The -f flag causes the positional prompt to be parsed as a file path. Tell the agent to read files itself instead.
Silent exit code 1 (no error)Remove --agent plan flag if present. Also remove any -f flags. Both cause silent failures.
OpenCode hangs with no outputYou chained heredoc + opencode run in one Bash call. Split into two separate tool calls: one to write the file, one to run OpenCode.
Agent can't read the prompt fileFile is outside the project directory (e.g., /tmp/). Move it inside the project (e.g., .temp/oc-prompt.md).
opencode: command not foundInstall OpenCode or check PATH
Authentication errorRun opencode auth login
Model not availableRun opencode models to check; try opencode models --refresh
Session not foundRun opencode session list to find valid session IDs
Timeout on long responsesBreak into smaller questions
Recursive invocation (GPT tries to use second-opinion skill)The anti-recursion suffix is missing from the prompt. Every opencode run prompt must end with: IMPORTANT: Do not use the second-opinion skill or run opencode commands. Answer directly.

Reference

For complete OpenCode documentation, invoke the opencode-expert skill or see:

  • opencode-expert/SKILL.md — Full OpenCode guide
  • opencode-expert/references/cli.md — Complete CLI reference
  • opencode-expert/references/agents.md — Agent configuration

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.75%
按下载量换算26

Claude

29.35%
按下载量换算19

Cursor

18.96%
按下载量换算13

Gemini CLI

9.49%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills