second-opinion — Claude Code skill: what it does, how to install
Runs external CLI code reviews via Codex or Antigravity. It inspects dirty working trees, branch diffs, and specific commits without editing files.
npx skills add trailofbits/skills --skill second-opinion -a claude-codeWhat second-opinion does
The skill delegates code review to external command-line tools: Codex, Antigravity (agy), or headless Gemini CLI. It captures a Git patch including untracked files and sends the identical diff to the chosen engines. Output arrives as a list of findings with severity levels, file paths, line numbers, and suggested adjustments. The skill only reports issues and never applies edits or submits remote reviews.
Working account credentials and local CLI binaries are strictly required before running a check. You do not need to start a Codex MCP server because execution relies directly on codex exec. When diffs exceed token thresholds, the review halts with an explicit error rather than silently cutting the patch.
What it helps with
- compare review findings between Codex and Antigravity
- spot defects across uncommitted code and untracked files
- review security issues on a single Git commit
Example prompts for the agent
- /second-opinion:second-opinion run Codex review on dirty files to spot bugs
- /second-opinion:second-opinion compare Codex against Antigravity on this branch versus origin/main
- /second-opinion:second-opinion check commit abc1234 for security flaws using Gemini CLI
How to install second-opinion
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill second-opinion -a claude-code2Manually: put the files in place
~/.claude/skills/second-opinion/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/second-opinion/
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill second-opinion -a codex2Manually: put the files in place
.agents/skills/second-opinion/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill second-opinion -a cursor2Manually: put the files in place
.cursor/skills/second-opinion/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install trailofbits/skills second-opinion2Manually: put the files in place
.github/skills/second-opinion/SKILL.md1Skills CLI (Vercel)
npx skills add trailofbits/skills --skill second-opinion -a gemini-cli2Platform CLI
gemini skills install https://github.com/trailofbits/skills --path plugins/second-opinion/skills/second-opinionManually: put the files in place
.devin/skills/second-opinion/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add trailofbits/skills --skill second-opinion -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set35
The whole set →Similar
Questions about second-opinion
How to install second-opinion in Claude Code?
Run npx skills add trailofbits/skills --skill second-opinion -a claude-code in your terminal. This saves the skill file to ~/.claude/skills/second-opinion/SKILL.md.
What does second-opinion do?
It gathers Git diffs from your working tree or commit history and invokes external review CLIs like Codex or Antigravity. The tool surfaces severity-ranked issues without applying code fixes or posting online.
Does Codex integration require an MCP server?
No, running codex mcp-server or codex app-server is not needed. The skill invokes codex exec directly using a structured JSON schema.