data-modeling

Design Firestore schemas with denormalization, composite keys, counters, and soft deletes.

Updated Dec 15, 2025
One-click install
npx skills add https://github.com/jhlee0409/sidedish --skill data-modeling
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: data-modeling
Source: https://github.com/jhlee0409/sidedish/tree/main/.claude/skills/data-modeling
Command: npx skills add https://github.com/jhlee0409/sidedish --skill data-modeling

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill includes references (resource) components.

What problem does it solve?

Firestore์˜ ๋น„์ •๊ทœํ™”์™€ ์Šคํ‚ค๋งˆ ์„ค๊ณ„ ํŒจํ„ด์„ ์ ์šฉํ•ด ๋ฐ์ดํ„ฐ์˜ ์ผ๊ด€์„ฑ๊ณผ ์ฝ๊ธฐ ์†๋„๋ฅผ ๊ฐœ์„ ํ•ฉ๋‹ˆ๋‹ค.

Core Features & Use Cases

  • Document schemas: ProjectDoc, UserDoc, CommentDoc ๋“ฑ ์„ค๊ณ„
  • Patterns: Denormalization, Composite Keys, Counter, Soft Delete, Timestamps
  • Migration: ์ ์ง„์  ์Šคํ‚ค๋งˆ ๋ณ€๊ฒฝ๊ณผ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ์ „๋žต

Quick Start

์ƒˆ๋กœ์šด ํ”„๋กœ์ ํŠธ ๋„ํ๋จผํŠธ๋ฅผ ์„ค๊ณ„ํ•˜๊ณ  ์ข‹์•„์š” ์นด์šดํ„ฐ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

Frequently Asked Questions about data-modeling

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

FAQPage Schema
How do I design Firestore schemas for NoSQL applications?โ–ผ

Firestore schema design involves defining document structures for collections like projects, users, and comments. This Skill provides templates for ProjectDoc, UserDoc, and CommentDoc schemas that apply denormalization patterns to optimize read performance and data consistency while maintaining scalability.

What is denormalization in Firestore and when should I use it?โ–ผ

Denormalization embeds related data directly into documents to reduce read operations and improve query speed. Use it in Firestore when you need faster reads and can manage duplicate data updates, especially for frequently accessed author information or metadata across collections.

How do I implement soft deletes and counters in Firestore?โ–ผ

Soft deletes use boolean flags to mark documents as deleted without removing them, preserving data integrity. Counters cache aggregate values like likes or comment counts in parent documents, reducing expensive aggregation queries and enabling efficient updates across your Firestore collections.

What are composite keys in Firestore data modeling?โ–ผ

Composite keys combine multiple fields into a unique identifier for documents, enabling precise document references and preventing duplicates. This Skill applies composite keys across core collections to ensure reliable document retrieval and maintain data relationships in your Firestore database.

How do I migrate existing Firestore data to a new schema?โ–ผ

Firestore schema migration involves gradual changes to document structure with indexing guidance. This Skill provides migration strategies for incrementally updating timestamps, adding denormalized fields, and restructuring collections while maintaining application availability and data consistency.

Can I use denormalization patterns with timestamp consistency in Firestore?โ–ผ

Yes. Maintaining consistent timestamps across denormalized copies ensures data reliability during reads and updates. This Skill coordinates denormalization, composite keys, soft-delete flags, and timestamp management to create robust, migration-ready architectures for scalable Firestore applications.