Look up Gemini API documentation, SDK patterns, and current best practices when building with Google Gemini. Maps topics to local cached docs and live sources, provides correct @google/genai patterns, and highlights deprecated vs current API usage. Trigger with 'gemini docs', 'gemini guide', 'how to use gemini', 'gemini SDK', '@google/genai', or when building code that imports from @google/genai or google-genai.
Provides correct Gemini API patterns and SDK guidance by fetching current documentation and highlighting deprecated usage.
npx claudepluginhub jezweb/claude-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/deprecated-patterns.mdreferences/topic-index.mdLook up Gemini API documentation and SDK patterns when building with Google Gemini. This skill brings Gemini docs TO Claude — it does not call Gemini.
| Skill | Direction | Tool |
|---|---|---|
| gemini-guide (this) | Gemini docs -> Claude | WebFetch, local docs |
| gemini-peer-review | Code -> Gemini | Direct Gemini API |
Check in this priority order:
| Priority | Source | Best For |
|---|---|---|
| 1 | GitHub codegen_instructions | Always-current SDK patterns — fetch https://raw.githubusercontent.com/googleapis/js-genai/refs/heads/main/codegen_instructions.md |
| 2 | Google AI docs via WebFetch | Official docs — https://ai.google.dev/gemini-api/docs/{topic} (append .md.txt for markdown) |
| 3 | Local cached docs (if available at ~/Documents/google-gemini-context/) | Pre-fetched topics — 24 JS, 24 Python, 7 common |
When the user asks about a Gemini topic:
~/Documents/google-gemini-context/, read the matching file; otherwise use WebFetch on https://ai.google.dev/gemini-api/docs/{topic}.md.txtThese are the most common mistakes. Apply these even without reading the full references:
| Claude Might Suggest | Correct |
|---|---|
@google/generative-ai | @google/genai |
google-generativeai (Python) | google-genai |
GoogleGenerativeAI | GoogleGenAI |
genAI.getGenerativeModel() | ai.models.generateContent() |
model.startChat() / chat.sendMessage() | ai.chats.create() / chat.send() |
generationConfig | config |
stream=True (method param) | config={"stream": True} |
gemini-pro | gemini-2.5-flash |
gemini-pro-vision | gemini-2.5-flash (unified multimodal) |
| 4 safety categories | 5 categories (include HARM_CATEGORY_CIVIC_INTEGRITY) |
HARM_CATEGORY_DANGEROUS_CONTENT | HARM_CATEGORY_DANGEROUS (no _CONTENT) |
X-Goog-Api-Key (capitalised) | x-goog-api-key (lowercase) |
| Daily rate limits | No daily limits — only per-minute (RPM, TPM) |
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({}); // auto-reads GEMINI_API_KEY env var
const response = await ai.models.generateContent({
model: "gemini-2.5-flash",
contents: "Your prompt"
});
from google import genai
client = genai.Client() # auto-reads GEMINI_API_KEY env var
response = client.models.generate_content(
model="gemini-2.5-flash",
contents="Your prompt"
)
If you have a local cache at ~/Documents/google-gemini-context/, it contains:
| Directory | Contents |
|---|---|
javascript/ | 24 topic files — quickstart, function-calling, streaming, structured-output, etc. |
python/ | 24 topic files — same topics as JavaScript |
common/ | 7 cross-language files — safety, pricing, rate-limits, errors, auth, regions, openai-compat |
rest-api/ | REST endpoint docs |
MODELS.md | Current model IDs, capabilities, token limits, rate limits |
googlegenai-gemini-api.md | Comprehensive SDK guide (608 lines, JS + Python) |
If not available, fall back to WebFetch on Google AI docs (append .md.txt for markdown format).
| Model | ID | Best For |
|---|---|---|
| Gemini 2.5 Pro | gemini-2.5-pro | Complex reasoning, advanced coding |
| Gemini 2.5 Flash | gemini-2.5-flash | Most tasks (recommended default) |
| Gemini 2.5 Flash-Lite | gemini-2.5-flash-lite-preview-06-17 | Budget, low latency |
| Gemini 2.0 Flash | gemini-2.0-flash | Fast inference |
| Text Embedding | text-embedding-004 | Semantic search, RAG (768 dims) |
For full model details, check ~/Documents/google-gemini-context/MODELS.md (if available) or https://ai.google.dev/gemini-api/docs/models.
When information seems wrong or outdated:
https://ai.google.dev/gemini-api/docs/models| When | Read |
|---|---|
| Mapping a query to a documentation file | references/topic-index.md |
| Checking for deprecated patterns before writing code | references/deprecated-patterns.md |
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.