firebase-security

Define and enforce Firebase security rules for Firestore and Storage.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/danielctc/ReactSpacesMonoRepo --skill firebase-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firebase-security
Source: https://github.com/danielctc/ReactSpacesMonoRepo/tree/main/.claude/skills/firebase-security
Command: npx skills add https://github.com/danielctc/ReactSpacesMonoRepo --skill firebase-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides ready-to-use patterns and templates to enforce robust access control for Firestore and Storage, helping teams prevent unauthorized reads and writes and reduce security breaches in their Firebase projects.

Core Features & Use Cases

  • Firestore security patterns for owner/host checks, admin roles, and user profile access.
  • Storage security template to protect uploads and define strict read/write permissions.
  • A practical security checklist and tested examples to guide safe rule deployment and auditing.
  • Quick reference to related files (firestore.rules, storage.rules, firebase.json) to streamline rule configuration.

Quick Start

Review the provided Firestore and Storage rule templates and deploy them in your Firebase project by placing the files firestore.rules, storage.rules, and firebase.json in your project and then load or test them using Firebase emulators or deploy commands.

Frequently Asked Questions about firebase-security

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

FAQPage Schema
How do I write Firebase security rules for Firestore to restrict user profile access?

Firebase security rules for Storage restrict uploads by validating request authentication and user roles before permitting read or write operations. You define strict path-level permissions within the storage.rules file to protect file uploads from unauthorized access.

What is the best way to audit Firestore permissions and validate rule compliance?

The best way to audit Firestore permissions and validate rule compliance is using a practical security checklist alongside Firebase emulators. Testing guidance references firestore.rules and firebase.json to ensure safe rule deployment and identify unauthorized access gaps.

How do I configure Storage security rules to protect uploads in Firebase?

Configuring Storage security rules protects uploads by defining strict read and write permissions in the storage.rules file. You apply templates that validate user authentication and access control before any file operation is permitted.

Does Firebase security rules testing work with local emulators before deployment?

Firebase security rules testing works with local emulators to validate rule compliance before deployment. You load the firestore.rules, storage.rules, and firebase.json files into the emulator to safely test access control patterns and audit permissions locally.

Why do my Firebase Firestore rules fail to block unauthorized writes to user data?

Firebase Firestore rules fail to block unauthorized writes when access control checks for owner identity or admin roles are missing. You must enforce robust owner and host checks within the rules to prevent unauthorized data modification.