second-opinion

second-opinion is a skill for Claude Code from juanmhidalgo/claude-plugins. It costs 40 tokens per session (1,402 once invoked), scanned A, original, MIT.

A read-only workflow for asking another AI assistant to review code or architecture and provide a second opinion.

In plain words
What is it for?
Use it to review staged changes, a specific file, or a branch against its base using Codex, Gemini, Copilot, or Claude.
Why use it?
It gives you an independent assessment without changing files or implementing the suggested changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the second-opinion plugin — 1 skill shipped together

Good fit Use it to review staged changes, a specific file, or a branch against its base using Codex, Gemini, Copilot, or Claude.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add juanmhidalgo/claude-plugins
Claude Code
/plugin install second-opinion

Made for: Claude Code.

Or install second-opinion, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for second-opinion

README.md
[![agentmods](https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/second-opinion.svg)](https://agentmods.dev/skills/juanmhidalgo/claude-plugins/second-opinion)
Your own site
<a href="https://agentmods.dev/skills/juanmhidalgo/claude-plugins/second-opinion"><img src="https://agentmods.dev/badge/skills/juanmhidalgo/claude-plugins/second-opinion.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01402
Opus 5 $0.00020 $0.00701
Sonnet 5 $0.00008 $0.00280
Haiku 4.5 $0.00004 $0.00140

Measured 5d ago against content hash bb3a10cf9b3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

second-opinion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

second-opinion/skills/second-opinion/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Second Opinion via External AI

You are gathering context and asking an external AI for a second opinion.

Step 0: Select backend

Parse $ARGUMENTS for --backend <name> or infer from context:

Flag / keyword Script
--backend codex or mentions "codex" or "openai" ${CLAUDE_PLUGIN_ROOT}/scripts/ask-codex.sh
--backend gemini or mentions "gemini" or "google" ${CLAUDE_PLUGIN_ROOT}/scripts/ask-gemini.sh
--backend copilot or mentions "copilot" or "github" ${CLAUDE_PLUGIN_ROOT}/scripts/ask-copilot.sh
--backend claude or mentions "claude" or "anthropic" ${CLAUDE_PLUGIN_ROOT}/scripts/ask-claude.sh
No preference specified Default to ${CLAUDE_PLUGIN_ROOT}/scripts/ask-codex.sh

Remove the --backend flag from arguments before continuing to Step 1.

Step 1: Determine the review type

Parse remaining arguments to determine what the user wants reviewed:

Pattern Action
review staged or staged Review staged git changes
review <filepath> Review a specific file
review branch or branch Review all changes on current branch vs base
Any other text Treat as a free-form question — still gather relevant code context if possible

Step 2: Gather context

Based on the review type, gather the minimum necessary context:

  • Staged changes: Run git diff --cached to get the staged diff
  • Specific file: Read the file with the Read tool
  • Branch review: Detect the base branch dynamically:
    1. Try git rev-parse --verify origin/main — if it exists, use main
    2. Else try origin/master
    3. Else use the first remote default branch Then run git diff <base>...HEAD
  • Free-form question: If the user references specific files or functions, read those. Otherwise proceed with just the question.

Context budget: Keep total context under 8000 characters. If a diff or file is larger:

  • For diffs: use git diff --cached --stat to summarize, then include only the most relevant hunks
  • For files: include only the relevant sections

Read the full file on GitHub · 154 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 154 lines · 40 tokens per session scan A bb3a10cf9b3a

Subscribe to this mod's changes

second-opinion is a skill published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 13d ago), licensed MIT. It adds 40 tokens to every session and 1,402 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

review

Review local code changes for bugs, regressions, missing tests, and pragmatic improvements. Use when the user asks to review the current changes from git status, or to review a specific backlog task by id such as task-65 or TASK-65. Also trigger when the user says things like "review", "review current changes", "check…

devoxx/DevoxxGenieIDEAPlugin · 90 tokens

claude-friends

Ask AIs from other families to review something before you commit to it. User-triggered, never automatic. Fires when the user signals uncertainty or asks for another perspective: 'ask a friend', 'second opinion', 'sanity check', 'cross-check', 'am I missing something', 'stress-test this', 'critique this', 'devil's…

awrshift/claude-friends · 239 tokens

facts-discover

Scan the codebase and classify every fact by lifecycle stage — tag @draft, @spec, or @implemented based on what the code actually shows. Add missing facts, fix inaccurate ones, remove obsolete ones. Use when asked to discover facts, bootstrap or update a fact sheet, scan the codebase for truths, sync facts to match…

av/facts · 82 tokens

issue-creation

Trigger: issue creation, bug reports, feature requests, or issue approval. Create and triage GitHub issues from repository evidence.

Gentleman-Programming/gentle-ai · 30 tokens

sdd-tasks

Break an SDD change into implementation tasks. Trigger: orchestrator launches task planning for a change.

Gentleman-Programming/gentle-ai · 25 tokens

work-unit-commits

Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.

Gentleman-Programming/gentle-ai · 33 tokens