AgentSkillsCN

gemini-consultant

从Gemini 3 Pro(gemini-3-pro-preview)获取第二意见。接受文本、代码和图片作为输入。返回文本分析、建议和反馈。用于代码审查、分析截图、UX反馈、调试、架构审查或网络搜索。

SKILL.md
--- frontmatter
name: gemini-consultant
description: Get a second opinion from Gemini 3 Pro (gemini-3-pro-preview). Accepts text, code, and images as INPUT. Returns TEXT analysis, advice, and feedback. Use for code review, analyzing screenshots, UX feedback, debugging, architecture review, or web search.
allowed-tools: Bash(uv:*), Read

Gemini Consultant

Get a second opinion from Google's Gemini 3 Pro (gemini-3-pro-preview) with real-time Google Search grounding.

CRITICAL: GEMINI IS BLIND. It knows nothing about your current session, file system, conversation history, or previous errors unless you explicitly force-feed it that data.

The "Dump Everything" Rule

The -c/--context argument is effectively unlimited. To get a useful answer, you must dump EVERYTHING relevant into the context.

  • Quantity: We are talking about 10, 100, or 500+ lines of context.
  • Scope: Include the file in question, all related files (imports, types, configs), the full error traceback, your current hypothesis, and a summary of what you have already tried.
  • History: If you are deep in a debugging session, dump the relevant parts of the conversation history into the context.

If you think a file is even tangentially related, INCLUDE IT.

Prerequisites

GEMINI_API_KEY environment variable must be set.

Usage

bash
uv run /path/to/skills/gemini-consultant/consult.py "Detailed Question" -c "MASSIVE CONTEXT STRING"

Parameters

ParameterDescription
questionThe prompt. Be specific. "Given error X and code Y (in context), why is logic Z failing?"
-c, --contextTHE DATA DUMP. Concatenate everything here. Code, logs, history, configs. Can be used multiple times.
-i, --imageImage file paths (screenshots, diagrams).
--media-resolutionlow, medium (default), high, ultra_high.
--no-searchDisable web search (pure code logic).
--thinkinglow or high (default). Use high for code.

Examples

BAD (Lazy = Failure)

bash
# WRONG: Context is missing.
uv run consult.py "Why is this crashing?" -c "Error: 500 Internal Server Error"
bash
# WRONG: Single file provided, ignoring dependencies.
uv run consult.py "Fix this function." -c "$(cat src/broken_file.py)"

GOOD (Exhaustive = Success)

NOTE: Real-world usages are usually 10-100x longer than the snippets below.

bash
# CORRECT: Providing File, Imports, Types, and Errors
uv run consult.py "I am getting a RecursionError in the serialization logic. Analyze the relationship between the Model and the Schema." \
  -c "FILE: src/models.py
$(cat src/models.py)

FILE: src/schemas.py
$(cat src/schemas.py)

FILE: src/config/db_settings.py
$(cat src/config/db_settings.py)

ERROR LOG:
$(cat logs/error_dump.txt)

PREVIOUS ATTEMPTS:
I tried removing the circular reference in schema.py line 40 but it broke the API validation."
bash
# CORRECT: Architecture review with full project scope
uv run consult.py "Review this authentication flow for security flaws." \
  -c "MIDDLEWARE: $(cat src/middleware/auth.ts)
MODELS: $(cat src/models/user.ts)
ROUTES: $(cat src/routes/auth.ts)
CONFIG: $(cat src/config/security.ts)
TYPES: $(cat src/types/express.d.ts)"

Web Search (No Code Context Needed)

bash
uv run consult.py "What is the latest version of Next.js and what are its new features?"