/ask-gemini:ask-geminifrom ask-gemini
Use ONLY when the user explicitly asks to delegate to Gemini, ask Gemini, run Gemini, or use the Gemini CLI. Also triggers on requests to analyze YouTube videos or audio files (capabilities Claude lacks). Never auto-invoke for general research, web searches, or coding tasks — those stay with Claude unless the user names Gemini.
Ships in ask-gemini. 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.
Delegate a task to Google's Gemini CLI as a sub-agent. Use only when the user explicitly asks for it, or when the request requires a capability Claude lacks (YouTube video analysis, native audio file processing).
Always use this exact command shape:
GOOGLE_GENAI_USE_GCA=true gemini -y --skip-trust -p "<USER_PROMPT>
Cite sources with inline links for every factual claim. Briefly explain your reasoning."
GOOGLE_GENAI_USE_GCA=true is required — Gemini CLI refuses to start without an auth method env var. This one tells it to use the user's personal Google account (subscription quota, not metered API billing).-y auto-approves tool use so the headless run doesn't hang on a confirmation prompt.--skip-trust is required in Gemini CLI ≥ 0.39. Without it, the CLI silently downgrades from yolo to interactive mode in any "untrusted" directory and the run fails with a trusted-folders error.Do not rewrite, summarize, or "improve" the user's request before sending it. Gemini is an agent — trust it to interpret. The only addition is the source-citation suffix above.
After the call returns, strip the leading banner lines (Loaded cached credentials. and Hook registry initialized...) and count words in the remaining body:
~/research/<topic-slug>-YYYY-MM-DD.md, then reply with a one-paragraph summary plus the absolute file path. Create ~/research/ if it doesn't exist. Slug the topic from the user's request (lowercase, hyphens, drop punctuation).If the user explicitly asks for a file path or inline output, honor that instead.
WebSearch / WebFetch.YouTube-link analysis and audio-file analysis are the only implicit triggers, because Claude literally cannot do them.
Please set an Auth method... — the env var was dropped. Re-run with GOOGLE_GENAI_USE_GCA=true prefixed. Do not fall back to GEMINI_API_KEY; that would charge metered API billing instead of using the subscription.-y flag was likely missed; the CLI is waiting for tool approval. Kill it and re-run with -y.Gemini CLI is not running in a trusted directory — --skip-trust was missed. Add it. Alternatively set GEMINI_CLI_TRUST_WORKSPACE=true, but the flag is preferred (no env pollution).A quick smoke test the skill is wired correctly:
GOOGLE_GENAI_USE_GCA=true gemini -y --skip-trust -p "Reply with the single word OK." 2>&1 | tail -1
Should print OK.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (w1ne/claude-skill-ask-gemini) — no native marketplace selected
npx claudepluginhub p/w1ne-ask-gemini