firestore-rules-audit

Audit Firestore security rules for ownership, immutability, and backend-only authority.

2|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/abdullahbokl/Boklo-Wallet --skill firestore-rules-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firestore-rules-audit
Source: https://github.com/abdullahbokl/Boklo-Wallet/tree/main/.agent/skills/firestore-rules-audit
Command: npx skills add https://github.com/abdullahbokl/Boklo-Wallet --skill firestore-rules-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audits Firestore security rules to ensure ownership enforcement, immutability, and backend-only authority.

Core Features & Use Cases

  • Enforces backend authority for ledger/balance reads and writes to prevent client manipulation.
  • Enforces ownership controls for user data and private collections to ensure per-user access.
  • Enforces immutability for transaction logs and establishes a default-deny posture to prevent unintended rule gaps.

Quick Start

Run an initial audit pass against your Firestore rules and adjust defenses to meet backend authority requirements.

Frequently Asked Questions about firestore-rules-audit

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

FAQPage Schema
How do I audit Firestore rules to enforce backend-only authority for ledger writes?

To audit Firestore rules for backend authority, you enforce rules that restrict ledger and balance writes to backend processes only, preventing direct client manipulation of financial data.

What is the best way to enforce ownership and immutability in Firestore security rules?

Enforce ownership and immutability in Firestore security rules by validating user IDs against document owners for access control and locking transaction logs against modifications after creation.

How do I implement a default-deny posture in Firestore rules?

Implement a default-deny posture in Firestore rules by ensuring all collection paths explicitly require authentication and type validation, closing security gaps from unintended public access.

When should I run a Firestore rules audit for access control and immutability?

Run a Firestore rules audit during rule changes, collection additions, and periodic security reviews across development and production environments to maintain strict access control and immutability.

Does Firestore rules auditing require type validation for data fields?

Yes, Firestore rules auditing requires type validation for data fields to ensure that incoming data matches expected schemas, preventing malformed inputs from compromising backend authority.

Why do my Firestore rules allow client manipulation of transaction logs?

Firestore rules allow client manipulation of transaction logs when immutability checks are missing, requiring an audit to enforce backend-only authority and restrict write access after creation.