Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

gemini-vertex

БесплатноЗапускает вложенные скриптыНе проверен

Use when the user says 'gemini batch', 'Gemini Batch API', 'Vertex AI', 'Gemini on Vertex', 'Cloud Flex', 'upload files to Gemini', 'flex', 'flex tier'…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

Gemini production batch

## IRON LAW: NEVER use AI Studio for production runs

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.

  • Developer API: a 2,111-row grounded batch returned 1,307 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.

Choose the Cloud tier

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)"

Before writing code

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.

  1. Read Cloud batch, the ADC/GCS setup runbook, and 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.
  2. Run 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 p
Полный SKILL.md на GitHub

Установить gemini-vertex в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/batch_processor.pyexamples/embeddings_batch.pyexamples/icon_batch_vision.pyexamples/pipeline_template.pyreferences/best-practices.mdreferences/cli-reference.mdreferences/embeddings.mdreferences/file-search.mdreferences/files-api.mdreferences/flex-inference.mdreferences/gcs-setup-runbook.mdreferences/gcs-setup.mdreferences/gotchas.mdreferences/model-selection.mdreferences/models-and-pricing.mdreferences/scale-up-testing.mdreferences/structured-output.mdreferences/troubleshooting.mdreferences/vertex-ai.mdscripts/single_request.pyscripts/validate_jsonl.pyscripts/validate_jsonl_test.py

FAQ

Что делает скилл gemini-vertex?

Use when the user says 'gemini batch', 'Gemini Batch API', 'Vertex AI', 'Gemini on Vertex', 'Cloud Flex', 'upload files to Gemini', 'flex', 'flex tier', 'Interactions API', 'cheap async Gemini', 'grounded lookups at scale', 'Google Search grounding in bulk', or when batch-router picked Gemini — large-scale Gemini extraction, classification or enrichment through Cloud Batch, or a few documents (≤10) through Cloud Flex.

Как установить скилл gemini-vertex?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл gemini-vertex запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить gemini-vertex с