Skip to content
Back to skills

Firebase Apps

ASecurity

Build Firebase apps securely: Firestore/RTDB security rules, Admin SDK isolation, App Check and batch limits

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentgotestingapibackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill firebase-apps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Firebase Apps?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Firebase Apps
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-firebase-apps-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-firebase-apps-anvil)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: firebase-apps
description: "Build Firebase apps securely: Firestore/RTDB security rules, Admin SDK isolation, App Check and batch limits"
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# Firebase apps

Use when configuring Firebase client SDKs, Firestore/Storage security rules, Cloud Functions, or Firebase Auth.

## Security rules (non-negotiable)
- Never leave `allow read, write: if true;` or timestamped test-mode rules deployed. Deny all paths by default (`match /{document=**} { allow read, write: if false; }`) and grant per-collection access checking `request.auth != null` and ownership (`request.auth.uid == resource.data.ownerId`).
- Validate incoming document field types, required keys, and allowed state transitions inside `allow create` / `allow update` using `request.resource.data.keys().hasOnly([...])` so clients cannot inject admin fields like `role: "admin"`.
- Mirror strict size and `contentType` checks inside Firebase Storage rules.

## Client vs Admin SDK
- Client Firebase config (`apiKey`, `projectId`) is public identifier metadata — security lives in Security Rules + Auth + Firebase App Check.
- Never expose Service Account JSON or Admin SDK credentials to browser/mobile bundles; run privileged multi-user mutations via Cloud Functions or server backends checking verified ID tokens (`verifyIdToken(..., checkRevoked: true)`).

## Firestore scale and cost
Batch atomic mutations within the 500-operation `WriteBatch` limit, avoid hot monotonic keys on high write rates, and add composite indexes via `firestore.indexes.json`.

## Verify
Run security rules unit tests with Firebase Emulator Suite (`@firebase/rules-unit-testing`) asserting unauthorized reads/writes and injected fields fail.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.