Skills
Skill 8 of 13
Sets up, manages, queries, and configures Cloud Firestore databases (Standard/Enterprise edition), including data modeling, security rules, indexes, and SDK integrations (Web…
1 minute · 252 words · 7 sections
Install
npx skills add firebase/agent-skills --skill firebase-firestorenpx skills add firebase/agent-skills/plugin marketplace add firebase/agent-skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
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:
npx -y firebase-tools@latest firestore:databases:listFor each database found, inspect its edition and details:
npx -y firebase-tools@latest firestore:databases:get <database-id>Ask the user which database instance they wish to target or if they would prefer to create a new instance.
Once the target instance is established:
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:
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/)firestore-rules-creation skillreferences/enterprise/)Provisioning: Read provisioning.md (opens in a new tab)
Data Model: Read data_model.md (opens in a new tab)
Security Rules: See the firestore-rules-creation skill
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 (opens in a new tab), python_sdk_usage.md (opens in a new tab), android_sdk_usage.md (opens in a new tab), ios_setup.md (opens in a new tab), or flutter_setup.md (opens in a new tab)
Indexes: Read indexes.md (opens in a new tab)
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 23 September 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./firebase/agent-skills.md, and each skill at its own .md URL.14 files · 62 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 8.
Documentation the agent loads on demand, rather than up front.
references/enterprise/8 files · 36 KBreferences/standard/6 files · 25 KB