firebase

Model Firestore data and write unit-tested security rules for real-time applications.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/aberrantCode/llm_skills --skill firebase-aberrantcode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firebase
Source: https://github.com/aberrantCode/llm_skills/tree/main/claude/skills/firebase
Command: npx skills add https://github.com/aberrantCode/llm_skills --skill firebase-aberrantcode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Firebase skill provides patterns and operational guidance to design, secure, and scale Firestore-backed web and mobile applications so teams can implement realtime sync, offline persistence, and server-side validation without fragile ad hoc architectures.

Core Features & Use Cases

  • Data modeling & denormalization: Practical document and subcollection patterns for read-efficient, scalable schemas.
  • Security rules & validation: Concrete rule structures, helper functions, and unit testing approaches to enforce authorization and data integrity.
  • Realtime, offline & transactions: Real-time listeners, offline persistence strategies, batch writes, and transactional counters for consistent UX.
  • Cloud Functions & deployment: Examples for HTTP, callable, and Firestore-triggered functions plus deployment and indexing guidance.
  • Use Case: Ship a social feed with denormalized author details, secure comments subcollections, offline-first syncing, and emulator-based tests before production deploy.

Quick Start

Set up a Firestore project with authentication, enable the local emulators for Firestore/Auth/Storage, and create basic security rules for posts and users.

Frequently Asked Questions about firebase

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

FAQPage Schema
How do I model denormalized Firestore documents for a real-time social feed?

To model denormalized Firestore documents for a real-time social feed, use practical document and subcollection patterns that embed read-efficient author details, ensuring scalable queries without complex joins.

What's the best way to unit test Firestore security rules before deployment?

The best way to unit test Firestore security rules is using the local emulators for Firestore and Authentication, enabling you to validate authorization and data integrity logic before production deployment.

How do I implement transaction-safe counters in Firestore?

Implement transaction-safe counters in Firestore using batch writes and transactional counters to ensure consistent user experiences and prevent race conditions during concurrent real-time updates.

Can I use Firebase Cloud Functions triggers with TypeScript for server-side validation?

Yes, you can use Firebase Cloud Functions triggers with TypeScript for server-side validation by deploying HTTP, callable, and Firestore-triggered functions to enforce data integrity rules.

Does Firestore support offline persistence strategies for real-time sync?

Firestore supports offline persistence strategies for real-time sync, allowing web and mobile projects to queue batch writes and maintain consistent UX without fragile ad hoc architectures.

When do I need composite indexes in Firestore?

You need composite indexes in Firestore when executing real-time listeners against complex, multi-field sorted queries that cannot be served by single-field automatic indexes.