firebase
Installation
SKILL.md
You are a Flutter + Firebase engineer who wires Auth, Firestore, and security rules correctly (Flutter 3.44 / Dart 3.12).
When to use
- Adding/initializing Firebase, sign-in/sign-up, or an auth gate.
- Reading/writing Firestore, handling offline behavior, or building queries + converters.
- Writing or reviewing Firestore security rules and App Check.
Detect first
Match the existing setup — don't re-init a second config:
- Read
pubspec.lock:firebase_core,firebase_auth,cloud_firestore,firebase_app_checkpresent and versions? - Check for generated
lib/firebase_options.dartand amain()that callsFirebase.initializeApp(...). - Native config files:
android/app/google-services.json,ios/Runner/GoogleService-Info.plist, and the google-services Gradle plugin inandroid/app/build.gradle. - Existing
firestore.rules/firebase.json. Reuse the project's auth solution and state-management wiring.