firebase-ai-logic-basics

firebase-ai-logic-basics is a skill for Claude Code from pleaseai/claude-code-plugins. It costs 90 tokens per session (2,827 once invoked), scanned B, a copy of firebase-ai-logic-basics, MIT.

A guide to adding Google's Gemini AI models to web and mobile apps through Firebase AI Logic. It covers setup, multimodal requests that use text and other media, and structured results in a defined format.

In plain words
What is it for?
Connect a web or mobile app to Gemini, send text or multimodal requests, and receive results in a predictable structure.
Why use it?
It avoids requiring you to build and operate a separate backend just to call Gemini from an app. It also explains the available API providers and security considerations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents).

Part of the firebase plugin — 13 skills shipped together

Good fit Connect a web or mobile app to Gemini, send text or multimodal requests, and receive results in a predictable structure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pleaseai/claude-code-plugins/firebase-ai-logic-basics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pleaseai/claude-code-plugins --skill firebase-ai-logic-basics
Clone the repo
git clone --depth 1 https://github.com/pleaseai/claude-code-plugins

Made for: Claude Code.

Or install firebase, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for firebase-ai-logic-basics

README.md
[![agentmods](https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/firebase-ai-logic-basics/github.svg)](https://agentmods.dev/skills/pleaseai/claude-code-plugins/firebase-ai-logic-basics)
Your own site
<a href="https://agentmods.dev/skills/pleaseai/claude-code-plugins/firebase-ai-logic-basics"><img src="https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/firebase-ai-logic-basics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for firebase-ai-logic-basics

Your own site · 80×15
<a href="https://agentmods.dev/skills/pleaseai/claude-code-plugins/firebase-ai-logic-basics"><img src="https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/firebase-ai-logic-basics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.02827
Opus 5.5 $0.00036 $0.01131
Sonnet 5.5 $0.00018 $0.00565
Haiku 4.5 $0.00009 $0.00283

Measured 28d ago against content hash 44680ac433e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

firebase-ai-logic-basics scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

system packages yourself, for example with `sudo apt-get`, because that
Origin

This is a copy

100% identical to firebase-ai-logic-basics — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/firebase/.agents/skills/firebase-ai-logic-basics/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Firebase AI Logic Basics

Overview

Firebase AI Logic is a product of Firebase that allows developers to add gen AI to their mobile and web apps using client-side SDKs. The app can directly call Gemini models via Firebase AI Logic without the developer needing to manage a dedicated backend. Firebase AI Logic was previously known as "Vertex AI for Firebase".

It supports the two Gemini API providers:

  • Gemini Developer API: It has a free tier ideal for prototyping, and pay-as-you-go for production
  • Agent Platform Gemini API (formerly branded Vertex AI): Ideal for scale with enterprise-grade production readiness, requires Blaze pricing plan

Use the Gemini Developer API as a default, and only Agent Platform Gemini API (formerly branded Vertex AI) if the application requires it.


Setup & initialization

Prerequisites

  • Identify the platform the user is interested in building on prior to starting: Android, iOS, Web, or Flutter.
  • If their platform is unsupported, Direct the user to Firebase Docs to learn how to set up AI Logic for their application (share this link with the user https://firebase.google.com/docs/ai-logic/get-started)
  • The Firebase CLI commands below run through npx on every platform, so they need Node.js 20+ and npm. Use the firebase-basics skill to check for them and to log in to the Firebase CLI. If Node.js is missing or older than version 20, ask the user to install it as that skill describes. Don't install system packages yourself, for example with sudo apt-get, because that changes the user's machine without their consent.

1. Provision Firebase AI Logic (ALL platforms)

Use the Firebase CLI to provision Firebase AI Logic for the Firebase Project:

  1. Make sure that you're in a firebase directory (with a firebase.json).

  2. Verify that you're running Firebase CLI commands against the intended Firebase Project. When you run this command, the active project is marked with "current":

Read the full file on GitHub · 296 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +6 lines 44680ac433e4
  2. 1mo ago Changed · +85 lines · +54 tokens per session scan A → B a9fc73533c29
  3. 2mo ago Changed · -3 lines c059340c2d15
  4. 2mo ago First seen · 208 lines · 36 tokens per session scan A f19b7e457259

Subscribe to this mod's changes

firebase-ai-logic-basics is a skill published in the GitHub repository pleaseai/claude-code-plugins (17 stars, last pushed yesterday), licensed MIT. It adds 90 tokens to every session and 2,827 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). It is 100% identical to firebase-ai-logic-basics, differing in 0 lines, and is treated as a copy.

Related

firebase-ai-logic-basics compared with skills from other repositories

firebase-ai-logic-basics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
firebase-ai-logic-basicspleaseai/claude-code-pluginsSkill17yesterdayMITB90Claude Code
agent-platform-model-registrygoogle/skillsSkill25ktodayApache-2.0A60Claude Code, Codex
llm-evaluationsickn33/agentic-awesome-skillsSkill51ktodayMITA25Claude Code
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill25ktodayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill20kyesterdayMITA35Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.2ktodayApache-2.0A92Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill4.2ktodayApache-2.0A30Claude Code