invoking-gemini

invoking-gemini is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 64 tokens per session (4,464 once invoked), scanned A, original, MIT.

A helper for sending selected tasks to Google Gemini models, including structured JSON generation, image creation, and multimodal work with images, video, or audio. Gemini is Google’s family of AI models.

In plain words
What is it for?
Use it for Gemini requests, schema-validated JSON, image generation, Google API integrations, image analysis, video processing, audio transcription, or parallel batch work.
Why use it?
It gives an agent a defined way to use Gemini when its output formats, media handling, parallel processing, or cost may fit the task. It also describes credential options and setup requirements.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it for Gemini requests, schema-validated JSON, image generation, Google API integrations, image analysis, video processing, audio transcription, or parallel batch work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oaustegard/claude-skills/invoking-gemini
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add oaustegard/claude-skills --skill invoking-gemini
Clone the repo
git clone --depth 1 https://github.com/oaustegard/claude-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for invoking-gemini

README.md
[![agentmods](https://agentmods.dev/badge/skills/oaustegard/claude-skills/invoking-gemini/github.svg)](https://agentmods.dev/skills/oaustegard/claude-skills/invoking-gemini)
Your own site
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/invoking-gemini"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/invoking-gemini/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for invoking-gemini

Your own site · 80×15
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/invoking-gemini"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/invoking-gemini.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,464 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 46
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.04464
Opus 5.5 $0.00026 $0.01786
Sonnet 5.5 $0.00013 $0.00893
Haiku 4.5 $0.00006 $0.00446

Measured 10d ago against content hash 7f09fa6bac02, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

invoking-gemini scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/gemini_client.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

invoking-gemini/SKILL.md · 390 lines

How it starts

The opening of the file, as written. The whole thing — 390 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Invoking Gemini

Delegate tasks to Google's Gemini models when they offer advantages over Claude.

When to Use Gemini

Image generation:

  • Blog header images, illustrations, diagrams
  • Style-guided image creation (risograph, editorial, etc.)
  • Text rendering in images

Speech (TTS):

  • Narration, voice-over, read-aloud with style direction per line
  • A custom voice designed from a written description
  • Two-speaker dialogue

Structured outputs:

  • JSON Schema validation with property ordering guarantees
  • Pydantic model compliance
  • Strict schema adherence (enum values, required fields)

Cost optimization:

  • Parallel batch processing (Gemini 3 Flash is lightweight)
  • High-volume simple tasks

Multi-modal tasks:

  • Image analysis with JSON output
  • Video processing
  • Audio transcription with structure

Setup

uv pip install requests pydantic

Credentials — Option A (recommended): Cloudflare AI Gateway

Source /mnt/project/proxy.env with CF_ACCOUNT_ID, CF_GATEWAY_ID, CF_API_TOKEN. Requests route through Cloudflare AI Gateway, bypassing IP blocks. Google API key stored in gateway via BYOK.

Credentials — Option B: Direct Google API

If no proxy.env, falls back to direct: GOOGLE_API_KEY.txt or API_CREDENTIALS.json.

Image Generation

Generate images using Gemini's native image models. This is the primary way to create illustrations, blog headers, diagrams, and visual content.

Quick Start

import sys
sys.path.append('/mnt/skills/user/invoking-gemini/scripts')
from gemini_client import generate_image

# One call — returns {"path": "...", "caption": "..."} or None
result = generate_image("A watercolor painting of a mountain lake at sunset")
print(result["path"])  # /mnt/user-data/outputs/gemini_image_1740000000.png

Function Signature

generate_image(
    prompt: str,                    # The image description
    output_path: str = None,        # Auto-generates if omitted
    model: str = "nano-banana-2.1",  # Default: fast. Use "image-pro" for quality
    temperature: float = 0.7,       # 0.5-0.7 for diagrams, 0.7-0.8 for illustrations
) -> dict | None
# Returns: {"path": "/mnt/user-data/outputs/gemini_image_*.png", "caption": str|None}
# Returns None on failure

Read the full file on GitHub · 390 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +7 lines 7f09fa6bac02
  2. 2mo ago Changed · +57 lines · +14 tokens per session a19e6e6179d4
  3. 2mo ago Changed · +24 lines cb6bc3b61bea
  4. 3mo ago First seen · 302 lines · 50 tokens per session scan A 1ac9bf0cb870

Subscribe to this mod's changes

invoking-gemini is a skill published in the GitHub repository oaustegard/claude-skills (423 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 4,464 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

invoking-gemini compared with skills from other repositories

invoking-gemini next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
invoking-geminioaustegard/claude-skillsSkill423todayMITA64Claude Code, Codex
recsys-pipeline-architectmturac/recsys-pipeline-architectSkill26mo agononeA166Claude Code, Codex
prompt-engineeringkongyo2/prompt-engineering-skillSkill31y agononeA60Claude Code, Codex
optimize-for-gpuK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA151Claude Code, Codex
umap-learnK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA52Claude Code, Codex
shapK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA46Claude Code
arboretoK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA55Claude Code, Codex