agentleFS
wrsilvawrsilva/reis-mobile/skills/mobile-firebase/SKILL.md

mobile-firebase

Skill8 starsChanged 58 days agoMITView on GitHub

Integrates and reviews Firebase across Flutter, native Android, native iOS, React Native and Kotlin Multiplatform. Covers Auth, databases, Storage, Functions, FCM, Analytics, Crashlytics, Remote Config, App Check and KMP shared-to-platform SDK boundaries. Use for any Firebase setup, bug, security rule, emulator, configuration file or product integration.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use separate Firebase projects for development and production, selected by build flavor, scheme or configuration — not by editing the …

    line 39
  2. Distinctive:

    Keep Remote Config fetches and SDK initialization off the launch path when possible.

    line 49
  3. Very specific:

    When integrating, list the files changed, the console steps the user must do (enable a provider, upload an APNs key, create an index) and …

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mobile Firebase

One skill for Firebase on every mobile stack. This file holds what is true for every platform and product; setup, APIs and pitfalls live in the references.

For the app-wide lifecycle around Firebase APIs, use mobile-auth for identity/session transitions, mobile-notifications for token bindings and tap navigation, and mobile-privacy for consent and deletion. Open only the workflow relevant to the task.

1. Pick the references

Detect the stack first, then read the platform guide (shared setup and the product list) and only the product guides the task needs:

ProjectRead
Flutterreferences/flutter.md
Native Android (Kotlin), or the Android side of Kotlin Multiplatformreferences/android.md
Native iOS (Swift)references/ios.md
React Native or Exporeferences/react-native.md
Kotlin Multiplatform shared API and Android/iOS Firebase boundariesreferences/kotlin-multiplatform.md

In a Flutter or React Native app, native code in android/ and ios/ (a notification service, an app extension) follows the native guides.

2. Configuration files are not secrets, but they are not protection either

google-services.json, GoogleService-Info.plist and the Firebase web config identify the project; they ship inside every app and anyone can extract them. What protects data is:

  • Security rules for Firestore, Realtime Database and Storage. Rules that allow reads or writes to everyone (allow read, write: if true, or test-mode rules left in production) are a critical finding.
  • App Check, so only the genuine app calls Firebase backends and AI Logic.
  • Server-side authorization in Cloud Functions: check auth and inputs; never trust the app.
  • API key restrictions in Google Cloud for the keys in those files.

3. Environments

Use separate Firebase projects for development and production, selected by build flavor, scheme or configuration — not by editing the config file before a release. Keep production data out of debug builds and out of tests.

4. Local Emulator Suite

Develop and test against the Firebase Local Emulator Suite (Auth, Firestore, Realtime Database, Storage, Functions) instead of production. Connect each product to the emulator before its first call, only in debug builds. The Android emulator reaches the host at 10.0.2.2.

5. Cost and performance

  • Real-time listeners bill reads on every change: listen to narrow queries, paginate, and remove listeners when screens go away.
  • Offline persistence is on by default for Firestore on mobile; design UI for pending writes instead of waiting for the server.
  • Keep Remote Config fetches and SDK initialization off the launch path when possible.

6. Privacy

Analytics, Crashlytics and Messaging collect data covered by store privacy disclosures (App Store privacy details and privacy manifests, Google Play Data safety). Never send personal data (emails, names, phone numbers) as analytics parameters, crash keys or user properties, and honor consent before enabling collection where the law requires it. Event design, tracking plans and analytics identity are in mobile-analytics.

Output

When integrating, list the files changed, the console steps the user must do (enable a provider, upload an APNs key, create an index) and how to verify it works. When reviewing, report rules, App Check and privacy issues first, with file:line.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.