Firebase Rules Security Auditor skill for Claude and Codex
Writes strict Firebase Security Rules for your data model and explains each check, so access is limited to exactly who should have it.
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when a Firebase developer needs security rules written or tightened for a collection or path, with an explanation of each check. Do not use for deploying rules or writing application code for the client. Related topics: firebase, security, coding.
What it will ask you for
- Firebase product (choose one: Firestore, Realtime Database, Cloud Storage)
- Target collection or path (free text, e.g. "users/userId")
- Data model (longer free text)
- Who can read (choose one: Public, Authenticated Users, Only Owner, Admin Only)
- Who can write (choose one: Authenticated Users, Only Owner, Admin Only, No One)
- Extra constraints (choose any: Validate data types, Check string length, Prevent field updates, Require specific fields)
- Using custom claims such as admin (choose one: Yes, No)
How it works
- Begin with a default deny rule for the product chosen.
- Write separate create, update and delete rules matching the read and write requirements.
- Add validation for the selected constraints and make protected fields immutable by comparing new and existing data.
- Explain each rule in plain language and list three requests the rules must reject.
What you get
The rules in a code block, a one-line explanation per rule, and three example requests that should be denied with the reason.
What it watches out for
- Granting write with a single broad rule when create, update and delete need different checks.
- Trusting an admin or role field the client can edit instead of a custom claim.
- Leaving a catch-all allow rule from the console defaults in place.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.