AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

second-opinion

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.

Original source
trailofbits
License
CC-BY-SA-4.0
Pinned revision
2be6433b39e009cd2b6fd3be1895f6b1faa5af9a

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

This skill also requires local files or dependencies. Remote reading alone may not be enough.

Ask your assistant

Use Agentic Memory skills to read trailofbits--second-opinion at revision 2be6433b39e009cd2b6fd3be1895f6b1faa5af9a, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 5

references/gemini-invocation.md

Gemini CLI Invocation

Retain this path for an explicit Gemini CLI request or an account using Gemini Code Assist Standard/Enterprise, a paid Gemini API key, or Vertex AI. Use the account's configured authentication; do not print credentials.

If the service returns UNSUPPORTED_CLIENT and directs the user to Antigravity, report that this account no longer supports Gemini CLI. Reinstallation does not resolve that response. Ask before changing the requested CLI.

Command

The default remains gemini-3.1-pro-preview. Preserve an explicit model. With the shared prompt already written to prompt_file:

gemini \
  --model gemini-3.1-pro-preview \
  --approval-mode default \
  --output-format text \
  --prompt "Review the supplied changes and return the findings." \
  < "$prompt_file" > "$output_file" 2> "$stderr_log"

The prompt flag selects headless mode and stdin supplies the captured patch, focus, and project context. These flags were checked with Gemini CLI 0.59.0 --help on 2026-09-14. See the headless mode reference.

A plain prompt supports general, security, performance, and error-handling reviews without installing extensions. The shared diff preparation includes untracked files and supports branch and commit scopes.

Permissions and results

Keep --approval-mode default. Do not use --yolo or automatically trust a directory to get past an unattended approval failure. If the workspace requires trust, explain the error so the user can establish trust through their normal setup.

Existing user-installed extensions may still load according to the CLI's configuration. This invocation does not install extensions, run dependency scans, or change that configuration.

Read the prose response and diagnostics. Report a failed invocation, empty output, or denied inspection as an incomplete review. Do not reinterpret those outcomes as an absence of findings.

| Failure | Response | |---------|----------| | Executable missing | Report the installation command: npm i -g @google/gemini-cli | | UNSUPPORTED_CLIENT | Explain the account migration and offer Antigravity | | Workspace trust or tool approval required | Report the blocked operation without enabling automatic approvals | | Auth, quota, model, or timeout error | Report the error and retain any partial findings |