CODE REVIEW / Trail of Bits
Second Opinion
Captures one patch (uncommitted work, a branch against a base, or a single commit) and has the Codex, Antigravity or Gemini CLI review it, then reports each reviewer's findings and where two reviews agree or differ.
“Gets independent code reviews from Codex or Antigravity for uncommitted changes, branch diffs, and commits. Use when the user requests an external review, a second opinion on code, a codex review, a gemini review, an antigravity review, or /second-opinion.”
01 / THE REASONING
Why this made the selection.
- When two providers are chosen, both receive the same captured patch, and the skill summarises their agreements and disagreements "without turning agreement into proof".
- Its provider references hold the reviewers back from writing: Codex runs with --sandbox read-only and --ephemeral, Gemini CLI keeps --approval-mode default, and the skill forbids enabling automatic write approval.
- A nonzero exit, missing output, invalid JSON, denied inspection or a plan request is reported as incomplete work, not as a clean review.
02 / THE REVIEW RECORD
What we actually inspected.
Source review has boundaries.
A clear record is more useful than a “safe” badge.
Material inspected
- plugins/second-opinion/skills/second-opinion/SKILL.md
- plugins/second-opinion/skills/second-opinion/references/codex-invocation.md
- plugins/second-opinion/skills/second-opinion/references/antigravity-invocation.md
- plugins/second-opinion/skills/second-opinion/references/gemini-invocation.md
- plugins/second-opinion/skills/second-opinion/references/review-input.md
- plugins/second-opinion/README.md
- plugins/second-opinion/.claude-plugin/plugin.json
- README.md (installation and licence sections)
- LICENSE
Our findings
- The description and plugin.json name Codex and Antigravity; the skill body and plugin README add Gemini CLI for accounts that still support it.
- allowed-tools is Bash Read Glob Grep AskUserQuestion; prompt, output and diagnostic files are created with mktemp outside the checkout.
- Untracked files are added to an uncommitted review with git diff --no-index, and a read error stops preparation instead of dropping the file.
- The shared prompt labels user requirements, project conventions and the diff, and tells the reviewer to treat the diff as data, not instructions.
- Plugin version 1.8.1 removed the automatic Codex MCP registration; the skill says not to launch codex mcp-server or substitute codex app-server.
- Codex severity runs from 0 informational to 3 high and is sorted descending.
Not established by this review
- Not executed: it was not installed or run.
- No reviewer CLI was installed, authenticated or called.
The review applies to the material and revision named here. A newer upstream release can change its behavior.
03 / PUT IT TO WORK
Add a skill to your workflow.
DOCUMENTED COMMAND
/plugin install second-opinion@trailofbits Copying does not execute this command. It may retrieve a newer version than the reviewed source.
- Add the Trail of Bits marketplace in Claude Code with `/plugin marketplace add trailofbits/skills`; this adds the whole marketplace, not this skill.
- Install the plugin with `/plugin install second-opinion@trailofbits`; the second-opinion plugin holds this one skill.
- Install and authenticate at least one reviewer CLI from the plugin README's Setup table, then invoke `/second-opinion:second-opinion` with a provider and scope.
Before you start
- OpenAI Codex: `npm i -g @openai/codex` and a supported ChatGPT account or API authentication
- Google Antigravity: the `agy` executable from the Antigravity CLI installation guide
- Gemini CLI, optional: `npm i -g @google/gemini-cli` and a supported Code Assist, API-key or Vertex AI account
- Git
04 / FOLLOW THE EVIDENCE
The source trail.
Our notes are separate from the original resource.
Check upstream before adopting a new version.
- Second Opinion SKILL.md ↗Checked
https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/second-opinion/skills/second-opinion/SKILL.md
Supports: upstreamDescription, summary, whySelected, bestFor, limitations, access, review.findings
- Codex invocation reference ↗Checked
https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/second-opinion/skills/second-opinion/references/codex-invocation.md
Supports: whySelected, limitations, install.prerequisites, access
https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/second-opinion/skills/second-opinion/references/antigravity-invocation.md
Supports: limitations, access
https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/second-opinion/skills/second-opinion/references/gemini-invocation.md
Supports: whySelected, limitations, access, access.cost
https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/second-opinion/skills/second-opinion/references/review-input.md
Supports: review.findings, access, bestFor
https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/second-opinion/README.md
Supports: install, compatibility, install.prerequisites, access.cost, review.findings
- trailofbits/skills README ↗Checked
https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/README.md
Supports: install.steps, license
- trailofbits/skills LICENSE ↗Checked
https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE
Supports: license