<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
geevarghesekthomas84-sys/android-ai-engineering-system/firebase-supabase-engineer
──Details
PublishedOctober 24, 2026 at 11:43 AM
Content Hashsha256:f737fb0f2f65f43a...
Git SHA06aae165c66a
──Files
Files (1 file, 6.5 KB)
SKILL.md6.5 KBactive
SKILL.md · 138 lines · 6.5 KB

version: "1.0.0" name: firebase-supabase-engineer description: Firebase and Supabase integration for Android apps including authentication, Firestore, Realtime Database, Cloud Storage, Cloud Functions, Supabase PostgreSQL, and real-time subscriptions metadata: author: Custom keywords:

  • firebase
  • supabase
  • firestore
  • authentication
  • cloud-functions
  • realtime
  • storage
  • analytics

Firebase & Supabase Engineering Skill

Trigger Conditions

Activate this skill when the task involves any of:

  • Setting up Firebase or Supabase in an Android/Kotlin project
  • Implementing authentication (email/password, OAuth, phone, anonymous, MFA)
  • Cloud database operations (Firestore, Realtime Database, Supabase PostgreSQL)
  • File storage (Firebase Storage, Supabase Storage)
  • Push notifications (FCM setup, notification channels, topic messaging)
  • Analytics and crash reporting (Firebase Analytics, Crashlytics)
  • Serverless functions (Cloud Functions, Supabase Edge Functions)
  • Real-time data synchronization or subscriptions
  • Security rules (Firestore rules, Supabase RLS policies)
  • Remote Config, App Check, or A/B testing setup
  • Backend-as-a-Service architecture decisions

Capabilities

Firebase

ServiceDescription
Firebase AuthEmail/password, Google Sign-In, phone, anonymous, Apple, custom tokens, multi-factor authentication
Cloud FirestoreNoSQL document database with real-time sync, offline persistence, compound queries
Realtime DatabaseJSON tree database with low-latency sync, presence system, fan-out data model
Cloud StorageFile uploads/downloads with security rules, resumable uploads, metadata management
Cloud FunctionsNode.js/TypeScript serverless functions triggered by HTTP, Firestore, Auth, Storage, Pub/Sub, scheduled
Cloud Messaging (FCM)Push notifications, topic messaging, data messages, notification channels
AnalyticsEvent logging, user properties, audience segmentation, BigQuery export
CrashlyticsCrash reporting, non-fatal error logging, custom keys, breadcrumbs
Remote ConfigServer-side feature flags, A/B testing, gradual rollouts
App CheckApp attestation to protect backend resources from abuse

Supabase

ServiceDescription
Supabase AuthEmail/password, OAuth providers, magic links, phone OTP, session management
PostgreSQLFull Postgres with PostgREST API, views, functions, triggers, extensions
RealtimeWebSocket subscriptions for INSERT/UPDATE/DELETE on any table
StorageS3-compatible object storage with RLS, signed URLs, image transformations
Edge FunctionsDeno-based serverless functions deployed globally

Workflow

  1. Choose Platform - Evaluate Firebase vs Supabase based on project requirements
  2. Configure Project - Create project in console, download config files, add SDKs
  3. Integrate SDK - Add dependencies to build.gradle.kts, initialize in Application class
  4. Implement Features - Auth flows, database operations, storage, functions
  5. Secure Rules - Write Firestore security rules or Supabase RLS policies
  6. Test - Use Firebase Emulator Suite or Supabase local dev for testing
  7. Monitor - Set up Analytics, Crashlytics, performance monitoring

Firebase vs Supabase Decision Guide

FactorFirebaseSupabase
Database ModelNoSQL (document)Relational (PostgreSQL)
Query ComplexityLimited joins, denormalized dataFull SQL, joins, views, CTEs
Real-timeBuilt-in snapshot listenersWebSocket channel subscriptions
Auth Providers10+ built-in providersOAuth, email, phone, magic link
Offline SupportBuilt-in persistenceManual caching required
PricingPay-per-read/write, generous free tierPredictable per-project pricing
Vendor Lock-inHigh (proprietary)Low (open-source, self-hostable)
ScalingAutomatic, managedManaged or self-hosted
Functions RuntimeNode.js 18/20Deno (Edge Functions)
Best ForRapid prototyping, mobile-first, real-time appsComplex data models, SQL familiarity, open-source preference

Choose Firebase when: You need deep Android integration, built-in offline support, FCM push notifications, Crashlytics, or Remote Config. Best for apps with simple data models and heavy real-time requirements.

Choose Supabase when: Your data model is relational, you need complex queries/joins, you want SQL access, you prefer open-source, or you need predictable pricing. Best for apps with structured data and existing PostgreSQL knowledge.

SDK Setup Quick Reference

Firebase (build.gradle.kts - app level)

kotlin
plugins {
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
}
dependencies {
implementation(platform("com.google.firebase:firebase-bom:33.7.0"))
implementation("com.google.firebase:firebase-auth-ktx")
implementation("com.google.firebase:firebase-firestore-ktx")
implementation("com.google.firebase:firebase-storage-ktx")
implementation("com.google.firebase:firebase-messaging-ktx")
implementation("com.google.firebase:firebase-analytics-ktx")
implementation("com.google.firebase:firebase-crashlytics-ktx")
implementation("com.google.firebase:firebase-config-ktx")
implementation("com.google.firebase:firebase-appcheck-playintegrity")
}

Supabase (build.gradle.kts - app level)

kotlin
dependencies {
implementation(platform("io.github.jan-tennert.supabase:bom:3.1.1"))
implementation("io.github.jan-tennert.supabase:postgrest-kt")
implementation("io.github.jan-tennert.supabase:auth-kt")
implementation("io.github.jan-tennert.supabase:storage-kt")
implementation("io.github.jan-tennert.supabase:realtime-kt")
implementation("io.github.jan-tennert.supabase:functions-kt")
implementation("io.ktor:ktor-client-android:3.1.1")
}

Reference Files

  • references/firebase-auth.md - Authentication patterns and Compose integration
  • references/firestore.md - Firestore data model, queries, security rules
  • references/supabase-integration.md - Supabase-kt SDK, PostgreSQL, Realtime, RLS
  • references/cloud-storage.md - Firebase Storage and Supabase Storage operations
  • references/cloud-functions.md - Cloud Functions and Edge Functions
  • references/push-analytics.md - FCM, Analytics, Crashlytics
  • references/security-rules.md - Firestore rules and Supabase RLS policies
All versions