second-opinion

Featured

Runs external LLM code reviews (OpenAI Codex or Google Gemini CLI) on uncommitted changes, branch diffs, or specific commits. Use when the user asks for a second opinion, external review, codex review, gemini review, or mentions /second-opinion.

AI & Automation 8,273 stars 715 forks Updated 6 days ago CC-BY-SA-4.0

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Second Opinion Shell out to external LLM CLIs for an independent code review powered by a separate model. Supports OpenAI Codex CLI and Google Gemini CLI. ## When to Use - Getting a second opinion on code changes from a different model - Reviewing branch diffs before opening a PR - Checking uncommitted work for issues before committing - Running a focused review (security, performance, error handling) - Comparing review output from multiple models ## When NOT to Use - Neither Codex CLI nor Gemini CLI is installed - No API key or subscription configured for either tool - Reviewing non-code files (documentation, config) - You want Claude's own review (just ask Claude directly) ## Safety Note Gemini CLI is invoked with `--yolo`, which auto-approves all tool calls without confirmation. This is required for headless (non-interactive) operation but means Gemini will execute any tool actions its extensions request without prompting. ## Quick Reference ``` # Codex (headless exec with structured JSON output) codex exec --sandbox read-only --ephemeral \ --output-schema codex-review-schema.json \ -o "$output_file" - < "$prompt_file" # Gemini (code review extension) gemini -p "/code-review" --yolo -e code-review # Gemini (headless with diff — see references/ for full pattern) git diff HEAD > /tmp/review-diff.txt { printf '%s\n\n' 'Review this diff for issues.'; cat /tmp/review-diff.txt; } \ | gemini -p - --yolo -m gemini-3.1-pro-preview ``` ## Invocation ### 1. Gather...

Details

Author
trailofbits
Repository
trailofbits/skills
Created
10 months ago
Last Updated
6 days ago
Language
Python
License
CC-BY-SA-4.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

second-opinion

Get a second opinion from OpenAI's Codex CLI. Default model is gpt-5.5. Three modes: review (pass/fail code review on the current diff), challenge (adversarial pass — try to break it), consult (multi-turn Q&A with session persistence). Uses ChatGPT subscription auth, not an API key. Use when asked for "second opinion", "codex review", "adversarial review", "challenge this code", "cross-model review", or "/second-opinion".

0 Updated 1 months ago
eprouveze
AI & Automation Listed

second-opinion

Cross-check the current work against an independent model (Codex/GPT) as an ADVERSARIAL reviewer — it tries to break the work, not co-sign it. Use for 'second opinion', 'cross-check this', 'what would codex say', 'have another model review this', or before shipping something high-stakes/irreversible. NOT for routine diffs.

0 Updated 2 months ago
dylanpulver
AI & Automation Listed

second-opinion

Get an independent second opinion from the Codex CLI (OpenAI GPT-5.x) on a plan, prompt, design, code change, or any piece of work — then run a structured debate/relay between Claude and Codex until they converge, and synthesize a joint recommendation. Codex shares Claude's skills (via ~/.agents/skills) so it can ground its critique in the same playbooks (e.g. seedance-2-prompt-engineer). Use when the user says "second opinion", "ask codex", "what does codex think", "run it by codex", "debate this with codex", "sanity check with gpt", or "/second-opinion".

0 Updated 2 months ago
guyaga