Firebase
Firebase Realtime Database and Firestore for mobile/web sync. Use for real-time apps.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill firebaseAssembled 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:
- Cloud Firestore: The newer, recommended scalable database.
- 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.