基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jleechanorg/claude-commands --skill ai-universe-second-opinion-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Token-efficient second opinion slash command /advice. Extracts decision point + artifact (≤150 lines), then fans out in parallel: (1) Opus subagent reviewer with fallback chain codex→agy→cursor, (2) /research on the decision topic, (3) /secondo multi-model opinion. Use instead of advisor() which ships the full conversation uncached.
Use this skill when working in repositories managed by Agent Orchestrator or when the user asks how to use `ao` properly. Covers the default AO workflow: bootstrap with `ao start`, dispatch work with `ao spawn`, inspect progress with `ao status` or `ao session ls`, steer sessions with `ao send`, and recover or clean up sessions safely. Includes strict parameter fidelity, pre-spawn cap cleanup, quota-wall fallback, and post-spawn verification.
Generate a full agento PR status report — draft readiness, canonical /green, zero-touch rate, inline display, and Slack summary.
| name | ai-universe-second-opinion-workflow |
| description | Complete workflow for using AI Universe MCP /secondo command |
| type | usage |
| scope | project |
Quick start: Use /secondo or the HTTPie helper script to gather multi-model analysis (Cerebras, Gemini, Perplexity, GPT-4o + synthesis).
/secondo runs or HTTPie 401/5xx errors.test -f ~/.claude/scripts/auth-cli.mjs && echo "✅ Installed" || echo "❌ Not found - run /localexportcommands"
node ~/.claude/scripts/auth-cli.mjs status
# Run this outside Claude Code in a regular terminal
node ~/.claude/scripts/auth-cli.mjs login
http (HTTPie), jq, python3, and node (>=20.0.0) are installed in the environment.ℹ️ Seamless Auto-Refresh: The
/secondocommand uses the exact same auth-cli.mjs from AI Universe repo. If your token is valid, it does nothing. If expired, it auto-refreshes using your refresh token (silent, no browser popup). Only prompts for login if refresh token expires (30+ days).
ℹ️ Token Location: All tokens stored in
~/.ai-universe/auth-token.json(same as AI Universe repo)
- ID token: 1-hour expiration
- Refresh token: enables 30+ day sessions
ℹ️ For a dedicated authentication walkthrough see ai-universe-auth.md. Dependency notes live in secondo-dependencies.md.
| Scenario | Command |
|---|---|
| Quick question (when SlashCommand is working) | /secondo "Should I use Redis or in-memory caching?" |
| Build MCP request with PR context | python3 skills/second_opinion_workflow/scripts/build_second_opinion_request.py /tmp/mcp_request.json "QUESTION" 3 origin/main |
| Call MCP via HTTPie | http POST https://ai-universe-backend-dev-114133832173.us-central1.run.app/mcp "Authorization:Bearer $TOKEN" < /tmp/mcp_request.json --timeout=180 --print=b |
| Parse embedded JSON response | jq -r '.result.content[0].text' /tmp/mcp_response.json > /tmp/mcp_parsed.json |
| Summarize models/costs | python3 skills/second_opinion_workflow/scripts/parse_second_opinion.py /tmp/mcp_parsed.json |
| End-to-end helper | skills/second_opinion_workflow/scripts/request_second_opinion.sh "QUESTION" [MAX_OPINIONS] |
python3 skills/second_opinion_workflow/scripts/build_second_opinion_request.py \
/tmp/mcp_request.json \
"YOUR QUESTION HERE" \
3 \
origin/main
Adjust SECOND_OPINION_MAX_FILES, SECOND_OPINION_MAX_DIFF_CHARS, or SECOND_OPINION_MAX_PATCH_CHARS if you need more/less context./tmp/mcp_request.json to refine the natural-language question while keeping the attached git context intact.# Get token (auto-refreshes if expired, does nothing if valid)
TOKEN=$(node ~/.claude/scripts/auth-cli.mjs token)
http POST https://ai-universe-backend-dev-114133832173.us-central1.run.app/mcp \
"Accept:application/json, text/event-stream" \
"Authorization:Bearer $TOKEN" \
< /tmp/mcp_request.json \
--timeout=180 \
--print=b > /tmp/mcp_response.json
jq -r '.result.content[0].text' /tmp/mcp_response.json > /tmp/mcp_parsed.json
python3 <<'PYEOF'
import json
with open('/tmp/mcp_parsed.json', 'r') as f:
data = json.load(f)
print(f"✅ Received responses from {data['summary']['totalModels']} models")
print(f"💰 Total cost: ${data['summary']['totalCost']:.4f}")
print(f"📊 Total tokens: {data['summary']['totalTokens']:,}")
print("\nPrimary response:\n")
print(data['primary']['response'])
PYEOF
Or run:
📌 Need more HTTPie patterns? Use ai-universe-httpie.md as a companion reference.
Use /secondo "QUESTION" for quick prompts only when the command file is healthy. If it fails or hangs, switch to the HTTPie workflow.
Run the bundled script from repo root for a streamlined flow:
skills/second_opinion_workflow/scripts/request_second_opinion.sh "How should I harden our auth endpoints?" 4
The script:
MAX_OPINIONS is a positive integer.build_second_opinion_request.py to embed branch/base metadata, diffstat, recent commits, and per-file patches into the payload./tmp; set KEEP_TEMP_FILES=1 when running the script to keep them after completion.For advanced prompting templates and interactive options, see the existing ~/.claude/scripts/secondo-cli.sh utility.
"What is 2+2?" request first to warm the backend.node scripts/auth-cli.mjs login outside Claude Code..result.content[0].text before loading JSON. Use the helper Python snippet or script for safe parsing./secondo or HTTPie path was used.skills/second_opinion_workflow/scripts/ for helper tooling.python3 skills/second_opinion_workflow/scripts/parse_second_opinion.py /tmp/mcp_parsed.json