skills/smithery.ai/integrate-gemini

integrate-gemini

Installation
SKILL.md

integrate-gemini

Use this skill when the user wants to "connect to Gemini", "add AI features", or "fix API generation".

Requirements (from rules/gemini.md)

  1. Safety: NEVER hardcode API keys. Use import.meta.env or similar.
  2. UX: Always show Loading / Streaming states.
  3. Reliability: Handle errors gracefully (network, blocking, rate limits).
  4. Attribution: AI content must be labeled.

Usage

  1. Check for Client Library: Ensure @google/generative-ai is installed. If not, install it.
  2. Create the Hook: Create hooks/useGemini.ts (or similar).
  3. Implement Logic: Use the pattern below to handle the complexities of streaming.

Code Pattern: useGemini Hook

Installs
1
First Seen
Mar 29, 2026
integrate-gemini from smithery.ai