SkillsReviewed · firebase

Firebase AI Logic Basics

Firebase AI Logic Basics is a set of instructions for AI coding assistants that helps developers add Google's Gemini AI models to Android, iOS, web and Flutter apps through Firebase. Its examples need current model choices and careful security setup before use. It provides Firebase provisioning guidance and Kotlin, Swift, JavaScript and Dart examples, plus a detailed speech-generation reference.

Researched 13 Nov 2026

In short.

Firebase AI Logic Basics is a set of instructions for AI coding assistants that helps developers add Google's Gemini AI models to Android, iOS, web and Flutter apps through Firebase. Its examples require current model choices and consistent App Check protection before use. The supplied version is 1.0.1, with instructions for provisioning the service and implementing text, media, chat, streaming and speech features. Coverage varies by platform, some snippets omit protection settings shown elsewhere, and linked documentation is needed to complete several integrations. Nothing was executed; compilation, service behavior, model availability, performance and operating costs were not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers skills/firebase-ai-logic-basics/SKILL.md and all five supplied files in its references directory, plus the related repository LICENSE, at revision 99954a30898bb5ddc8152ee10e124dc3b4106bf7. The supplied aggregate content checksum is b8814cb5aa623e1f70e5fd1f325f3421be5f800794020b9a00b81662f4351421. Linked pages, companion skills and other folders are excluded. No separate NOTICE file was supplied. Nothing was executed, and compilation, live service behavior, security enforcement, model availability, performance and costs remain unverified.

The overview

identity

Firebase AI Logic Basics is an instruction package that an AI assistant can use while helping developers integrate Firebase AI Logic. Its metadata names Google LLC as author and declares version 1.0.1. It contains SKILL.md and five references covering Android, iOS, Web, Flutter and text-to-speech.

