12 chapters · 25 min
Skills
Chapter 8 of 12
Sets up, manages, queries, and configures Cloud Firestore databases (Standard/Enterprise edition), including data modeling, security rules, indexes, and SDK integrations (Web…
1 minute · 248 words · 7 sections
Before setting up dependencies, writing data models, or configuring security rules, you MUST always identify the Firestore instance edition.
Run the following command to list current Firestore databases:
bash npx -y firebase-tools@latest firestore:databases:list
bash npx -y firebase-tools@latest firestore:databases:get <database-id>edition is STANDARD, follow the guides under
references/standard/.edition is ENTERPRISE or native mode, follow the guides
under references/enterprise/.If no databases exist or the user requests a new one, default to provisioning an
Enterprise edition database and ask the user what location to use. Run
npx -y firebase-tools@latest firestore:locations to get the list of options.
Suggest colocating with other resources if applicable.
Once the location is determined, create the database:
bash npx -y firebase-tools@latest firestore:databases:create <database-id> --edition="enterprise" --location="<selected-location>"
Proceed with using the guides under references/enterprise/.
Based on the identified or created instance edition, open and read the corresponding reference guides:
references/standard/)references/enterprise/)Provisioning: Read provisioning.md (opens in a new tab)
Data Model: Read data_model.md (opens in a new tab)
Security Rules: Read security_rules.md (opens in a new tab)
SDK Usage:
[!CRITICAL] Mandatory Reference Reading Before writing or modifying any application code for Firestore Enterprise Edition, you MUST read at least one of the relevant reference documents below for the target platform/language to understand specific architectural requirements and pipeline initialization patterns.
Read web_sdk_usage.md, , , , or
Install this repository
npx skills add firebase/agent-skills/plugin marketplace add firebase/agent-skillsSkills install per repository, not per chapter — the CLI has no documented per-skill form, so we do not print one.
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.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
skills/firebase-firestore/SKILL.mdmain, last pushed 6 August 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by Firebase, declaring 1 plugin. It is read for editorial metadata only — never as the skill index, which is always the repository tree.Indexes: Read indexes.md (opens in a new tab)
/firebase/agent-skills.md, and each chapter at its own .md URL.16 files · 115 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of chapter 8.
Documentation the agent loads on demand, rather than up front.
references/enterprise/9 files · 63 KBreferences/standard/7 files · 52 KB