Loading...
Loading...
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.
npx skill4agent add jezweb/claude-skills gemini-guide| Skill | Direction | Tool |
|---|---|---|
| gemini-guide (this) | Gemini docs -> Claude | Local docs, WebFetch |
| gemini-peer-review | Code -> Gemini | gemini-coach CLI |
| Priority | Source | Best For |
|---|---|---|
| 1 | Local cached docs ( | Most topics — 24 JS, 24 Python, 7 common topics |
| 2 | GitHub codegen_instructions | Always-current SDK patterns — fetch |
| 3 | Google AI docs via WebFetch | When local docs don't cover it — |
~/Documents/google-gemini-context/{path from topic index}| Claude Might Suggest | Correct |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| 4 safety categories | 5 categories (include |
| |
| |
| 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"
)~/Documents/google-gemini-context/| Directory | Contents |
|---|---|
| 24 topic files — quickstart, function-calling, streaming, structured-output, etc. |
| 24 topic files — same topics as JavaScript |
| 7 cross-language files — safety, pricing, rate-limits, errors, auth, regions, openai-compat |
| REST endpoint docs |
| Current model IDs, capabilities, token limits, rate limits |
| Full correction reference (source for deprecated-patterns.md) |
| Comprehensive SDK guide (608 lines, JS + Python) |
| Keyword index mapping topics to files |
| Model | ID | Best For |
|---|---|---|
| Gemini 2.5 Pro | | Complex reasoning, advanced coding |
| Gemini 2.5 Flash | | Most tasks (recommended default) |
| Gemini 2.5 Flash-Lite | | Budget, low latency |
| Gemini 2.0 Flash | | Fast inference |
| Text Embedding | | Semantic search, RAG (768 dims) |
~/Documents/google-gemini-context/MODELS.md~/Documents/google-gemini-context/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 |