firebase-ai-logic
Skill by aiskillstore
firebase-ai-logic is a skill that guides an assistant through integrating Firebase AI Logic (the Gemini API) into web apps. It covers setup, multimodal inference, structured output, and security for developers using client-side SDKs.
Install firebase-ai-logic
Built from the published package, never by AI.
git clone --depth 1 https://github.com/aiskillstore/marketplace /tmp/marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/marketplace/skills/firebase/firebase-ai-logic ~/.claude/skills/firebase-ai-logicRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/aiskillstore/marketplace /tmp/marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/marketplace/skills/firebase/firebase-ai-logic ~/.gemini/antigravity-cli/skills/firebase-ai-logicAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
firebase-ai-logic is a skill that helps an AI assistant integrate Firebase AI Logic into web applications. Firebase AI Logic was previously called Vertex AI for Firebase. It lets developers call Gemini models directly from client-side SDKs without managing a dedicated backend. The skill covers setup with the Firebase CLI, multimodal inference, chat sessions, streaming responses, structured JSON output, and security.
The skill describes two Gemini API providers. The Gemini Developer API has a free tier for prototyping and pay-as-you-go pricing for production. The Vertex AI Gemini API suits large scale and requires the Blaze plan. The skill recommends the Gemini Developer API as the default. It also recommends enabling Firebase App Check and using Remote Config so model names can change without new client code. It is aimed at developers building web apps that use Gemini.
Written from the project's SKILL.md and checked against it.
What it can do
- Multimodal inferenceLets Gemini analyze images, and audio, video, or PDF files passed as inline data with a MIME type.
- Chat sessionsMaintains multi-turn conversation history automatically using startChat.
- Streaming responsesShows partial results as they arrive using generateContentStream instead of generateContent.
- Structured outputEnforces a specific JSON schema for the model response.
- Image generationGenerates images with Gemini image models, or Imagen for specialized style tasks.
- Search groundingUses the built-in googleSearch tool to ground responses in search results.
- On-device hybrid inferenceSwitches between Gemini Nano on the device and cloud-hosted prompts in web apps.
- App Check setupRecommends Firebase App Check to stop unauthorized clients from using API quota.
- Remote Config model namesUpdates Gemini model versions dynamically without deploying new client code.
What you need
- Node.js 16 or later
- npm
- A Firebase project
- Blaze pay-as-you-go plan for Vertex AI and image generation
Try asking
- Add Gemini to my Firebase web app and show a text generation example
- Use Firebase AI Logic to caption an uploaded image in my web app
- Return Gemini output as structured JSON using a schema in my web app
Good to know
- Inline data over 20 MB can cause HTTP 413 errors, so store larger files in Cloud Storage for Firebase.
- On-device inference needs specific Chrome browser steps to enable model usage.
- Image generation and the Vertex AI Gemini API require the Blaze plan.
- The skill only covers Android, iOS, Flutter, and Web platforms, and points to the Firebase docs for others.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/firebase/firebase-ai-logic/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to firebase-ai-logic
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
firebase-ai-logic: common questions
Which Gemini API provider should I use with firebase-ai-logic?
The skill says to use the Gemini Developer API as a default. Use the Vertex AI Gemini API only if the application requires it.
How do I handle files larger than 20 MB?
The source says to store files larger than 20 megabytes in Cloud Storage for Firebase and pass their URLs to the Gemini Developer API.
Which Gemini model does the skill recommend?
The skill says to use the most recent Gemini version, gemini-flash-latest, unless the docs or user request another model. It says not to use gemini-1.5-flash.
How do I install firebase-ai-logic?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is firebase-ai-logic free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is firebase-ai-logic safe to use?
It scores 70 of 100. Grades: maintenance A, licence F, quality A. 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?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
