What problem does it solve? Setting up Cloud Firestore correctly involves provisioning databases, writing secure rules, configuring indexes, and integrating the SDK—mistakes in any step can expose data or break queries. This Skill guides you through the entire Firestore Standard Edition lifecycle with security-first defaults. ## Core Features & Use Cases - Provisioning & Configuration: Create firebase.json, firestore.rules, and firestore.indexes.json manually, deploy via Firebase CLI, and run the local emulator. - Security Rules Generation: Follows a rigorous multi-phase workflow including codebase analysis, validator function patterns, RBAC guidelines, and a devil's advocate attack phase to test rules against 21 exploit vectors. - Index Management: Explains single-field vs composite indexes, query support tables, and exemption strategies for high-write or TTL fields. - Web SDK Integration: Provides modular Web SDK (v9+) patterns for reads, writes, transactions, realtime listeners, and queries. - Use Case: You are building a web app with user-generated content and need Firestore set up with locked-down security rules that prevent privilege escalation, PII leaks, and schema pollution before launch. ## Quick Start Set up Cloud Firestore in my project with secure default rules and show me how to read and write documents from my web app.