firestore-rules-audit

Audit Firestore security rules for LGPD compliance and access controls.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/JoaoBiomed/NEXUSEcosystem --skill firestore-rules-audit-joaobiomed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firestore-rules-audit
Source: https://github.com/JoaoBiomed/NEXUSEcosystem/tree/main/nexus-app/.claude/skills/firestore-rules-audit
Command: npx skills add https://github.com/JoaoBiomed/NEXUSEcosystem --skill firestore-rules-audit-joaobiomed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This audit helps ensure Firestore security rules enforce business logic, protect clinical data, and comply with LGPD by validating authentication, access controls, and data isolation across all collections.

Core Features & Use Cases

  • Automated rule evaluation across collections to verify authentication gates, read/write permissions, and delete controls.
  • LGPD and data-protection focus with checks for data isolation, field presence, and archiving vs deletion strategies.
  • Use Case: Run the audit on a multi-collection Firestore project to identify misconfigurations and policy gaps before deployment.

Quick Start

Run the audit against your project’s Firestore security rules to identify misconfigurations and LGPD compliance gaps.

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 security rules for LGPD compliance?

You audit Firestore rules by validating authentication gates, read/write permissions, and data isolation across clinical collections to ensure LGPD compliance and identify policy gaps before deployment.

What Firestore security rules are needed to protect clinical data collections?

Protecting clinical data requires Firestore rules that enforce authentication gates, validate required fields, manage status transitions, restrict delete controls, and ensure data isolation across patients, protocols, and labResults collections.

Can I use this audit to check Firestore rules across multiple clinical collections?

Yes, you can audit Firestore rules across multiple clinical collections including patients, protocols, audit_logs, sample_queue, sample_compliance, sample_inventory, stock, medications, labResults, endoinjectSessions, bodyScanRecords, and lifestyleRecords.

Does this Firestore rules audit verify index coverage and rate limiting?

Yes, this Firestore rules audit verifies index coverage and rate limiting, alongside access controls, field presence validation, status transitions, and export restrictions as defined in the compliance checklist.

What is the best way to validate data isolation and archiving strategies in Firestore rules?

The best way to validate data isolation and archiving strategies is running an automated rule evaluation that checks for field presence, access controls, and archiving versus deletion strategies across all clinical data collections.

Why does my Firestore rules configuration fail to enforce proper access controls for clinical data?

Firestore rules fail to enforce proper access controls when misconfigurations exist in authentication gates, write/read permissions, or delete controls, which an automated audit can identify across all clinical collections.