What problem does it solve?
This Skill solves the problem of writing broken Gemini API code based on outdated training data, which uses deprecated SDKs, removed sampling parameters, and incorrect configuration patterns that fail silently on current 3.x models and Gemma 4 hosted API instances.
Core Features & Use Cases
- Current 3.x Convention Reference: Authoritative guidance for the latest
google-genai (Python) and @google/genai (JavaScript) SDKs, including correct model IDs, thinking_level enum usage, and the recommendation to avoid setting temperature/top_p/top_k on Gemini 3.x models.
- Runnable Use Case Cookbook: Pre-written, copy-safe snippets for common tasks including text generation with system instructions, image/PDF input, automatic and manual function calling, and structured JSON output with Pydantic or raw schemas.
- Silent Failure Footgun Documentation: Explicit guidance for avoiding non-obvious breakages like missing function call
id fields, incorrect multimodal content placement in function responses, and lost thought signatures in multi-turn chat history.
- Use Case Example: A developer migrating legacy code from
gemini-pro to gemini-3.5-flash can use this Skill to update their SDK import, fix deprecated thinking_budget config, and adjust function calling patterns to avoid silent empty responses.
Quick Start
Use the gemini-api skill to write a Python script that uses the Gemini 3.5 Flash model to translate English text to German, with a system instruction that ensures only the translated text is returned with no extra commentary or formatting.