mcpField
F
firebase-firestore

firebase-firestore

github.com/firebaseData & databases491136.7k installsUpdated 1d ago
Repository

About firebase-firestore

A Firebase Firestore skill that guides agents through database selection, provisioning and application setup. Its workflow first identifies the instance edition, then directs work to edition-specific guides for data models, SDKs, security rules and indexes.

Key features

  1. 01Detecting database edition
  2. 02Provisioning Enterprise databases
  3. 03Edition-specific SDK guidance
  4. 04Security rules authoring guidance
  5. 05Index setup references

Use cases

  1. 01Choosing an existing Firestore instance
  2. 02Creating a new Enterprise database
  3. 03Setting up Firestore SDK usage
  4. 04Planning rules and indexes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/firebase/agent-skills --skill firebase-firestore

After installing, type/firebase-firestorein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/enterprise/
android_sdk_usage.md
data_model.md
flutter_setup.md
indexes.md
ios_setup.md
provisioning.md
python_sdk_usage.md
web_sdk_usage.md
references/standard/
android_sdk_usage.md
flutter_setup.md
indexes.md
ios_setup.md
provisioning.md
web_sdk_usage.md

Details

From the project README

Cloud Firestore Database and Operations

Important

Security Rules Authoring (firestore.rules) Whenever your task requires creating, authoring, or modifying firestore.rules:

  • If subagent delegation AND the firestore-rules-author subagent are available: delegate authoring firestore.rules to the firestore-rules-author subagent rather than writing firestore.rules directly in the main agent.
  • If subagent delegation is unavailable (e.g., subagents not enabled in the IDE) OR firestore-rules-author is not installed: read and follow the firestore-rules-creation skill to write firestore.rules directly.

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:

npx -y firebase-tools@latest firestore:databases:list
A. Instance Found
  1. For each database found, inspect its edition and details:

    npx -y firebase-tools@latest firestore:databases:get <database-id>
    
  2. Ask the user which database instance they wish to target or if they would prefer to create a new instance.

  3. Once the target instance is established:

    • If the edition is STANDARD, follow the guides under references/standard/.
    • If the edition is ENTERPRISE or native mode, follow the guides under references/enterprise/.
B. No Instance Found (or New Requested)

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/.


2. Specialized Guides

Based on the identified or created instance edition, open and read the corresponding reference guides:

Standard Edition (references/standard/)
Enterprise Edition / Native Mode (references/enterprise/)

Comments

Markdown supported