Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

firebase-firestore — Claude Code skill: setup and use

This skill helps configure Cloud Firestore, plan data models, and write SDK queries. Use it when creating a database or adding Firestore to an app.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add firebase/agent-skills --skill firebase-firestore -a claude-code
Open on GitHub

What firebase-firestore does

The skill covers Cloud Firestore Standard and Enterprise. It helps select a database instance, configure it, plan data models and indexes, and work with SDK queries for Web, Python, iOS, Android, and Flutter. It starts by checking existing databases and their editions with the Firebase CLI, which can be run through npx -y firebase-tools@latest.

Reference guides cover setup and SDK use for both editions. For Enterprise, read the guide for the target platform before changing application code. Edition matters here: Standard and Enterprise use different guidance.

For authoring or changing firestore.rules, the skill routes work to the firestore-rules-author subagent when delegation is available; otherwise, it points to firestore-rules-creation. It does not cover Firebase Hosting, Data Connect, Auth, Storage/GCS, Crashlytics, Functions, or BigQuery.

What it helps with

  • create or choose a Cloud Firestore database
  • plan a data model for Firestore
  • configure indexes for queries
  • connect a Firestore SDK to an app
  • write Firestore queries for supported SDKs

Example prompts for the agent

  • Check my Firestore databases and help me choose an instance for this project.
  • Plan a Firestore data model and indexes for this app.
  • Set up the Firestore SDK for my Flutter app based on the database edition.

How to install firebase-firestore

1Skills CLI (Vercel)

npx skills add firebase/agent-skills --skill firebase-firestore -a claude-code

2Manually: put the files in place

~/.claude/skills/firebase-firestore/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/firebase-firestore/

From the same set10

The whole set →
firebase-hosting-basics Google LLC Deploys static sites and SPAs to Firebase Hosting CDN with SSL, preview channels, and custom domains. Claude Code CX Codex Cursor +1 169,800installs firebase-app-hosting-basics Google LLC Deploy and manage SSR web apps built with Next.js or Angular on Firebase App Hosting. Use it for configuration, secrets, and deployment workflows. Claude Code CX Codex Cursor +1 169,200installs firebase-data-connect Google LLC Builds and configures Firebase SQL Connect backends on PostgreSQL with GraphQL schemas and generated SDKs. Useful when adding relational data to Firebase projects. Claude Code CX Codex Cursor +1 168,300installs firebase-security-rules-auditor Google LLC Audits Firebase rules for data leaks, privilege escalation, and validation gaps. Use it when reviewing Firestore or Cloud Storage access. Claude Code CX Codex Cursor +1 138,200installs firebase-ai-logic-basics Google LLC Integrates Firebase AI Logic into Android, iOS, Web, and Flutter client apps. Helps configure direct Gemini API calls, streaming, and multimodal inputs. Claude Code CX Codex Cursor +1 135,300installs firebase-crashlytics Google LLC A skill for Firebase Crashlytics in Claude Code, Cursor, and other AI coding platforms. Collects crash reports from Android and iOS apps, lets you read data through the Firebase CLI MCP server. Claude Code CX Codex Cursor +1 131,200installs xcode-project-setup Google LLC This skill adds Swift Packages and links files in Xcode projects. Use it when an iOS app needs dependencies such as Firebase or Alamofire. Claude Code CX Codex Cursor +1 130,300installs firebase-remote-config-basics Google LLC Manages Firebase Remote Config templates, loading strategies, and feature flags for Android and iOS. Helps tweak app behavior without pushing a release to app stores. Claude Code CX Codex Cursor +1 120,800installs

Similar

