gcp-firestore

Generate Firestore data models, security rules, indexes, and query patterns.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill gcp-firestore
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcp-firestore
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/gcp-firestore
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill gcp-firestore

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of robust Firestore databases by generating data models, security rules, indexes, and query patterns, ensuring efficient and secure NoSQL data management.

Core Features & Use Cases

  • Data Modeling: Define collection/document structures, embedding vs. referencing strategies, and distributed counters.
  • Security Rules: Generate comprehensive, role-based access control rules for enhanced data security.
  • Index Generation: Create necessary composite indexes for optimized query performance.
  • Query Patterns: Provide examples for CRUD operations, transactions, and real-time listeners.
  • Use Case: When starting a new project that requires a NoSQL database, use this Skill to quickly set up the foundational Firestore structure, including how data will be organized, secured, and queried.

Quick Start

Use the gcp-firestore skill to generate Firestore data models and security rules for a 'users' collection with 'orders' subcollection.

Frequently Asked Questions about gcp-firestore

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

FAQPage Schema
How do I design a Firestore data model with subcollections and distributed counters?

To design a Firestore data model, you define collection and document structures while choosing between embedding or referencing strategies. This approach also supports advanced patterns like distributed counters to manage high-write throughput.

How do I write Firestore security rules for role-based access control?

Writing Firestore security rules involves generating comprehensive, role-based access control configurations. These rules enforce data security by validating user permissions before allowing read or write operations on specific documents and collections.

What's the best way to optimize Firestore query performance with composite indexes?

Optimizing Firestore query performance requires creating necessary composite indexes. By generating these indexes alongside your query patterns, you ensure efficient retrieval of documents across multiple fields in your NoSQL database.

Does this Firestore data modeling approach work with Datastore mode?

Yes, this data modeling approach supports both native and Datastore modes. It generates document-based NoSQL storage structures, security rules, and query patterns that apply to your specific Firestore operational context.

How do I structure real-time listeners and transactions in Firestore query patterns?

Structuring real-time listeners and transactions in Firestore involves generating specific query pattern examples. These patterns provide practical implementations for CRUD operations, atomic transactions, and live data synchronization.

When should I use embedding vs referencing strategies in a Firestore NoSQL database?

Choosing between embedding and referencing strategies in a NoSQL database depends on your data access patterns and query complexity. This process generates structured data models that balance document size limits with retrieval efficiency.