Loading...
Loading...
Compare original and translation side by side
| Skill | Direction | Tool |
|---|---|---|
| gemini-guide (this) | Gemini docs -> Claude | Local docs, WebFetch |
| gemini-peer-review | Code -> Gemini | gemini-coach CLI |
| 技能 | 方向 | 工具 |
|---|---|---|
| gemini-guide(本技能) | Gemini 文档 -> Claude | 本地文档、WebFetch |
| gemini-peer-review | 代码 -> 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 — |
| 优先级 | 来源 | 适用场景 |
|---|---|---|
| 1 | 本地缓存文档( | 大多数主题——包含24个JavaScript主题、24个Python主题、7个通用主题 |
| 2 | GitHub codegen_instructions | 实时更新的SDK模式——获取 |
| 3 | 通过WebFetch获取Google AI文档 | 本地文档未覆盖的内容—— |
~/Documents/google-gemini-context/{path from topic index}~/Documents/google-gemini-context/{主题索引中的路径}| Claude Might Suggest | Correct |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| 4 safety categories | 5 categories (include |
| |
| |
| Daily rate limits | No daily limits — only per-minute (RPM, TPM) |
| Claude可能建议的写法 | 正确写法 |
|---|---|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| 4个安全类别 | 5个类别(包含 |
| |
| |
| 每日调用限制 | 无每日限制——仅存在每分钟调用限制(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"
});import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({}); // 自动读取GEMINI_API_KEY环境变量
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"
)from google import genai
client = genai.Client() # 自动读取GEMINI_API_KEY环境变量
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 |
~/Documents/google-gemini-context/| 目录 | 内容 |
|---|---|
| 24个主题文件——快速入门、函数调用、流式传输、结构化输出等 |
| 24个主题文件——与JavaScript主题一致 |
| 7个跨语言文件——安全、定价、调用限制、错误处理、认证、区域、OpenAI兼容 |
| REST端点文档 |
| 当前模型ID、功能、令牌限制、调用限制 |
| 完整修正参考(deprecated-patterns.md的数据源) |
| 全面的SDK指南(608行,包含JS和Python) |
| 关键词索引,将主题映射到对应文件 |
| 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| 模型 | ID | 适用场景 |
|---|---|---|
| Gemini 2.5 Pro | | 复杂推理、高级编码 |
| Gemini 2.5 Flash | | 大多数任务(推荐默认使用) |
| Gemini 2.5 Flash-Lite | | 低成本、低延迟 |
| Gemini 2.0 Flash | | 快速推理 |
| Text Embedding | | 语义搜索、RAG(768维度) |
~/Documents/google-gemini-context/MODELS.md~/Documents/google-gemini-context/https://ai.google.dev/gemini-api/docs/models~/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 |
| 场景 | 查阅文件 |
|---|---|
| 将查询映射到对应文档文件 | references/topic-index.md |
| 在编写代码前检查已弃用模式 | references/deprecated-patterns.md |