/ask-gemini-mcp:ask-gemini-mcpfrom ask-gemini-mcp
Fallback for `ask-gemini` when the `agy` CLI is not installed, as in cloud sessions. Asks Gemini one-shot questions through the `ask_gemini` MCP tools (sync, or `ask_gemini_async` for slow models) with all context pasted into the prompt. Use for second opinions, sanity checks, code reviews, text tasks (translation, proofreading, extraction, summarization), or applying a review standard to pasted material.
Ships in ask-gemini-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Calls a Gemini model through the ask_gemini MCP tools and relays the answer back.
The tool is one-shot: each call has no memory of this conversation and no access to files, so a prompt like "what did we just decide" gets a wrong or generic answer. Before calling the tool, write a fully self-contained prompt that includes whatever context Gemini needs to actually answer well: relevant code, the specific question, constraints, prior decisions. Do not just forward the user's raw message if it depends on conversation context Gemini can't see.
Tool names below are the MCP tool names. The full name carries whatever server prefix the MCP is mounted under, so match by name.
| tool | use |
|---|---|
ask_gemini | sync call, returns the answer |
ask_gemini_async | same params, returns a job_id |
get_async_result | job_id, waits up to 20s, returns done: false or done: true with the answer in result |
ask_gemini_models | live model list |
If the tools are deferred, load them in one tool search. Async mode applies when ask_gemini_async and get_async_result both exist. Otherwise use sync-only mode and the sync-only column below.
Use the smallest tier that answers well. Bigger models are for tasks that need them, never a default.
| task | model | transport | sync-only mode |
|---|---|---|---|
| trivial lookup, one-line syntax check, yes/no | gemini-3.8-flash-medium | sync | same |
| second opinion, sanity check (default) | gemini-3.8-flash-medium | sync | same |
| second opinion that needs more reasoning or knowledge | gemini-4-argon-low | sync | same |
| translation, quick proofreading, extraction, classification, short summaries | gemini-3.5-flash-lite | sync | same |
| small or quick code reviews, well-scoped real tasks | gemini-3.8-flash-high | async | gemini-4-argon-low |
| tasks that need broader judgment or knowledge | gemini-4-argon-medium | async | gemini-4-argon-low |
| large or complex code review, architecture, hard multi-step reasoning, only when actually needed | gemini-4-argon-medium | async | gemini-4-argon-low |
gemini-4-argon-high | only when the user asks | async | gemini-4-argon-low |
Don't use Flash-Lite for evaluations, second opinions, or anything that needs multi-step reasoning. Don't call it to pick a model for this skill.
In sync-only mode, never use a -high model or gemini-4-argon-medium, even if the user asks, because the call won't return before the client's tool timeout. Use gemini-4-argon-low and tell the user why.
If the user asks for "the fast one", use gemini-3.8-flash-low, or gemini-3.5-flash-lite for a text task. If they name another model, use the exact ID from the live list. If you're unsure which one they mean, ask.
Pass search_grounding: true only when the question needs up-to-date web information, recent docs, or live facts. Leave it off for code review, reasoning, and self-contained text tasks.
ask_gemini_async, then call get_async_result with the job_id until done is true. Wait 20-30 seconds between polls. Don't wait longer or do other work in between: a job can be lost after a minute or two without requests.unknown or expired job_id, resubmit once.The response includes requested_model and model. When they differ (a resolved variant or a fallback after an upstream 404, common for models still rolling out), tell the user which model actually answered.
Tell the user which step you had to take:
Ladders:
gemini-4-argon-high → gemini-4-argon-medium → gemini-3.8-flash-high → gemini-4-argon-low, all asyncgemini-4-argon-low → gemini-3.8-flash-medium → gemini-3.8-flash-low → gemini-3.5-flash-litegemini-3.8-flash-medium → gemini-3.8-flash-low → gemini-3.5-flash-liteIf a call that started on Argon ends up answered by Flash, say so, since that changes what the user is getting an opinion from.
Use this when the user wants Gemini to review, audit or rewrite something against one of their skills (for example comment-and-documentation-quality, code-and-comment-quality or deslop-articles). Pick the model from the table: gemini-3.8-flash-high for routine checks, gemini-4-argon-medium for large targets or complex rewrites.
Resolve the standard and fail closed:
STANDARD="$(find ~/.claude/skills ~/.agents/skills /mnt/skills -path '*/<skill-name>/SKILL.md' 2>/dev/null | head -1)"
[ -n "$STANDARD" ] || { echo "<skill-name> not found" >&2; exit 1; }
If it doesn't resolve, stop and tell the user which skill is missing and where you looked. Don't reconstruct the rules from the skill name or send the request without them. Include any files under the skill's references/ that hold rules.
Collect the target verbatim: git diff main...HEAD, git diff plus git diff --staged, file contents, or git log --format='%H%n%B%n---' main..HEAD for commit messages. When a comment's correctness depends on surrounding code, send the full file, not the hunk.
Build the prompt in this order: a line saying Gemini has no file access and everything it needs is inline, the full standard between === STANDARD === markers, the target between === TARGET === markers, then the output contract (findings with path, line, original text, rule broken and replacement, or the complete rewritten text).
In sync-only mode, if the payload is too large to return in time, split the target by file or top-level heading (never inside a code block) and send the full standard with every chunk. Don't drop the standard to make it fit. In async mode, send the target in one call unless it exceeds the model's context.
For rewrites, diff Gemini's output against the original before applying it. Restore any changed frontmatter, code block, command, URL, path or link target from the original yourself, and report what you restored.
Never present the result as complete if the standard didn't resolve or part of the target was left out.
model, prompt, and search_grounding only if the question needs live web info. For async, poll until done.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dvcrn/skills --plugin ask-gemini-mcp