firebase avatar

Firebase Firestore

This handles Cloud Firestore operations from detection through deployment, and it's opinionated in the right way. It forces you to identify whether you're on Standard or Enterprise edition before doing anything else, then routes you to edition-specific guides for security rules, SDK setup, and indexing. Works with Firebase CLI under the hood but doesn't require a global install. The automatic defaulting to Enterprise for new databases is a smart choice given Google's direction. If you're doing any Firestore work beyond trivial reads, the structured approach to data modeling and security rules will save you from the usual Firebase gotchas around permissions and query performance.

skills.sh installs
142.8K
GitHub stars
508
last updated
Aug 21, 2026

Install

$ npx -y skills add firebase/agent-skills --skill firebase-firestore --agent claude-code

Installs into .claude/skills of the current project.

Files

Cloud Firestore Database and Operations

[!IMPORTANT] Security Rules Authoring (firestore.rules) Whenever setting up a Firestore-backed app or creating/modifying firestore.rules, configure "firestore": { "rules": "firestore.rules" } in firebase.json and deploy firestore.rules (npx -y firebase-tools@latest deploy --only firestore:rules), even if server routes use the Admin SDK:

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

Sponsors

Details

Repository
github.com/firebase/agent-skills
Categories
Backend & APIs, Security, Documentation, AI & Agent Building, Python, Cloud & Infrastructure, Mobile Development, Databases
First seen
May 16, 2026

More from firebase/agent-skills

All 23
1firebase avatarfirebase-remote-config-basicsfirebase/agent-skillsManages Firebase Remote Config templates, feature flags, loading strategies, and SDKs (Android, iOS). Use when downloading/deploying remoteconfig JSON templates128.4Kskills.sh installs
2autonnel avatarserver-side-conversion-trackingautonnel/autonnel-skillsSet up server-side conversion tracking so purchases are reported accurately to Facebook, TikTok, Google and Bing despite iOS restrictions, ad blockers and cooki120Kskills.sh installs
3convex avatarconvex-authconvex/agent-skillsAdd authentication (passkeys/OAuth) to the current Convex app, including the auth.config.ts wiring.41.4Kskills.sh installs
4google avatargemini-interactions-apigoogle/skillsGuides the usage of Gemini Interactions API on Gemini Enterprise Agent Platform. Use when the user wants to use the stateful, server-managed Interactions API fo11.4Kskills.sh installs
5google avatargoogle-analytics-admin-api-basicsgoogle/skillsManages Google Analytics account and property settings, enables the Analytics Admin API via the Cloud CLI, lists accounts and properties, and manages data strea8.1Kskills.sh installs
6affaan-m avatarapi-designaffaan-m/eccREST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.6.6Kskills.sh installs