firebase

firebase is a skill for Claude Code from alinaqi/maggy. It costs 16 tokens per session (4,454 once invoked), scanned A, original, MIT.

A guide to Firebase services, including Firestore, a document database with real-time updates, user authentication, file storage, serverless functions, and hosting.

In plain words
What is it for?
Use it when building web or mobile apps with Firebase, especially for real-time data, sign-in, file uploads, backend functions, hosting, or access rules.
Why use it?
It explains how to structure Firestore data for the way an app reads it and how to protect data with security rules. It also covers local emulators for development.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when building web or mobile apps with Firebase, especially for real-time data, sign-in, file uploads, backend functions, hosting, or access rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alinaqi/maggy/firebase
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alinaqi/maggy --skill firebase
Clone the repo
git clone --depth 1 https://github.com/alinaqi/maggy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for firebase

README.md
[![agentmods](https://agentmods.dev/badge/skills/alinaqi/maggy/firebase/github.svg)](https://agentmods.dev/skills/alinaqi/maggy/firebase)
Your own site
<a href="https://agentmods.dev/skills/alinaqi/maggy/firebase"><img src="https://agentmods.dev/badge/skills/alinaqi/maggy/firebase/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for firebase

Your own site · 80×15
<a href="https://agentmods.dev/skills/alinaqi/maggy/firebase"><img src="https://agentmods.dev/badge/skills/alinaqi/maggy/firebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,454 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.04454
Opus 5.5 $0.00006 $0.01782
Sonnet 5.5 $0.00003 $0.00891
Haiku 4.5 $0.00002 $0.00445

Measured 3mo ago against content hash f38ae668e8b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

firebase scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/firebase/SKILL.md · 748 lines

How it starts

The opening of the file, as written. The whole thing — 748 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Firebase Skill

Firebase/Firestore patterns for web and mobile applications with real-time data, offline support, and security rules.

Sources: Firebase Docs | Firestore Best Practices | Security Rules


Core Principle

Denormalize with purpose, secure with rules, scale horizontally.

Firestore is a document database - embrace denormalization for read efficiency. Security rules are your server-side validation. Design for your access patterns.


Firebase Stack

Service Purpose
Firestore NoSQL document database with real-time sync
Authentication User auth, OAuth, anonymous sessions
Storage File uploads with security rules
Functions Serverless backend (Node.js)
Hosting Static site + CDN
Extensions Pre-built solutions (Stripe, Algolia, etc.)

Project Setup

Install Firebase CLI

# Install globally
npm install -g firebase-tools

# Login
firebase login

# Initialize in project
firebase init

Initialize with Emulators

firebase init emulators

# Start local development
firebase emulators:start

Project Structure

project/
├── firebase.json           # Firebase config
├── firestore.rules         # Security rules
├── firestore.indexes.json  # Composite indexes
├── storage.rules           # Storage security rules
└── functions/              # Cloud Functions
    ├── src/
    ├── package.json
    └── tsconfig.json

Firestore Data Modeling

Document Structure

// Good: Flat documents with all needed data
interface Post {
  id: string;
  title: string;
  content: string;
  authorId: string;
  authorName: string;      // Denormalized for display
  authorAvatar: string;    // Denormalized
  tags: string[];
  likeCount: number;       // Aggregated counter
  createdAt: Timestamp;
  updatedAt: Timestamp;
}

// Collection: posts/{postId}

Read the full file on GitHub · 748 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 748 lines · 16 tokens per session scan A f38ae668e8b9

Subscribe to this mod's changes

firebase is a skill published in the GitHub repository alinaqi/maggy (713 stars, last pushed 3d ago), licensed MIT. It adds 16 tokens to every session and 4,454 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

firebase compared with skills from other repositories

firebase next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
firebasealinaqi/maggySkill7133d agoMITA16Claude Code
claude-apihashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A53Claude Code, Codex
fastapiericrisco/rsc-harnessSkill6915d agoMITA94Claude Code, Codex
modalericrisco/rsc-harnessSkill6915d agoMITA78Claude Code, Codex
pythonericrisco/rsc-harnessSkill6915d agoMITA94Claude Code, Codex
djangoericrisco/rsc-harnessSkill6915d agoMITA84Claude Code, Codex
ai-ml-developmenttravisjneuman/.claudeSkill115yesterdayMITA43Claude Code