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.
npx skills add firebase/agent-skills --skill firebase-ai-logic-basicsgit clone --depth 1 https://github.com/firebase/agent-skillsWrote 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.
[](https://agentmods.dev/skills/firebase/agent-skills/firebase-ai-logic-basics)<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.
<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>- Socket pass
- Snyk pass
- NVIDIA SkillSpector warn
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]
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.
| Model | Per session | Once 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 |
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 Copies of this mod
2 near-identical copies found in the catalogue:
- firebase-ai-logic-basics — 100% identical, 0 lines differ
- firebase-ai-logic-basics — 86% identical, 230 lines differ
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
npxon every platform, so they need Node.js 20+ and npm. Use thefirebase-basicsskill 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 withsudo 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:
-
Make sure that you're in a firebase directory (with a
firebase.json). -
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":
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.
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.
- 1mo ago Changed · +6 lines 44680ac433e4
- 1mo ago Changed · +22 lines · +54 tokens per session scan A → B a9fc73533c29
- 1mo ago Changed · +62 lines d51669bc39a8
- 1mo ago Changed · +1 lines 25909860c760
- 2mo ago Changed · -3 lines c059340c2d15
- 3mo ago First seen · 208 lines · 36 tokens per session scan A f19b7e457259
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.
firebase-ai-logic-basics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| firebase-ai-logic-basicsfirebase/agent-skills | Skill | 533 | 21d ago | Apache-2.0 | B | 90 | Claude Code |
| open-sourcebrowser-use/browser-use | Skill | 122k | yesterday | MIT | A | 101 | Claude Code |
| gemini-api-agent-platformdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 61 | Claude Code, Codex |
| prowler-mcpprowler-cloud/prowler | Skill | 15k | today | Apache-2.0 | A | 67 | Claude Code |
| deepstream-sopNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 219 | Claude Code |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 92 | Claude Code |
| gemini-api-devgoogle-gemini/gemini-skills | Skill | 5.0k | 11d ago | Apache-2.0 | A | 96 | Claude Code |