Railway's official agent skill: create projects, provision databases and buckets, deploy, manage variables and domains, and read build failures back — from the CLI, API or MCP server.
Firebase Security Rules AuditorSkill
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
Diagnoses wrong gradients in differentiable NVIDIA Warp programs by measuring first — comparing autodiff against finite differences on a shrunk reproduction before proposing any fix.
Google's official skill for the gws CLI — drive Gmail, Drive, Calendar, Sheets, Docs, Chat and Admin APIs from an agent, with Model Armor screening.
Netlify's official skill for zero-config managed Postgres — querying from Functions, Drizzle setup, migrations and per-preview database branches.