second-opinion

Runs external LLM code reviews on git diffs using Codex or Gemini CLI.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TECH-HY/SKILLS --skill second-opinion-tech-hy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: second-opinion
Source: https://github.com/TECH-HY/SKILLS/tree/main/skills/second-opinion
Command: npx skills add https://github.com/TECH-HY/SKILLS --skill second-opinion-tech-hy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Getting an independent code review from a different AI model helps catch issues your primary assistant may miss, but manually invoking external CLI tools with the right flags, prompts, and diff scopes is error-prone and repetitive. ## Core Features & Use Cases - Dual-Model Reviews: Run OpenAI Codex CLI and Google Gemini CLI in parallel on the same diff, then compare where the two reviews agree and differ. - Flexible Review Scopes: Review uncommitted changes, branch diffs against the default branch, or a specific commit, with automatic default-branch detection and diff-stat previews. - Focused Reviews: Apply security, performance, or error-handling focus prompts, optionally include CLAUDE.md or AGENTS.md project conventions, and run dependency scans only when manifest files changed. - Use Case: Before opening a pull request, ask for a second opinion on your branch diff with a security focus and receive structured findings from both Codex and Gemini with file and line references. ## Quick Start Ask the assistant to run a second opinion review on your uncommitted changes using both Codex and Gemini with a general review focus.

Frequently Asked Questions about second-opinion

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get a second opinion code review from another AI model?

Invoke the skill and choose a review tool, scope, and focus. It pipes your git diff to Codex CLI or Gemini CLI in headless mode and returns structured findings with file and line references.

Codex CLI vs Gemini CLI for automated code review?

Codex exec produces structured JSON findings with priorities and confidence scores using an output schema, while Gemini uses code-review and security extensions with freeform output. Running both in parallel lets you compare where the models agree.

Can I review a branch diff instead of uncommitted changes?

Yes. The skill supports three scopes: uncommitted changes including untracked files, branch diffs against the auto-detected default branch, and a specific commit via git diff sha~1..sha.

Why does the Gemini security dependency scan not run?

The dependency scan only runs when the diff touches dependency manifest files like package.json, requirements.txt, or go.mod. The scan analyzes the entire dependency tree, so it is skipped when dependencies were not changed.

What happens if Codex or Gemini CLI is not installed?

The skill runs the tool directly and reports the install command if it fails with command not found: npm i -g @openai/codex or npm i -g @google/gemini-cli. If both were selected, it runs only the available one.

When should I not use external LLM code review?

Avoid it when neither CLI is installed or authenticated, when reviewing non-code files like documentation, or when you only want the current assistant's own review. Very large diffs over 2000 lines may also need narrowing.