firebase-firestore

Provisions, secures, and queries Cloud Firestore databases across Standard and Enterprise editions.

Updated Aug 6, 2026
One-click install
npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill firebase-firestore-ferrarifankid04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firebase-firestore
Source: https://github.com/ferrarifankid04/ai-skills-public/tree/main/antigravity/plugins/firebase/skills/firebase_firestore
Command: npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill firebase-firestore-ferrarifankid04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires firebase-tools, and includes references (resource) components.

What problem does it solve? Setting up Cloud Firestore correctly involves many moving parts: choosing between Standard and Enterprise editions, provisioning databases, writing secure rules, configuring indexes, and wiring up client SDKs. This Skill guides the entire workflow so nothing critical is missed. ## Core Features & Use Cases - Edition Detection & Provisioning: Lists existing Firestore databases, detects their edition, and creates new Enterprise or Standard instances in the right location via the Firebase CLI. - Security Rules Generation: Produces hardened Firestore security rules using a structured workflow with codebase analysis, validator functions, RBAC safeguards, and a devil's-advocate attack review. - Multi-Platform SDK Guides: Provides ready-to-use integration patterns for Web, Android (Kotlin), iOS (Swift), Flutter, and Python, including CRUD operations, real-time listeners, and pipeline queries. - Use Case: You are building a Flutter app backed by Firestore Enterprise. The Skill detects no existing database, provisions one in your chosen region, generates locked-down security rules, and gives you type-safe Dart service-layer code with real-time streams. ## Quick Start Ask the agent to set up a Cloud Firestore database for your project and generate the security rules and client SDK code for your platform.

Frequently Asked Questions about firebase-firestore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Firestore Enterprise database with the Firebase CLI?

Run firebase firestore:databases:create with a database ID, --edition="enterprise", and a --location flag. Use firestore:locations to list available regions, and note that Enterprise databases cannot use the (default) database ID.

What is the difference between Firestore Standard and Enterprise editions?

Standard edition automatically creates single-field indexes and uses the default database, while Enterprise (native mode) requires explicit index creation, supports pipeline queries, and needs a custom database ID. The Skill routes you to edition-specific guides after detecting your instance.

How do I write secure Firestore security rules?

Start with default-deny rules, then add authentication checks, ownership validation, and per-collection validator functions applied to both create and update operations. The Skill follows a four-phase workflow including codebase analysis and a devil's-advocate attack review before finalizing rules.

Can I use FirebaseFirestoreSwift with the iOS Firestore SDK?

No. As of Firebase SDK v11+, all Swift features like @DocumentID and Codable support are merged into the main FirebaseFirestore module. Only import FirebaseFirestore and never add FirebaseFirestoreSwift to SPM or Xcode configurations.

Why does my Firestore query require a composite index?

Queries combining equality filters with range or sort operations on multiple fields need composite indexes, which are not created automatically. Define them in firestore.indexes.json and deploy with firebase deploy --only firestore:indexes.

Does this Skill require the Firebase CLI to be installed?

No prior installation is required. All commands run through npx -y firebase-tools@latest, which fetches the latest CLI on demand, though having the Firebase CLI available improves the workflow.