firebase-operations

Perform Firestore queries, document CRUD, batch writes, and transactional updates.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Firestore ๊ด€๋ฆฌ์ž SDK๋ฅผ ์‚ฌ์šฉํ•œ CRUD, ๋ฐฐ์น˜ ์“ฐ๊ธฐ, ํŠธ๋žœ์žญ์…˜, ํƒ€์ž„์Šคํƒฌํ”„ ๊ด€๋ฆฌ ๋“ฑ์˜ ์‹ค๋ฌด ํŒจํ„ด์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

Core Features & Use Cases

  • Document CRUD: ๋‹จ์ผ ๋ฌธ์„œ ์ฝ๊ธฐ/์“ฐ๊ธฐ
  • Batch Writes: ์ตœ๋Œ€ 500๊ฐœ ์—ฐ์‚ฐ ๋ฌถ์Œ
  • Transactions & Timestamps: ์›์ž ์—ฐ์‚ฐ ๋ฐ ํƒ€์ž„์Šคํƒฌํ”„ ๊ด€๋ฆฌ

Quick Start

PROJECTS ์ปฌ๋ ‰์…˜์— ํƒ€์ž„์Šคํƒฌํ”„๊ฐ€ ํฌํ•จ๋œ ์ƒˆ ๋ฌธ์„œ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

Frequently Asked Questions about firebase-operations

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

FAQPage Schema
How do I perform batch writes to Firestore with the admin SDK?โ–ผ

Batch writes bundle up to 500 operations atomically using the admin SDK's batch API. Create a batch instance, chain set, update, or delete operations on documents across collections, then commit. All operations succeed or fail together, ensuring data consistency without manual transaction management.

How do I handle timestamps in Firestore documents?โ–ผ

Use Timestamp.now() from the admin SDK to capture server time when writing documents. Convert timestamps to ISO strings for API responses. The admin SDK automatically serializes and deserializes timestamps, preserving precision across document reads and writes in collections like projects and users.

What's the best way to implement transactional updates in Firestore?โ–ผ

Transactions ensure atomicity across multiple documents using the admin SDK's transaction API. Read documents, apply conditional logic, then write changesโ€”all succeed or retry together if conflicts occur. This pattern prevents race conditions when updating related data across collections.

Can I use the Firestore admin SDK for CRUD operations on nested collections?โ–ผ

Yes, the admin SDK supports querying, creating, updating, and deleting documents across nested and root-level collections. Reference documents by path, apply filters and pagination, and execute operations on comments, whispers, ai_usage, and other collections with the same CRUD patterns.

How do I paginate large result sets from Firestore queries?โ–ผ

Use limit and offset or cursor-based pagination with the admin SDK. Fetch documents in chunks, store the last document as a cursor, and use startAfter() for the next page. This pattern scales efficiently for collections like projects and users without loading entire result sets.

What are the limits on batch write operations in Firestore?โ–ผ

Batch writes support up to 500 operations per batch. Each operation counts as one, whether it's a set, update, or delete. For larger workloads, split into multiple batches or use transactions for strongly consistent updates across smaller operation sets.