An agentic software-development methodology: composable skills that push a coding agent through spec, plan, TDD and review instead of straight into code.
Firebase Security Rules Auditor
Summary
Firebase's official red-team skill for auditing Firestore and Cloud Storage security rules — hunting privilege escalation, create/update bypasses and resource-exhaustion holes.
Features
- Adversarial red-team review rather than a style check
- Detects create-then-update privilege escalation paths
- Flags authorization that trusts request.resource.data
- Treats missing size limits as a DoS risk
- Checks type safety on every field
- Separates hasOnly()/diff() field control from ownership checks
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Description
Firebase Security Rules fail in ways that read as secure. A rule set can look thorough and still let a user write a document that passes create, then mutate it into an admin record through update. This official Firebase skill puts the agent in an adversarial posture: it is a penetration tester looking for the hole in the wall, explicitly told not to assume a rule is safe because it is complex.
The audit checklist
- The update bypass. Compare
createandupdaterules side by side. Can a user create a valid document and then update it into a malicious state — changing their own role, escaping size limits, corrupting field types? - Authority source. Does the rule trust
request.resource.datafor sensitive fields likerole,isAdminorownerId? User-supplied data is not an authority. - Business logic vs. rules. Do the rules actually support what the app does? Rules that block legitimate collaborators are not "secure" — they push the team into insecure workarounds.
- Storage abuse. Missing string-length and array-size limits are flagged as resource-exhaustion and denial-of-service risks, not style nits.
- Type safety. Are fields checked with
is string,is int,is timestamp? - Field-level vs. identity-level security.
hasOnly()anddiff()restrict which fields change, not who may change them — without a separate ownership check, that is a common and expensive misreading.
Scope
It covers Firestore and Cloud Storage rules and scores them against the auditor checklist. It deliberately does not cover Firebase CLI operations such as login and deploy, Auth, Crashlytics, Remote Config or database queries — other skills in Firebase's twelve-skill collection handle those.
Installable through the Skills CLI, as a Gemini CLI extension, or as a Claude, Codex or Kimi plugin.
Related Skills
Tencent's skill-evolution harness: it rewrites a whole skill folder — SKILL.md, scripts and references together — and lands every decision as a real Git issue, PR and wiki entry you can review.
Take an OpenSearch search application from requirements to a running cluster — BM25, dense and sparse vectors, hybrid retrieval, agentic search and RAG, with relevance evaluation built in.
Auth0's official agent skill: a router that detects your framework and intent, then loads the right Auth0 guidance for login, MFA, Organizations, tenant audits, debugging or provider migration.