gemini-batch

gemini-batch is a skill for Claude Code from iofold/ainative-claude-plugins. It costs 46 tokens per session (1,537 once invoked), scanned B, original, MIT.

A command-line tool for sending prompts and files to Google Gemini models, including groups of files processed together.

In plain words
What is it for?
Use it to analyse text, images, or PDFs; process folders of files; or generate images with Google's image models.
Why use it?
It avoids handling many files one by one and includes retries, result checks, and cached outputs for batch work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code; mentions Gemini CLI.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is skills/gemini-batch/gemini-batch.ts --batch ./screenshots/ --out ./analysis/ -p prompt.txt.

Part of the ai-development plugin — 3 skills shipped together

Good fit Use it to analyse text, images, or PDFs; process folders of files; or generate images with Google's image models.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/iofold/ainative-claude-plugins
agentmods
npx agentmods add skills/iofold/ainative-claude-plugins/gemini-batch

Made for: Claude Code.

Or install ai-development, the plugin that ships this one along with the rest of its 3 skills.

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 gemini-batch

README.md
[![agentmods](https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/gemini-batch/github.svg)](https://agentmods.dev/skills/iofold/ainative-claude-plugins/gemini-batch)
Your own site
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/gemini-batch"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/gemini-batch/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 gemini-batch

Your own site · 80×15
<a href="https://agentmods.dev/skills/iofold/ainative-claude-plugins/gemini-batch"><img src="https://agentmods.dev/badge/skills/iofold/ainative-claude-plugins/gemini-batch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,537 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00046 $0.01537
Opus 5.5 $0.00018 $0.00615
Sonnet 5.5 $0.00009 $0.00307
Haiku 4.5 $0.00005 $0.00154

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

Security

Grade B, and why

gemini-batch scanned grade B with 1 finding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (gemini-batch.ts), 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Set in `~/.claude/settings.json` under the `env` key (available as `process.env` automatically).
ai-development/skills/gemini-batch/SKILL.md · 166 lines

How it starts

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

Gemini CLI

Standalone CLI for Google Vertex AI Gemini models. Single prompts, file attachments, batch processing, and image generation.

Script: skills/gemini-batch/gemini-batch.ts

Quick Start

# Simple prompt
skills/gemini-batch/gemini-batch.ts "Explain quantum computing"

# Analyze files
skills/gemini-batch/gemini-batch.ts -f screenshot.png "Describe this UI"
skills/gemini-batch/gemini-batch.ts -f before.png -f after.png "Compare these"

# Batch process directory
skills/gemini-batch/gemini-batch.ts --batch ./screenshots/ --out ./analysis/ -p prompt.txt

# Generate images (Nano Banana 2)
skills/gemini-batch/gemini-batch.ts --image "A serene mountain landscape" --out ./images/

Configuration

Required env vars: VERTEXAI_PROJECT, VERTEXAI_LOCATION, GOOGLE_APPLICATION_CREDENTIALS

Option A — Inject from vault:

vault inject VERTEXAI_PROJECT VERTEXAI_LOCATION GOOGLE_APPLICATION_CREDENTIALS
# Or if vault keys differ from .env names:
vault inject VERTEXAI_PROJECT_MYAPP=VERTEXAI_PROJECT

Option B — Claude Code session env: Set in ~/.claude/settings.json under the env key (available as process.env automatically).

Usage Modes

1. Single Prompt

gemini-batch.ts "Your prompt"           # inline
gemini-batch.ts -p system-prompt.txt    # from file
echo "prompt" | gemini-batch.ts --stdin # from stdin

2. File Attachments

gemini-batch.ts -f image.png -f doc.pdf "Analyze these"

Supported: .png, .jpg, .jpeg, .gif, .webp, .pdf, .txt, .md, .json, .csv, .html, .xml

3. Batch Mode

# Directory of files + shared prompt
gemini-batch.ts --batch ./images/ --out ./results/ -p "Analyze this UI"

# Subdirectories with individual prompt.txt files
gemini-batch.ts --batch ./tasks/ --out ./results/

Output: one .md file per input. Cached results reused unless --no-cache.

4. Image Generation (Nano Banana)

gemini-batch.ts --image "A cute robot reading a book" --out ./images/
gemini-batch.ts --image "Cyberpunk city" --out ./art/ --count 4 --aspect 16:9

Read the full file on GitHub · 166 lines

Files

What ships with it

1 file 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. 1mo ago Changed · -142 lines · +13 tokens per session scan A → B a037cd345cd5
  2. 3mo ago First seen · 308 lines · 33 tokens per session scan A 96e4c9da1266

Subscribe to this mod's changes

gemini-batch is a skill published in the GitHub repository iofold/ainative-claude-plugins (3 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 1,537 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

gemini-batch compared with skills from other repositories

gemini-batch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gemini-batchiofold/ainative-claude-pluginsSkill31mo agoMITB46Claude Code
agent-platform-model-registrygoogle/skillsSkill25ktodayApache-2.0A60Claude Code, Codex
llm-evaluationsickn33/agentic-awesome-skillsSkill51kyesterdayMITA25Claude Code
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill20kyesterdayMITA35Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.2ktodayApache-2.0A92Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill4.2ktodayApache-2.0A30Claude Code