second-opinion
Skill by trailofbits
Gets independent code reviews from Codex or Antigravity for uncommitted changes, branch diffs, and commits. It is for developers who want an external second opinion on their code.
Install second-opinion
Built from the published package, never by AI.
git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/plugins/second-opinion/skills/second-opinion ~/.claude/skills/second-opinionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/plugins/second-opinion/skills/second-opinion ~/.gemini/antigravity-cli/skills/second-opinionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Second Opinion runs an external CLI review of the changes a user selects. Users can choose Codex, Antigravity, or both, and can scope the review to uncommitted changes, a branch diff against a named base, or a specific commit. The skill captures one diff and sends the same patch to each selected provider so the results cover the same changes. It includes untracked files in uncommitted reviews and reports findings with severity, file, line, impact, and a suggested correction.
The skill produces findings only. It does not apply fixes or post reviews to a remote service. It is for developers who want a second review of their code from a different model or tool, especially when comparing results from Codex and Antigravity. When both reviews complete, it summarizes agreements and disagreements.
Written from the project's SKILL.md and checked against it.
What it can do
- Uncommitted change reviewReviews staged, unstaged, and untracked changes in the working tree.
- Branch diff reviewReviews the branch diff against a named base, or the remote default branch.
- Commit reviewReviews a specific commit selected by the user.
- Provider comparisonSends the same captured diff to Codex and Antigravity and compares their findings.
- Structured findingsReports severity, file and line, impact, and a suggested correction for each finding.
- Gemini CLI supportUses the headless gemini CLI when the user requests it and the account still supports it.
What you need
- Codex CLI for Codex reviews
- Antigravity CLI (agy) for Antigravity reviews
- Gemini CLI for Gemini reviews, if the account supports it
- A Git repository with changes to review
Try asking
- Use Codex to review my uncommitted changes for bugs
- Compare Codex and Antigravity on this branch against origin/main
- Use Gemini CLI to review commit abc1234 for security issues
Good to know
- Produces findings only. It does not apply fixes or post reviews.
- Input that exceeds a CLI or model limit is not truncated. The user must choose a narrower scope.
- A Gemini account returning UNSUPPORTED_CLIENT needs migration to Antigravity.
- Authentication and quota failures are not retried across providers.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/second-opinion/skills/second-opinion/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash Read Glob Grep AskUserQuestion
-
SKILL.md5 KB -
agents/openai.yaml226 B -
assets/trail-of-bits-mark.svg3 KB -
references/antigravity-invocation.md2 KB -
references/codex-invocation.md3 KB
Show all 8 files
-
references/codex-review-schema.json2 KB -
references/gemini-invocation.md2 KB -
references/review-input.md4 KB
Alternatives to second-opinion
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
second-opinion: common questions
Does Second Opinion change my code?
No. The source says the skill produces findings and does not apply fixes or post reviews to a remote service.
Which code review providers does it support?
The source describes Codex, Antigravity (agy), and the Gemini CLI for accounts that still support it.
What happens if one provider fails?
A missing executable or account setup counts as a failed attempt. When both providers were requested, the skill continues with the available one and identifies the skipped provider.
How do I install second-opinion?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is second-opinion free?
The code is published under the CC-BY-SA-4.0 licence. The service it connects to may have its own pricing.
Is second-opinion safe to use?
It scores 90 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to second-opinion?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
