Token导航 LogoToken导航

Agent Skill · 研究检索

second-opinion(第二意见)

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

second-opinion 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 72,323。

总安装 188周安装 8GitHub Stars 公开资料未说明下载 66核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

second-opinion 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。适用于研究检索类任务,可用于获取外部观点或交叉验证信息。

通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和操作边界。安装前建议核实维护状态、是否会触发联网或文件读写,避免影响系统安全。具体用法请参考原始 README 和 SKILL.md 文件内容。

来源仓库内路径:skills/second-opinion

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/stanleyoneg/agent-skills --skill second-opinio…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

second-opinion 怎么安装?

在终端执行 npx skills add https://github.com/stanleyoneg/agent-skills --skill second-opinion。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

second-opinion 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

second-opinion 需要什么权限?

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

second-opinion 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

second-opinion 用的人多吗?

公开数据是累计安装 188 次,近一周安装 8 次,下载 66 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

second-opinion 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
second-opinion

第二意见 · 本页

188—需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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 conversations — opencode 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

平台分布

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 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills