No slash command · from workflows
Routes Gemini extraction/classification workloads to Vertex AI Cloud Batch (>10 rows) or Cloud Flex PayGo (≤10 rows) using ADC and GCS. Avoids AI Studio for production runs.
Ships in workflows. 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.
Read when SKILL.md points to them; scripts run unread.
NEVER USE AI STUDIO / THE GEMINI DEVELOPER API FOR PRODUCTION RUNS. Production batch runs use Gemini Enterprise Agent Platform (formerly Vertex AI): genai.Client(vertexai=True, project=..., location=...), Application Default Credentials (ADC), and GCS input/output. Substituting API-key/Files batch is not a shortcut: it sends the production workload to the wrong service.
code 9 "Precondition check failed" rows; its retry queue stalled over 40 minutes. Tier 1's gemini-3.8-flash queue cap was 3M tokens. Repeating that production route recreates the failure, not a cheaper solution. These are Developer limits, not Cloud quotas.
Product name; current SDK docs use enterprise=True / GOOGLE_GENAI_USE_ENTERPRISE=True; vertexai=True remains compatible. Check SDK spelling and precedence before changing pins. aiplatform.googleapis.com and IAM roles/aiplatform.* retain their identifiers. Developer examples retained in references are not for production.
Route by row count: ≤10 documents/rows → Cloud Flex PayGo; more → Cloud Batch. This is a judgment default from Flex throughput (~9 rows/hour at peak, measured on Developer Flex). Flex gives the same 50% discount as one direct generate_content call per row: no GCS JSONL, no queue, no import-format failures. A bulk-guard redirect for a few documents lands on Flex, not a Batch job; recipe in Flex.
| Tier | Use | Price / availability | Request path |
|---|---|---|---|
| Cloud Batch (Recommended for >10 rows) | Independent extraction/classification and tested grounded lookups | 50% off real-time; shared capacity; up to 72h queued, then most jobs finish within 24h running | GCS JSONL → client.batches.create; config.dest → GCS |
| Cloud Standard PayGo | Same-model synchronous smoke tests; interactive search | Standard Cloud tariff; capacity/model-dependent | client.models.generate_content with ADC |
| Cloud Flex PayGo (Preview) (Recommended for ≤10 rows) | Few-document extraction; small, synchronous, latency-tolerant lookups | 50% off Standard; higher throttling; global only; timeout up to 30 min | Vertex header X-Vertex-AI-LLM-Shared-Request-Type: flex |
| Cloud Priority PayGo | Latency-sensitive work, not cheap bulk | Higher model-specific tariff; global and supported us/eu multi-regions, not regional endpoints | Same Vertex header, value priority |
Sources: Batch, Flex, Priority, Cloud pricing. Cloud Flex/Priority are documented equivalents, not the Developer Interactions service_tier recipe or its quotas; read tier request patterns.
Cloud Interactions is Preview; generateContent remains fully supported. Production batch uses GenerateContentRequest JSONL, not interactions.create or an Interactions background task.
What this skill carries — grep references/ for any subject the names below miss:
!d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"
READ EXAMPLES BEFORE WRITING ANY CODE. NO EXCEPTIONS.
NO BULK SUBMISSION WITHOUT A SAME-MODEL CLOUD SMOKE TEST AND A 5–10-ROW CLOUD END-TO-END TEST. Skipping these scales bad prompts, lost identifiers and ungrounded answers into a bad dataset.
examples/batch_processor.py or examples/icon_batch_vision.py. Verify project, API enablement, ADC, IAM and readable input/writable output GCS paths. gcloud user login alone is not ADC. Flex route (≤10 rows): read Flex instead of the GCS runbook.uv run ${CLAUDE_PLUGIN_ROOT}/skills/batch-router/scripts/route_batch.py --propose BEFORE picking a model: it lists what Vertex serves now that the dated defaults below do not know (e.g. the Gemini 4 codenames), with batch prices from the pricing page; a codename with no published tier is a human decision. Then fetch current Cloud model cards, locations, batch support, thinking and pricing. Snapshot as of 2026-10-01, not a live list: new-project extraction defaults were gemini-3.5-flash-lite for cheap extraction, gemini-3.8-flash for harder extraction/search. Preserve existing model pins; Flash/Flash-Lite is the measured extraction default, not Pro. See model-selection evidence.fileData.fileUri; preserve layout/scans. For text-native filings, pre-cut relevant sections without truncating target evidence. Historical PDF cost observations are in Files, not a universal tokens/page tariff.status errors, finish reasons, usage, identifier round-trip and grounding if required. Follow scale-up testing. A ≤10-row Flex job has no separate pilot: its first row is the smoke test.from google import genai
client = genai.Client(vertexai=True, project="your-project-id", location="global")
job = client.batches.create(
model="publishers/google/models/gemini-3.5-flash-lite",
src="gs://your-bucket/requests.jsonl",
config={"display_name": "extraction", "dest": "gs://your-bucket/outputs/"},
)
Keep this client alive through submission, polling and retries. dest is a GCS prefix inside config, not a filename or top-level kwarg; after completion use the job's returned destination. Cloud input has request plus top-level scalar columns such as request_id (a nested metadata object fails import), not Developer Files semantics. Validate with scripts/validate_jsonl.py --backend cloud; see request/output format and schema.
| Limit | Current Cloud Gemini batch |
|---|---|
| Requests/job | 200,000 |
| GCS JSONL input | One file, up to 1 GB |
| Concurrent Gemini jobs / enqueued tokens | No predefined quota; dynamically shared model capacity (not Developer Tier 1 caps) |
| Queue expiry | Up to 72h before starting |
| Running time | Most complete within 24h; incomplete jobs cancelled after 24h running, charged for completed requests |
| Endpoint | Global for base models; supported regional endpoints for residency; global does not satisfy residency |
| Unsupported batch features | Provisioned Throughput, explicit caching, RAG; tuned Gemini 3+ models |
Sources: batch limits, quotas. Embedding batch has separate Cloud limits/schema. BigQuery is a documented alternative, with regional constraints; GCS is this skill's production default.
candidates[].groundingMetadata per row. Cloud grounding and model support are not a promise that every batch+search+schema combination works; the exact Cloud end-to-end sample must prove it. Read measured Cloud gotchas before grounded submission: empty googleSearch fails import; M100 grounded 97/100 on 3.8 Flash/global. Cloud batch excludes RAG/File Search.| About to | Do instead |
|---|---|
Use genai.Client() without vertexai=True for a production batch | STOP. Use explicit Cloud client, project/location and ADC |
| File API upload for a production job | STOP. Use private GCS input and output |
Pass dest= to create, or use a filename as output | STOP. Put the GCS output prefix in config.dest; retrieve this job's actual destination |
| Use a bare model resource after a Cloud batch 404 | STOP. Use publishers/google/models/<id> and verify the exact endpoint |
Infer batch availability from models.list() or downgrade to clear 404 | STOP. Check Cloud support and run the same-model Cloud batch sample |
Put Batch requests into interactions.create | STOP. Batch uses GenerateContentRequest JSONL and client.batches.create |
| Switch platforms or abandon a batch approach | STOP. Cancel every job and runner of the old approach — list its batches, stop the poller/farm — and confirm none are pending. An unstopped AI Studio retry runner billed searches for ~8h after the move to Vertex |
| Accept a succeeded job without row reconciliation | STOP. Inspect status, content, finish reason, identifiers and grounding |
Operations: GCS, CLI, troubleshooting, production patterns. Historical Developer File Search and Files/Interactions/embedding examples are not for production; never use them as production fallbacks.
examples/batch_processor.py (opens in a new tab)examples/embeddings_batch.py (opens in a new tab)examples/icon_batch_vision.py (opens in a new tab)examples/pipeline_template.py (opens in a new tab)references/best-practices.md (opens in a new tab)references/cli-reference.md (opens in a new tab)references/embeddings.md (opens in a new tab)references/file-search.md (opens in a new tab)references/files-api.md (opens in a new tab)references/flex-inference.md (opens in a new tab)references/gcs-setup-runbook.md (opens in a new tab)references/gcs-setup.md (opens in a new tab)references/gotchas.md (opens in a new tab)references/model-selection.md (opens in a new tab)references/models-and-pricing.md (opens in a new tab)references/scale-up-testing.md (opens in a new tab)references/structured-output.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/vertex-ai.md (opens in a new tab)scripts/single_request.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gemini, vertex-ai, batch-inference, cloud-flex, production-batch
Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of '[email protected]:edwinhu/bmll-skill.git' into submodule path 'skills/bmll' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
86 skills in this plugin
/afkUse when the user says '/afk', 'afk', 'going to bed', 'I'm going to sleep', 'work autonomously', 'work on this overnight', 'don't ask me questions', 'while I'm away', or 'do whatever you think is best'. NOT for questions about overnight returns, rates or anything financial; NOT for asking how the mode works./ai-anti-patternsALWAYS load before finalizing ANY written prose, and whenever text is suspected of being machine-written - "does this sound like AI", "make this sound human", "clean up the AI-isms", "did a bot write this", "check this draft before I send it", "review this for AI tells", "this reads like ChatGPT", "review this for mannered prose", "is this too writerly", "is this student paper AI-generated", or before handing back any draft, memo, email, or article you wrote. Use proactively even if the user never mentions AI writing./Other plugins' skills for the same job