要点
Cloud Firestore database setup, configuration, and query execution across Standard and Enterprise editions.
- Detects existing Firestore instances and their editions, then routes to appropriate guides for Standard or Enterprise configurations
- Covers database provisioning, security rules, data modeling, SDK integration across web, Android, iOS, and Flutter platforms, and index management
- Defaults to Enterprise edition for new databases and supports location selection with resource colocation recommendations
- Works with Firebase CLI but does not require it as a prerequisite
SKILL.md
Cloud Firestore Database and Operations
[!IMPORTANT] Security Rules Authoring (
firestore.rules) Whenever your task requires creating, authoring, or modifyingfirestore.rules:
- If subagent delegation AND the
firestore-rules-authorsubagent are available: delegate authoringfirestore.rulesto thefirestore-rules-authorsubagent rather than writingfirestore.rulesdirectly in the main agent.- If subagent delegation is unavailable (e.g., subagents not enabled in the IDE) OR
firestore-rules-authoris not installed: read and follow thefirestore-rules-creationskill to writefirestore.rulesdirectly.
Before setting up dependencies, writing data models, or configuring security rules, you MUST always identify the Firestore instance edition.
1. Instance Selection and Edition Detection
Run the following command to list current Firestore databases: