firebase-firestore-basics
firebase/agent-skills
Complete guide to Cloud Firestore setup, security rules, and SDK integration.
What is firebase-firestore-basics?
This skill provides comprehensive documentation for getting started with Cloud Firestore, including project provisioning, writing and deploying security rules, and integrating the Firestore SDK into your application. Use it when you need to set up Firestore, configure access controls, or implement database operations in your code.
- Provision Cloud Firestore in Firebase projects and local environments
- Write and deploy Firestore Security Rules to protect data access
- Integrate Firestore SDK into web applications using the modular SDK
- Query and manage Firestore data through application code
- Configure and manage Firestore indexes for optimal query performance
How to install firebase-firestore-basics
npx skills add https://github.com/firebase/agent-skills --skill firebase-firestore-basics- Firebase project created in Firebase Console
- Firebase CLI installed (npm install -g firebase-tools)
- Node.js and npm installed for SDK integration
How to use firebase-firestore-basics
- 1.Review provisioning.md to set up Cloud Firestore in your Firebase project
- 2.Configure security rules using security_rules.md and deploy them via Firebase CLI
- 3.Choose your platform documentation (web_sdk_usage.md for web applications)
- 4.Implement Firestore operations in your application code using the appropriate SDK
- 5.Check indexes.md to understand index requirements and optimize query performance
Use cases
- Setting up a new Firestore database for a Firebase project
- Implementing authentication-based security rules to restrict data access by user
- Adding real-time database operations to a web application
- Configuring indexes to support complex queries and improve performance
- Migrating an existing application to use Firestore
- Full-stack developers building Firebase applications
- Backend developers implementing data access controls
- Web developers integrating real-time databases
- DevOps engineers provisioning Firebase infrastructure
firebase-firestore-basics FAQ
The skill works best with Firebase CLI installed, but it is not strictly required. Install it with `npm install -g firebase-tools` for full functionality.
The skill currently provides detailed guidance for Web applications using the Firestore Modular SDK.
Use the security_rules.md reference to write Firestore Security Rules that control who can read and write data, then deploy them through the Firebase CLI.
Refer to indexes.md to check if your queries require indexes and configure them appropriately for optimal performance.
Full instructions (SKILL.md)
Source of truth, from firebase/agent-skills.
name: firebase-firestore-basics
description: Comprehensive guide for Firestore basics including provisioning, security rules, and SDK usage. Use this skill when the user needs help setting up Firestore, writing security rules, or using the Firestore SDK in their application.
compatibility: This skill is best used with the Firebase CLI, but does not require it. Install it by running npm install -g firebase-tools.
Firestore Basics
This skill provides a complete guide for getting started with Cloud Firestore, including provisioning, securing, and integrating it into your application.
Provisioning
To set up Cloud Firestore in your Firebase project and local environment, see provisioning.md.
Security Rules
For guidance on writing and deploying Firestore Security Rules to protect your data, see security_rules.md.
SDK Usage
To learn how to use Cloud Firestore in your application code, choose your platform:
- Web (Modular SDK): web_sdk_usage.md
Indexes
For checking index types, query support tables, and best practices, see indexes.md.
Related skills
More from firebase/agent-skills and the wider catalog.

firebase-firestore-enterprise-native-mode
Set up and manage Firestore Enterprise Native Mode with provisioning, security rules, and SDK integration.

firebase-firestore-standard
Complete guide for setting up, securing, and using Cloud Firestore Standard Edition

firebase-hosting-basics
Deploy static web apps, SPAs, and microservices to Firebase Hosting with a single command.

firebase-local-env-setup
Bare minimum initial setup for Firebase: Node.js, CLI, and first-time login.

firebase-remote-config-basics
Manage feature flags and app behavior dynamically with Firebase Remote Config.

firebase-security-rules-auditor
Audit Firestore security rules for vulnerabilities and compliance with security best practices.