Gemini API

Builds or debugs Google Gemini features using @google/generative-ai, covering generateContent, function calling, grounding, multimodal input, and streaming, with guidance for editing src/lib/ai/clients/google.ts.

JoshuaShepherd Updated 3 repo stars

File contents

Gemini API (Cursor)

Canonical source

.claude/skills/gemini-api/SKILL.md includes ai.google.dev links and patterns for models 2.5/3.x family features.

In Cursor

  1. Read the relevant section in the canonical skill (grounding, vision, streaming, etc.).
  2. Use WebFetch on the official Gemini docs URLs from that skill when verifying current model IDs or API shapes.
  3. Use googleClient and getGeminiModel() from src/lib/ai/clients/google.ts; never read process.env.GOOGLE_AI_API_KEY directly in feature code.

JoshuaShepherd/my-skills commit d7c73c8acd

Frequently asked questions

npx get-skill add joshuashepherd/gemini-api