ClaudeCodeMod

All shelves / Skills

firebase-firestore

firebase/agent-skills · 149.2k installs · 496 stars

Skill

Marked Command Execution · External Downloads · Dynamic Execution

Install

The repo has no one-line install. Follow its README.

Open the repo

Files

SKILL.md

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

Facts

Kind
Skill
Repo
firebase/agent-skills
Group
Uncategorized
Installs
149.2k
Stars
496

Same name on this shelf 2

  1. 16206firebase-firestorefirebase/skills506
  2. 17037firebase-firestorejezweb/claude-skills439

From the same repo

  1. 397firebase-ai-logic-basicsfirebase/agent-skills149.1k
  2. 400firebase-crashlyticsfirebase/agent-skills145.1k
  3. 433firebase-remote-config-basicsfirebase/agent-skills134.6k
  4. 754developing-genkit-jsfirebase/agent-skills62.5k
  5. 756developing-genkit-dartfirebase/agent-skills62.2k
  6. 880developing-genkit-gofirebase/agent-skills49.5k