second-opinion

Solid

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 5,673 stars 496 forks Updated today 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
4 months ago
Last Updated
today
Language
Python
License
CC-BY-SA-4.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category