agentsclimarketplace

Firebase

Skill G1Joshi/Agent-Skills/skills/databases/firebase

Firebase Realtime Database and Firestore for mobile/web sync. Use for real-time apps.From its SKILL.md

Install
npx -y skills add G1Joshi/Agent-Skills --skill firebase

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, 369 tokens by cl100k_base, as published. Nobody here has run it

Firebase (Firestore & Realtime Database)

Firebase provides two NoSQL databases:

  1. Cloud Firestore: The newer, recommended scalable database.
  2. Realtime Database: The original low-latency JSON tree sync.

When to Use

  • Mobile Apps: Best-in-class integration with Android/iOS/Flutter.
  • Realtime Sync: Chat apps, live dashboards.
  • Offline Support: Outstanding offline SDK capabilities.

Quick Start (Firestore)

import { getFirestore, collection, addDoc } from "firebase/firestore";

const db = getFirestore(app);

// Add document
await addDoc(collection(db, "users"), {
  first: "Ada",
  last: "Lovelace",
  born: 1815,
});

Core Concepts

Security Rules

Since you access Firebase from the client, you write JSON-like rules to secure it.

service cloud.firestore {
  match /databases/{database}/documents {
    match /users/{userId} {
      allow read, write: if request.auth.uid == userId;
    }
  }
}

Realtime Updates

Listeners (onSnapshot) keep UI in sync automatically.

Best Practices (2025)

Do:

  • Use Firestore Preferentially: It queries and scales better than Realtime DB.
  • Use Cloud Functions: For backend logic (sending emails, sanitizing text) triggered by DB events.
  • Denormalize: Duplicate data to avoid excessive reads (No joins in Firestore).

Don't:

  • Don't use sequential keys: Use auto-generated IDs.
  • Don't ignore index limits: Firestore requires composite indexes for sorting/filtering on multiple fields.

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.