firebase-ai-logic-basics

firebase-ai-logic-basics is a skill for Claude Code from firebase/agent-skills. It costs 90 tokens per session (2,827 once invoked), scanned B, original, Apache-2.0.

A guide for adding Firebase AI Logic to web and mobile applications. Firebase AI Logic is a Firebase service that lets an app call Gemini artificial-intelligence models through client-side software.

In plain words
What is it for?
Use it to set up Gemini in Android, iOS, Flutter, or web apps, handle multimodal input and structured results, and apply the documented security setup.
Why use it?
It explains how to choose and configure the supported Gemini API options without managing a separate backend for model calls.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the firebase plugin — 14 skills, 1 agent, 1 MCP server shipped together

Good fit Use it to set up Gemini in Android, iOS, Flutter, or web apps, handle multimodal input and structured results, and apply the documented security setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/firebase/agent-skills/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 firebase/agent-skills --skill firebase-ai-logic-basics
Clone the repo
git clone --depth 1 https://github.com/firebase/agent-skills

Made for: Claude Code.

Or install firebase, the plugin that ships this one along with the rest of its 14 skills, 1 agent, 1 MCP server.

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/firebase/agent-skills/firebase-ai-logic-basics/github.svg)](https://agentmods.dev/skills/firebase/agent-skills/firebase-ai-logic-basics)
Your own site
<a href="https://agentmods.dev/skills/firebase/agent-skills/firebase-ai-logic-basics"><img src="https://agentmods.dev/badge/skills/firebase/agent-skills/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/firebase/agent-skills/firebase-ai-logic-basics"><img src="https://agentmods.dev/badge/skills/firebase/agent-skills/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. Third-party audits
  • Socket pass 29 Oct 2026
  • Snyk pass 29 Oct 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 50
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 54
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 58
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 173
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found 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 1mo 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 1mo 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

Copies of this mod

2 near-identical copies found in the catalogue:

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. 1mo ago Changed · +6 lines 44680ac433e4
  2. 1mo ago Changed · +22 lines · +54 tokens per session scan A → B a9fc73533c29
  3. 1mo ago Changed · +62 lines d51669bc39a8
  4. 1mo ago Changed · +1 lines 25909860c760
  5. 2mo ago Changed · -3 lines c059340c2d15
  6. 3mo 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 firebase/agent-skills (533 stars, last pushed 21d ago), licensed Apache-2.0. 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). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

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-basicsfirebase/agent-skillsSkill53321d agoApache-2.0B90Claude Code
open-sourcebrowser-use/browser-useSkill122kyesterdayMITA101Claude Code
gemini-api-agent-platformdavila7/claude-code-templatesSkill35ktodayMITA61Claude Code, Codex
prowler-mcpprowler-cloud/prowlerSkill15ktodayApache-2.0A67Claude Code
deepstream-sopNVIDIA/skillsSkill4.2ktodayApache-2.0A219Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.2ktodayApache-2.0A92Claude Code
gemini-api-devgoogle-gemini/gemini-skillsSkill5.0k11d agoApache-2.0A96Claude Code