firestore-data-modeling-patterns

Official

Model Firestore data for speed and cost

AuthorAgentient
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Firestore data modeling best practices to optimize query patterns, scalability, and cost, including guidance on subcollections vs root collections, embedding vs referencing, and atomic operations.

Core Features & Use Cases

  • Subcollections vs root collections decision patterns with practical examples
  • Embedding vs referencing guidance for 1-to-1, 1-to-many, and many-to-many relationships
  • Atomic operations using transactions and batched writes with tradeoffs
  • Document structure best practices and common pitfalls in Firestore

Quick Start

Draft a minimal model by deciding which data lives under subcollections and which belongs in root collections, then implement a simple transaction to validate consistency.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: firestore-data-modeling-patterns
Download link: https://github.com/Agentient/vibekit/archive/main.zip#firestore-data-modeling-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.