Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 80
  • 75 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-basics

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install firebase-ai-logic-basics in Claude Code

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

A

No 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 →

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.

firebase-ai-logic-basics Install

Add to stack

Loading.