integrating-firebase · git:20260331.fee8ef2 · 2026-03-31 · sha256 031227e3ef06bbeb
integrating-firebase git:20260331.fee8ef2A
Immutable. This exact content never changes and is served at /api/v1/blob/031227e3ef06bbeb.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_ec72z5sx7nqkmaox/031227e3ef06bbeb826474b701cdf070dbc15a1426f9b069676655b9283214cd.json
Then /plugin install integrating-firebase@markdownregistry-ec72z5sx7nqkmaox in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: "flutter-firebase" description: "Firebase integration for Flutter including Auth, Firestore, FCM, Cloud Storage, Analytics, and Crashlytics. Use when implementing serverless backend features, real-time sync, or push notifications." metadata: last_modified: "2026-03-12 11:18:17 (GMT+8)" --- # Flutter with Firebase Integration Guide ## Goal Provide a production-ready, highly secure, and cost-efficient architecture for integrating Google Firebase with Flutter. This skill acts as an orchestrator pointing you to specific implementation chapters based on your current task. 🚨 **CRITICAL: READ BEFORE PROCEEDING** 🚨 Firebase is a massive ecosystem. Do not attempt to implement any of the following services without reading its corresponding chapter inside `references/` first! ## Workflow & References **1. Core Setup & Initialization (`firebase_core`)** If you are initializing Firebase for the first time, setting up the `flutterfire_cli`, or resolving native iOS/Android Firebase compilation errors, you **MUST** read: * `@[skills/flutter/firebase/references/setup.md]` **2. Authentication (`firebase_auth`)** If you are implementing login, email/password verification, social sign-ins (Google, Apple), or managing `User` sessions, you **MUST** read: * `@[skills/flutter/firebase/references/auth.md]` **3. Push Notifications (`firebase_messaging`)** If you are configuring Apple Push Notification service (APNs), handling FCM background handlers, or requesting notification permissions, you **MUST** read: * `@[skills/flutter/firebase/references/messaging.md]` **4. Databases (`cloud_firestore`, `firebase_database`)** If you are reading/writing data, defining Freezed models, or navigating NoSQL document structures (Firestore) vs JSON trees (RTDB), you **MUST** read: * `@[skills/flutter/firebase/references/database.md]` **5. File Storage (`firebase_storage`)** If you are uploading images/videos, generating download URLs, or restructuring storage `Reference` trees, you **MUST** read: * `@[skills/flutter/firebase/references/storage.md]` **6. Observability (`firebase_analytics`, `firebase_crashlytics`)** If you are logging custom analytical events, setting up global `FlutterError` and `PlatformDispatcher` error trapping, you **MUST** read: * `@[skills/flutter/firebase/references/analytics-crashlytics.md]` **7. Security (`firebase_app_check`)** If you want to protect your Firebase backend from unauthorized access using DeviceCheck (iOS) and Play Integrity (Android), you **MUST** read: * `@[skills/flutter/firebase/references/app-check.md]` **8. Advanced Architecture: Serverpod Mini BFF** If you are building a highly secure app and need to bypass Firestore Rules or protect third-party API keys (like Stripe) using a Backend-for-Frontend (BFF), you **MUST** read: * `@[skills/flutter/firebase/references/serverpod-mini.md]` **9. Pricing & Cost Optimization** If you are designing the database schema or querying massive datasets, to prevent uncontrolled Firebase billing costs, you **MUST** read: * `@[skills/flutter/firebase/references/cost.md]` ## Constraints 1. **Never hardcode configurations:** All Firebase configs MUST be generated by the `flutterfire_cli`. 2. **Review the Cost chapter:** Before designing any Firestore schema, review `09-cost.md` to avoid designing queries that lead to billing disasters.