agentleFS
geevarghesekthomas84-sysgeevarghesekthomas84-sys/android-ai-engineering-system/skills/firebase-supabase-engineer/SKILL.md

firebase-supabase-engineer

Skill4 starsChanged 39 days agoMITView on GitHub

Firebase and Supabase integration for Android apps including authentication, Firestore, Realtime Database, Cloud Storage, Cloud Functions, Supabase PostgreSQL, and real-time subscriptions

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Configure Project: - Create project in console, download config files, add SDKs

    line 65
  2. Distinctive:

    Integrate SDK: - Add dependencies to build.gradle.kts, initialize in Application class

    line 66
  3. Distinctive:

    Secure Rules: - Write Firestore security rules or Supabase RLS policies

    line 68
  4. Distinctive:

    Test: - Use Firebase Emulator Suite or Supabase local dev for testing

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

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)

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)

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

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.