{"id":12730,"plugin_id":"plugins_6a8ddf314ab88191864c208fda197798","kind":"skill","collection_source":null,"comparison_source":null,"observed_at":"2026-09-30T23:02:05.927Z","digest":"aa9f60dc40bfca829956c4ec2b524521d92c6c691d6b9d5f3f1742b1cfb92c11","against":null,"payload":{"name":"firebase-firestore","description":"Sets up, manages, queries, and configures Cloud Firestore databases (Standard/Enterprise edition), including data modeling, security rules, indexes, and SDK integrations (Web, Python, iOS, Android, Flutter). Use when creating/listing Firestore databases, defining data models/indexes, writing SDK queries, or integrating Firestore SDKs. Don't use for Firebase Hosting, Data Connect, Auth, Storage/GCS, Crashlytics, Functions, or BigQuery.","included_files":[{"relative_path":"references/enterprise/android_sdk_usage.md","size_in_bytes":8755},{"relative_path":"references/enterprise/data_model.md","size_in_bytes":2880},{"relative_path":"references/enterprise/flutter_setup.md","size_in_bytes":4761},{"relative_path":"references/enterprise/indexes.md","size_in_bytes":4936},{"relative_path":"references/enterprise/ios_setup.md","size_in_bytes":5970},{"relative_path":"references/enterprise/provisioning.md","size_in_bytes":3257},{"relative_path":"references/enterprise/python_sdk_usage.md","size_in_bytes":2946},{"relative_path":"references/enterprise/security_rules.md","size_in_bytes":26681},{"relative_path":"references/enterprise/web_sdk_usage.md","size_in_bytes":4264},{"relative_path":"references/standard/android_sdk_usage.md","size_in_bytes":5185},{"relative_path":"references/standard/flutter_setup.md","size_in_bytes":4612},{"relative_path":"references/standard/indexes.md","size_in_bytes":4455},{"relative_path":"references/standard/ios_setup.md","size_in_bytes":5376},{"relative_path":"references/standard/provisioning.md","size_in_bytes":2901},{"relative_path":"references/standard/security_rules.md","size_in_bytes":26681},{"relative_path":"references/standard/web_sdk_usage.md","size_in_bytes":4547}],"skill_md_contents":"---\nname: firebase-firestore\ndescription: >-\n  Sets up, manages, queries, and configures Cloud Firestore databases (Standard/Enterprise edition), including data modeling, security rules, indexes, and SDK integrations (Web, Python, iOS, Android, Flutter). Use when creating/listing Firestore databases, defining data models/indexes, writing SDK queries, or integrating Firestore SDKs. Don't use for Firebase Hosting, Data Connect, Auth, Storage/GCS, Crashlytics, Functions, or BigQuery.\ncompatibility: This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.\nmetadata:\n  category: Databases\n---\n\n# Cloud Firestore Database and Operations\n\nBefore setting up dependencies, writing data models, or configuring security\nrules, you MUST always identify the Firestore instance edition.\n\n## 1. Instance Selection and Edition Detection\n\nRun the following command to list current Firestore databases:\n`bash npx -y firebase-tools@latest firestore:databases:list`\n\n### A. Instance Found\n\n1. For each database found, inspect its edition and details:\n   `bash npx -y firebase-tools@latest firestore:databases:get <database-id>`\n1. Ask the user which database instance they wish to target or if they would\n   prefer to create a new instance.\n1. Once the target instance is established:\n   - If the **`edition`** is `STANDARD`, follow the guides under\n     `references/standard/`.\n   - If the **`edition`** is `ENTERPRISE` or native mode, follow the guides\n     under `references/enterprise/`.\n\n### B. No Instance Found (or New Requested)\n\nIf no databases exist or the user requests a new one, default to provisioning an\n**Enterprise** edition database and ask the user what location to use. Run\n`npx -y firebase-tools@latest firestore:locations` to get the list of options.\nSuggest colocating with other resources if applicable.\n\nOnce the location is determined, create the database:\n`bash npx -y firebase-tools@latest firestore:databases:create <database-id> --edition=\"enterprise\" --location=\"<selected-location>\"`\n\nProceed with using the guides under `references/enterprise/`.\n\n______________________________________________________________________\n\n## 2. Specialized Guides\n\nBased on the identified or created instance edition, open and read the\ncorresponding reference guides:\n\n### Standard Edition (`references/standard/`)\n\n- **Provisioning**: Read [provisioning.md](references/standard/provisioning.md)\n- **Security Rules**: Read\n  [security_rules.md](references/standard/security_rules.md)\n- **SDK Usage**: Read [web_sdk_usage.md](references/standard/web_sdk_usage.md),\n  [android_sdk_usage.md](references/standard/android_sdk_usage.md),\n  [ios_setup.md](references/standard/ios_setup.md), or\n  [flutter_setup.md](references/standard/flutter_setup.md)\n- **Indexes**: Read [indexes.md](references/standard/indexes.md)\n\n### Enterprise Edition / Native Mode (`references/enterprise/`)\n\n- **Provisioning**: Read\n  [provisioning.md](references/enterprise/provisioning.md)\n\n- **Data Model**: Read [data_model.md](references/enterprise/data_model.md)\n\n- **Security Rules**: Read\n  [security_rules.md](references/enterprise/security_rules.md)\n\n- **SDK Usage**:\n\n  > [!CRITICAL] **Mandatory Reference Reading** Before writing or modifying any\n  > application code for Firestore Enterprise Edition, you **MUST** read at\n  > least one of the relevant reference documents below for the target\n  > platform/language to understand specific architectural requirements and\n  > pipeline initialization patterns.\n\n  Read [web_sdk_usage.md](references/enterprise/web_sdk_usage.md),\n  [python_sdk_usage.md](references/enterprise/python_sdk_usage.md),\n  [android_sdk_usage.md](references/enterprise/android_sdk_usage.md),\n  [ios_setup.md](references/enterprise/ios_setup.md), or\n  [flutter_setup.md](references/enterprise/flutter_setup.md)\n\n- **Indexes**: Read [indexes.md](references/enterprise/indexes.md)\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}