firebase-ai-logic-basics
Skill by tutur3u
Integrates Gemini into web and mobile apps through Firebase AI Logic client SDKs. Aimed at developers setting up AI Logic on Android, iOS, Flutter or Web.
Install firebase-ai-logic-basics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/tutur3u/platform /tmp/platform && mkdir -p ~/.claude/skills && cp -r /tmp/platform/.agents/skills/firebase-ai-logic-basics ~/.claude/skills/firebase-ai-logic-basicsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install firebase-ai-logic-basics in Claude Code
git clone --depth 1 https://github.com/tutur3u/platform /tmp/platform && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/platform/.agents/skills/firebase-ai-logic-basics ~/.gemini/antigravity-cli/skills/firebase-ai-logic-basicsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install firebase-ai-logic-basics in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Firebase AI Logic lets developers add generative AI to mobile and web apps using client-side SDKs. This skill guides an assistant to call Gemini models directly from an app without managing a dedicated backend. It covers text generation, multimodal input with images, audio, video and PDFs, multi-turn chat, streaming responses, image generation, search grounding, structured JSON output and on-device hybrid inference in Chrome.
It supports the Gemini Developer API, which has a free tier for prototyping, and the Vertex AI Gemini API for enterprise-scale production, which requires the Blaze plan. The skill recommends the Gemini Developer API as the default. It is aimed at developers building on Android, iOS, Flutter or Web who want to set up AI Logic and call Gemini from their apps.
Written from the project's SKILL.md and checked against it.
What it can do
- Text-only generationGenerates text responses from Gemini models called directly from a client app.
- Multimodal inputAnalyzes images, and audio, video or PDFs passed as inline data with a MIME type.
- Chat sessionKeeps multi-turn conversation history automatically using startChat.
- Streaming responsesShows partial results as they arrive using generateContentStream.
- Image generationGenerates images with Nano Banana models, which require the Blaze billing plan.
- Search groundingUses the built-in googleSearch tool to ground responses in search results.
- Structured outputEnforces a specific JSON schema for the model response.
- On-device hybrid inferenceSwitches between Gemini Nano on the device and cloud-hosted prompt execution in web apps.
- App Check setupPoints to App Check with reCAPTCHA Enterprise to protect API quota and backend resources.
- Remote Config model namesUpdates model version names dynamically with Firebase Remote Config without redeploying code.
What you need
- Node.js 16+ and npm
- A Firebase project
- Blaze plan for Vertex AI Gemini API
- Blaze pay-as-you-go billing for image generation
Try asking
- Add Gemini text generation to my Firebase web app using AI Logic
- Set up a streaming chat session with Gemini in my Flutter app
- Show me how to send an image to Gemini with Firebase AI Logic
Good to know
- Inline data over 20 MB can cause HTTP 413 errors and should go to Cloud Storage for Firebase.
- App Check must be set up to use AI Logic safely, according to the source.
- Older model names such as gemini-2.0-flash are shut down and should not be used.
- On-device inference requires specific steps to enable model usage in Chrome.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/firebase-ai-logic-basics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/flutter_setup.md3 KB -
references/ios_setup.md5 KB -
references/usage_patterns_android.md4 KB -
references/usage_patterns_web.md5 KB
Alternatives to firebase-ai-logic-basics
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
firebase-ai-logic-basics: common questions
Which Gemini API provider should I use?
The source says to use the Gemini Developer API as a default. Use the Vertex AI Gemini API only if the application requires it, since it requires the Blaze plan.
Why do I get PERMISSION_DENIED errors?
The source says flutterfire configure only handles client configuration and does not enable the AI service. Running npx firebase-tools init ailogic provisions the service and avoids these errors.
Do I need to hardcode model names?
No. The source recommends using Firebase Remote Config to update model versions dynamically without deploying new client code.
How do I install firebase-ai-logic-basics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is firebase-ai-logic-basics free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is firebase-ai-logic-basics safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to firebase-ai-logic-basics?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
