firebase-database
Use when syncing real-time data, structuring JSON trees, reading/writing, creating listeners, enabling offline persistence, managing presence, sharding, or writing security rules.
npx skills add evanca/flutter-ai-rules --skill firebase-database --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Firebase Realtime Database Skill This skill defines how to correctly implement Firebase Realtime Database in Flutter applications, covering data modeling, queries, real-time sync, offline support, and security rules. ## When to Use Use this skill when working with Firebase Realtime Database for **simple data models**, **low-latency sync**, or **presence functionality**. For rich data models requiring complex queries and high scalability, use Cloud Firestore instead. --- ## 1. Database Selection Choose **Realtime Database** when the app needs: - Simple data models with simple lookups. - Extremely low-latency synchronization (typical response times under 10ms). - Deep queries that return an entire subtree by default. - Access to data at any granularity, down to individual leaf-node values. - Frequent state-syncing with built-in presence functionality. Choose **Cloud Firestore** instead for rich data models requiring queryability, scalability, and high availability. --- ## 2. Setup and Configuration ``` flutter pub add firebase_database ``` ```dart import 'package:firebase_database/firebase_database.dart'; // After Firebase.initializeApp(): final DatabaseReference ref = FirebaseData
- When to Use
- 1. Database Selection
- 2. Setup and Configuration
- Setup Checklist
- 3. Data Structure
- Flattened Structure Example
- 4. Indexing and Querying
- 5. Read and Write Operations
- 6. Designing for Scale
- 7. Offline Capabilities and Presence
- Connection State and Presence
- 8. Security
- Data Validation Example
- References
What does the firebase-database skill do?
Use when syncing real-time data, structuring JSON trees, reading/writing, creating listeners, enabling offline persistence, managing presence, sharding, or writing security rules.
How do I install it?
Run `npx skills add evanca/flutter-ai-rules --skill firebase-database --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From evanca/flutter-ai-rules, a repository with 604 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
