firebase-ai-logic-basics
Skill by Lessify
Firebase AI Logic skill helps assistants integrate Gemini models into web, mobile and Flutter apps using client-side Firebase SDKs. It is for developers who want gen AI without managing a dedicated backend.
Install firebase-ai-logic-basics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Lessify/localess /tmp/localess && mkdir -p ~/.claude/skills && cp -r /tmp/localess/.claude/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/Lessify/localess /tmp/localess && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/localess/.claude/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
This skill guides an AI assistant through adding Firebase AI Logic, which lets apps call Gemini models directly with client-side SDKs. It covers setup and initialization with the Firebase CLI, text and multimodal requests, chat sessions, streaming responses, image generation, search grounding, and structured JSON output. It also covers hybrid on-device inference in Chrome with Gemini Nano.
The source recommends the Gemini Developer API as the default provider and reserves the Vertex AI Gemini API for cases that need it. It stresses security: App Check must be set up to stop unauthorized clients from using API quota. It also suggests using Firebase Remote Config so model names can change without new client code. The skill is aimed at developers building web, Android, iOS, Flutter or Unity apps with Gemini.
Written from the project's SKILL.md and checked against it.
What it can do
- Setup and initializationGuides installing the Firebase CLI and initializing the AI Logic SDK with the init command.
- Text-only generationCovers generating text responses from Gemini models in an app.
- Multimodal inputLets Gemini analyze images, audio, video and PDFs passed as inline data with a MIME type.
- Chat sessionsKeeps multi-turn conversation history automatically using startChat.
- Streaming responsesUses generateContentStream to show partial results as they arrive.
- Image generationGenerates images with a Gemini image model, such as gemini-2.5-flash-image.
- 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 prompts in web apps.
- App Check and Remote ConfigCovers App Check setup for security and Remote Config for updating model names.
What you need
- Node.js 16+ and npm
- A Firebase project with at least one app
- Blaze pay-as-you-go plan for Vertex AI Gemini API
- Blaze plan for image generation
- Chrome browser for on-device inference
Try asking
- Set up Firebase AI Logic in my web app with Gemini
- Add image captioning to my app using Firebase AI Logic
- Return structured JSON from Gemini in my Firebase web app
Good to know
- Vertex AI Gemini API and image generation require the Blaze plan.
- Inline files larger than 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.
- Do not use gemini-1.5-flash according to the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/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.md6 KB -
references/flutter_setup.md3 KB -
references/ios_setup.md4 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 platforms does Firebase AI Logic support?
The source lists Kotlin and Java for Android, Swift for iOS, JavaScript for web, Dart for Flutter, and C Sharp for Unity.
Do I need a backend to use Firebase AI Logic?
No. The source says you can call Gemini models directly from your app without managing a dedicated backend.
Which Gemini API provider should I use?
The source says to use the Gemini Developer API by default and the Vertex AI Gemini API only if the application requires it.
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 MIT licence. The service it connects to may have its own pricing.
Is firebase-ai-logic-basics safe to use?
It scores 80 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.
