01
It starts by itself
rules file changed. Runs in GitHub Actions.
- ↻ rules file changed
pull_request that changes security rules
No rules change ships unaudited.
Install the Firebase Security Rules Auditor skill and make it a habit: follow https://gethabit.dev/skills/firebase/firebase-security-rules-auditor.md
137K installs480 starsApache-2.0 licenceSource on GitHub ↗

Firebase Security Rules Auditor
by firebase · 137K installs
The skill
Firebase security rules auditor is a skill that red-teams Firestore and Cloud Storage rules for bypasses, privilege escalation, missing limits and type checks, and returns a 1 to 5 score in JSON.
Only when you ask.
The habit
No rules change ships unaudited.
↻ Runs by itselfrules file changed
When does it start? How does it check its work? What does it remember?
Stops after one audit per pull request, with no retries.
Read the changed Firestore or Cloud Storage rules and the app's purpose.
Compare create and update rules for ways to move a valid document into a bad state.
Flag sensitive fields like role or ownerId that trust request.resource.data.
Check size limits, type checks, and that hasOnly or diff rules also check ownership.
Score from 1 to 5 and return the JSON assessment with findings and fixes.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Firebase Security Rules Auditor skill helps.
No. It returns findings with a recommended fix for each.
Not if email_verified is checked and no one can add themselves as admin.
Minor issues only, such as missing size limits or minor type checks.
Copy the prompt at the top into your agent. It installs the skill from firebase/agent-skills and sets up the habit. Or run npx skills add firebase/agent-skills --skill firebase-security-rules-auditor.
Yes. It is published under Apache-2.0. Habit is free too.
Install the Firebase Security Rules Auditor skill and make it a habit: follow https://gethabit.dev/skills/firebase/firebase-security-rules-auditor.md
All firebase skills →More code skills →
Works in
Made by firebase, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?