gke-cost-analysis official google Analyze GKE billing exports alongside live cluster metrics. Use it to compare project, namespace, or workload costs and investigate what is driving a bill. Claude Code Gemini CLI CX Codex 5,100installs datalineage-summary official google This skill summarizes Google Cloud data lineage graphs. Use it to trace BigQuery and Cloud Storage flows and investigate data quality issues. Claude Code Gemini CLI CX Codex 5,100installs kpi-dashboard-design Seth Hobson This skill helps design KPI dashboards, choose useful metrics, and trace conflicting calculations. Use it for SaaS, operations, and cohort analysis views. Claude Code CX Codex Cursor 16,141installs google-cloud-solution-rag-enterprise-search-gke-sqldb official google This skill designs a RAG enterprise search system in Google Cloud. Use it when AlloyDB, GKE, an open model, and a SQL vector store are part of the target setup. Claude Code Gemini CLI CX Codex 5,000installs google-cloud-solution-agentic-analytics-spark-knowledge-catalog official google This skill guides requirements discovery and architecture for governed analytics across distributed data sources. Use it when planning workflows with Knowledge Catalog and Managed Service for Apache Spark. Claude Code Gemini CLI CX Codex 5,000installs cloud-monitoring-chart-generation official google This skill turns a resolved PromQL or ListTimeSeries query into a Cloud Monitoring chart widget. Use it when adding a graph to a Google Cloud dashboard. Claude Code Gemini CLI CX Codex 4,800installs xlsx official anthropics Creates, reads, edits, and converts spreadsheet files. Use it when the requested deliverable is an Excel workbook or another tabular file. Claude Code Claude.ai 187,223installs google-agents-cli-observability official Google This skill guides you through tracing and monitoring AI agents, including ADK agents. Use it when you need to inspect agent execution or monitor a deployed agent. Claude Code CX Codex Cursor +1 509,900installs

Questions about firebase-firestore

How do I install firebase-firestore in Claude Code?

Run npx skills add firebase/agent-skills --skill firebase-firestore -a claude-code. The skill file is at ~/.claude/skills/firebase-firestore/SKILL.md.

What does firebase-firestore do?

It helps configure Cloud Firestore databases, plan data models and indexes, write queries, and integrate SDKs.

What should I check before configuring Firestore?

Identify whether the database instance is Standard or Enterprise first. The setup and SDK guidance depends on the edition.

Source text

SKILL.md · Apache-2.0
---
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. For authoring or modifying Firestore Security Rules (firestore.rules), delegate to the firestore-rules-author subagent if subagent delegation is available, or use firestore-rules-creation otherwise. Don't use for Firebase Hosting, Data Connect, Auth, Storage/GCS, Crashlytics, Functions, or BigQuery.
compatibility: 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`.
metadata:
  author: Google LLC
  category: Databases
---

# 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:

```bash
npx -y firebase-tools@latest firestore:databases:list
```

### A. Instance Found

1. For each database found, inspect its edition and details:

   ```bash
   npx -y firebase-tools@latest firestore:databases:get <database-id>
   ```

1. Ask the user which database instance they wish to target or if they would
   prefer to create a new instance.

1. 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:

```bash
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/`)

- **Provisioning**: Read [provisioning.md](references/standard/provisioning.md)
- **Security Rules**: See the `firestore-rules-creation` skill
- **SDK Usage**: Read [web_sdk_usage.md](references/standard/web_sdk_usage.md),
  [android_sdk_usage.md](references/standard/android_sdk_usage.md),
  [ios_setup.md](references/standard/ios_setup.md), or
  [flutter_setup.md](references/standard/flutter_setup.md)
- **Indexes**: Read [indexes.md](references/standard/indexes.md)

### Enterprise Edition / Native Mode (`references/enterprise/`)

- **Provisioning**: Read
  [provisioning.md](references/enterprise/provisioning.md)

- **Data Model**: Read [data_model.md](references/enterprise/data_model.md)

- **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](references/enterprise/web_sdk_usage.md),
  [python_sdk_usage.md](references/enterprise/python_sdk_usage.md),
  [android_sdk_usage.md](references/enterprise/android_sdk_usage.md),
  [ios_setup.md](references/enterprise/ios_setup.md), or
  [flutter_setup.md](references/enterprise/flutter_setup.md)

- **Indexes**: Read [indexes.md](references/enterprise/indexes.md)

© Google LLC · Apache-2.0 · firebase/agent-skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor