Agent skill · Security

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.

evancagithub.com/evancaGitHub ↗
claude-codecodexcursorwindsurfMIT
Install
npx skills add evanca/flutter-ai-rules --skill firebase-database --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/firebase-database/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 604
Language: Shell

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. When to Use
  2. 1. Database Selection
  3. 2. Setup and Configuration
  4. Setup Checklist
  5. 3. Data Structure
  6. Flattened Structure Example
  7. 4. Indexing and Querying
  8. 5. Read and Write Operations
  9. 6. Designing for Scale
  10. 7. Offline Capabilities and Presence
  11. Connection State and Presence
  12. 8. Security
  13. Data Validation Example
  14. References
More from flutter-ai-rules
All skills →
About this skill
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.

Keep going