What problem does it solve? Designing a Firestore database without clear patterns leads to slow queries, oversized documents, and insecure data access. This Skill provides proven patterns for data modeling, real-time synchronization, and security rules so your Firebase backend stays performant and protected. ## Core Features & Use Cases - CRUD & Real-time Sync: Code patterns for reading, writing, updating, and deleting documents, plus onSnapshot listeners with proper cleanup. - Query & Index Guidance: Compound queries with where, orderBy, and limit, along with composite index and offline persistence advice. - Security Rules: Templates for authentication checks and data validation in Firestore security rules, with emulator-based testing guidance. - Use Case: When building a chat or social app backend, use this Skill to model subcollections correctly, enforce per-user write access, and avoid the 1MB document limit. ## Quick Start Use the firestore_patterns skill to design the data model and write security rules for my Firebase app.