CtrlK
BlogDocsLog inGet started
Tessl Logo

firebase-ai-logic

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

1.15x
Quality

77%

Does it follow best practices?

Impact

95%

1.15x

Average score across 3 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Optimize this skill with Tessl

npx tessl skill review --optimize ./.agent-skills/firebase-ai-logic/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

100%

37%

AI-Powered Recipe Suggestion Feature

Firebase AI SDK setup and text generation

Criteria
Without context
With context

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%

91%

-2%

Real-Time AI Writing Assistant

Streaming responses, rate limiting, and caching

Criteria
Without context
With context

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%

95%

4%

Product Photo Analysis for a Marketplace App

Multimodal image analysis and Firestore security rules

Criteria
Without context
With context

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%

Repository
supercent-io/skills-template
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.