Integrate Firebase AI Logic (Gemini in Firebase) for intelligent app features. Use when adding AI capabilities to Firebase apps, implementing generative AI features, or setting up Firebase AI SDK. Handles Firebase AI SDK setup, prompt engineering, and AI-powered features.
83
77%
Does it follow best practices?
Impact
95%
1.15xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./.agent-skills/firebase-ai-logic/SKILL.mdFirebase AI SDK setup and text generation
Firebase package listed
100%
100%
@anthropic-ai/sdk package listed
0%
100%
Import from firebase/ai
100%
100%
getAI initialization
100%
100%
getGenerativeModel call
100%
100%
gemini-2.0-flash model
100%
100%
generateContent pattern
100%
100%
client.ts file
0%
100%
prompts.ts file
50%
100%
handlers.ts file
0%
100%
No hardcoded API key
100%
100%
Input validation
0%
100%
Error handling fallback
42%
100%
Streaming responses, rate limiting, and caching
generateContentStream used
100%
100%
Async iteration over stream
100%
100%
chunk.text() called
100%
100%
Rate limiter present
100%
100%
Rate limit per user
100%
100%
No unlimited API calls
100%
100%
Cache implementation
100%
100%
Cache lookup before AI call
100%
100%
Error handling in streaming
22%
0%
No hardcoded API key
100%
100%
Multimodal image analysis and Firestore security rules
inlineData structure
100%
100%
Base64 data field
100%
100%
mimeType field
100%
100%
generateContent with array
100%
100%
firestore.rules file present
100%
100%
ai_logs read rule
100%
100%
ai_logs create rule
100%
100%
No sensitive data to AI
100%
100%
No hardcoded API key
100%
100%
Error handling fallback
0%
44%
c033769
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.