The original directory is [https://github.com/firebase/agent-skills/tree/main/skills/firebase-ai-logic-basics]. The supplied files are pinned to commit 99954a30898bb5ddc8152ee10e124dc3b4106bf7.

assessment

The strongest practical feature is the distinction between configuring a Firebase client and provisioning the AI service. The skill explicitly explains that existing Firebase configuration files do not enable AI Logic and documents a separate provisioning command. It also brings model selection, App Check and development-token handling into the integration guidance.

Treat the code as implementation material requiring review. Main initialization examples enable limited-use App Check tokens, while some shorter examples omit that setting. Several features depend on external documentation or unresolved model placeholders. Successful compilation and end-to-end operation are unknown.

users

The clearest audience is developers using an assistant to add Gemini features to an Android, iOS, browser or Flutter application. Beginners receive a setup sequence and basic request patterns; experienced developers get details about streaming, token configuration, structured responses and audio playback.

It assumes familiarity with the relevant application toolchain and Firebase project setup. Java and Unity/C# are mentioned as supported by the underlying product, but this directory provides no dedicated implementation reference for either. Supported assistant hosts and their installation procedures are not specified.

capabilities

The material documents text generation, media input, conversational history and streaming responses. Web examples additionally cover image generation, JSON response schemas and a preference for on-device inference. The iOS reference illustrates safety settings and function declarations, although executing a requested function and returning its result are left to the developer.

The speech reference supplies Swift, Kotlin and Web examples for voice selection, two-speaker configuration, streaming playback and conversion of raw audio into WAV. Flutter speech examples are not included. Search grounding appears only as a heading naming the built-in googleSearch tool, with no instructions, code or link; Remote Config model switching gets one paragraph and a link to Firebase documentation rather than a complete implementation.

Using it

requirements

The documented provisioning path requires Node.js 20 or newer, npm, Firebase CLI authentication, a project directory containing firebase.json and a registered Firebase app for the target platform. Application dependencies vary: Android uses the Firebase BoM and firebase-ai, iOS uses FirebaseAILogic through Swift Package Manager, Web uses the firebase package, and Flutter uses firebase_core and firebase_ai.

The Flutter example also includes Firebase Auth and anonymous sign-in; the other references do not establish that this is a universal requirement. Production App Check needs platform-specific attestation setup. The companion firebase-basics and xcode-project-setup skills are referenced but are outside the supplied material.

mechanism

The assistant reads the main instructions and the relevant platform reference, then helps provision Firebase AI Logic and add its SDK to an application. Application code initializes Firebase, selects a Gemini API provider and model, and sends requests through the client SDK. The described cloud path avoids maintaining a dedicated application backend for those model calls.

Client-side integration still involves cloud inference in the standard examples. It does not establish that speech is synthesized locally or that network latency disappears. Hybrid inference is a separate, platform-dependent path. Chat examples maintain conversation history within a session; durable storage across application restarts is not documented.

The speech reference describes complete WAV responses for non-streaming calls and raw 24 kHz, mono, 16-bit PCM chunks for streaming. Applications must queue those chunks for playback or add a WAV header when assembling them into a file. These format claims were not verified against live responses.

setup

The main sequence is to confirm the intended project with npx -y firebase-tools@latest projects:list, check registered apps with npx -y firebase-tools@latest apps:list, and provision the service with npx -y firebase-tools@latest init ailogic. Platform SDK installation and initialization follow. The Flutter reference separately uses flutterfire configure to generate client configuration.

Before adapting the examples, resolve model placeholders and dependency versions, configure production App Check, and reconcile limited-use token settings across the chosen code paths. The skill points to model documentation at [https://firebase.google.com/docs/ai-logic/models.md.txt] and App Check guidance at [https://firebase.google.com/docs/ai-logic/app-check.md.txt]; those linked pages are outside the supplied evidence.

The directory does not provide a complete assistant-host installation procedure. The application snippets also require surrounding project configuration; they are not complete applications.

example

A possible use is a browser application that lets someone choose an image and request a description. The Web reference supplies a FileReader helper that converts the image to Base64, attaches its MIME type and sends it alongside a text prompt through generateContent. The application then reads response.text().

Adapting that example requires a configured Firebase project, a supported model with image-input capability and App Check setup. No request was sent, so description accuracy, failure behavior, latency and cost are unknown.

Assessment & evidence

limitations

Protection settings are inconsistent across snippets. Main Android, iOS and Web initialization examples enable useLimitedUseAppCheckTokens, but the Android Compose, iOS safety/function-calling and speech examples do not carry that setting through. The references themselves describe possible HTTP 403 failures for protected models without limited-use tokens; whether any supplied snippet encounters that failure was not assessed.

The Web debug example reads NEXT_PUBLIC_APP_CHECK_DEBUG_TOKEN or VITE_APPCHECK_DEBUG_TOKEN into browser code. A gitignored environment file prevents committing that file, but does not keep an injected token secret from the browser receiving it. The production build's exclusion of debug tokens needs verification; no actual token disclosure is established here.

The Flutter guide calls for generated firebase_options.dart configuration but does not show using it in the initialization snippet. JSON schema construction contains a placeholder, and hybrid setup depends on external documentation. Model availability, SDK compatibility, production attestation, data handling and reliability remain unassessed.

reasoning

The resource's practical value is its consolidation of Firebase provisioning, platform SDK usage and common security configuration problems. That makes it useful when a developer has already chosen Firebase and wants an assistant to work from concrete integration patterns.

Its suitability depends on the intended feature. Basic text and chat receive direct examples across four platforms, while speech requires more application code and several advanced features rely on links. The incomplete and inconsistent examples support using it as a guided starting point; they do not establish production readiness.

alternatives

For developers who prefer direct documentation, the skill links Firebase's Getting Started guide at [https://firebase.google.com/docs/ai-logic/get-started]. That guide's contents are outside the supplied material, so its completeness relative to this skill was not assessed.

Within the documented integration, the skill favors Gemini Developer API for standard use and presents Agent Platform Gemini API as an option for enterprise requirements. It also describes hybrid inference where platform support allows it. These are implementation choices within Firebase AI Logic; no comparative evidence about competing integration tools is supplied.

evidence

The supplied source material contains the complete six-file skill directory and the repository LICENSE at the same commit. It includes implementation snippets and explanatory guidance, but no execution logs, compilation results, benchmarks or completed application journeys.

All captured file addresses are pinned beneath [https://raw.githubusercontent.com/firebase/agent-skills/99954a30898bb5ddc8152ee10e124dc3b4106bf7/]. Linked Firebase documentation, companion skills, SDK implementations and other repository folders are outside this material. Statements about live API behavior are source claims rather than observed results.

Access & freshness

costs

The supplied license grants rights to the covered skill material without a license charge. That does not establish free operation of Firebase or Gemini services.

The skill describes a free tier and pay-as-you-go access for the Gemini Developer API. It says the other provider, named Agent Platform Gemini API in the source, requires Firebase's Blaze plan, and that image generation also requires Blaze. Exact prices, free allowances, speech charges, storage charges and total operating cost are unknown from the supplied evidence.

rights

The supplied repository LICENSE is Apache License 2.0. It permits reproduction, modification and redistribution of covered material, subject to its conditions. Redistribution requires a license copy, retention of applicable source notices, prominent notices on modified files and preservation of applicable NOTICE attributions if such a file accompanies the work.

The license includes a conditional patent grant, does not generally grant trademark rights and provides the material without warranties. No separate NOTICE file is supplied. Firebase and Gemini service terms, data-use conditions and generated-output rights are not established by this skill license.

freshness

The supplied snapshot was captured on 2026-11-13 at 17:33:49.541 UTC and identifies skill version 1.0.1 at commit 99954a30898bb5ddc8152ee10e124dc3b4106bf7. The capture time does not establish the skill's publication date or last modification date.

The material depends on changing external versions: Firebase CLI and Web installation commands use latest, Android leaves the BoM version unresolved, and most model names are placeholders. The speech reference names gemini-3.1-flash-tts-preview, but its current availability is unknown. The Flutter reference also contains version-dependent App Check guidance around firebase_ai 3.11.0. Compatibility should be established for the actual dependency set.

actions

Start with the reference for the intended platform and feature. Confirm the Firebase project and registered app, complete service provisioning, choose a currently supported model and record the SDK versions used. Resolve the external companion instructions needed for the project.

Before release, configure production App Check and its enforcement, apply the required token settings consistently, and verify that debug providers and tokens are absent from release artifacts. Establish service pricing and data-handling terms for the intended provider. Then compile and exercise the actual application path, including failures and streaming or playback behavior where relevant; those outcomes are currently unknown.

Evidence for this report

LICENSEnotice · checked 2026-11-13
skills/firebase-ai-logic-basics/SKILL.mdselected · checked 2026-11-13