moai-platform-firestore

Configure Firestore offline persistence, real-time listeners, and security rules.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/hnabyz-bot/gate_drv --skill moai-platform-firestore-hnabyz-bot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-platform-firestore
Source: https://github.com/hnabyz-bot/gate_drv/tree/main/.claude/skills/moai-platform-firestore
Command: npx skills add https://github.com/hnabyz-bot/gate_drv --skill moai-platform-firestore-hnabyz-bot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the challenges of building Firestore-powered apps by enabling offline-first persistence, real-time synchronization, and secure access control.

Core Features & Use Cases

  • Real-time listeners and snapshot subscriptions for responsive UIs.
  • Offline persistence and multi-tab caching for offline-first apps.
  • Security Rules templates and cross-document validation for robust access control.

Quick Start

Use this skill to design Firestore-centric features: initialize Firestore with offline persistence, set up a real-time listener on a collection, and implement rule-based access.

Frequently Asked Questions about moai-platform-firestore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable Firestore offline persistence for mobile and web apps?

You set up Firestore offline persistence by initializing the database with multi-tab caching enabled, allowing web and mobile apps to queue writes and serve cached data locally when the network is unavailable.

How do I set up real-time listeners on a Firestore collection?

You set up real-time listeners by attaching snapshot subscriptions to a Firestore collection, which automatically pushes data changes to the UI for responsive real-time synchronization across connected clients.

Can I implement RBAC and owner-based access control with Firestore security rules?

Yes, you can implement RBAC and owner-based access control using Firestore security rules templates and cross-document validation to enforce secure data access patterns across documents and subcollections.

Does Firestore offline caching support batch writes and transactions?

Firestore offline caching fully supports batch writes and transactions, queuing them locally during network outages and synchronizing them with the server once connectivity is restored.

What is the best way to trigger Cloud Functions from Firestore document changes?

The best way to trigger Cloud Functions from Firestore document changes is to attach triggers to specific document paths or subcollections, executing backend logic automatically upon data creation, updates, or deletions.