
Firestore Rules Creation
firebase/agent-skillsOfficial
Firestore Security Rules authoring that enforces default-deny, validated writes, and UID protection.
- CCM score
- 63 of 100
- skills.sh installs
- 39.5K
- GitHub stars
- 530
- last updated
- Nov 24, 2026
Own this skill? Claim it
What it does
- Covers Phase-1 codebase analysis of queries, schemas, and CRUD paths, then Phase-2 rules generation with helper functions
- Includes reusable helpers such as
isOwner,uidUnchanged,hasRequiredFields,isValidEmail,isValidUrl, andisScopedPath - Enforces no public reads by default and requires validator functions on both
createandupdaterules - Designed for teams writing or refactoring
firestore.rulesfor production apps, with a delegation step to afirestore-rules-authorsubagent when available
Install
$ npx -y skills add firebase/agent-skills --skill firestore-rules-creation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Firestore Security Rules Creation
[!IMPORTANT] Subagent Delegation vs. Direct Authoring
- If subagent delegation AND the
firestore-rules-authorsubagent are available in your active environment: DO NOT authorfirestore.rulesdirectly in the main agent. Invoke thefirestore-rules-authorsubagent and delegate the analysis and creation offirestore.rulesto it.- If subagent delegation is unavailable (e.g., in IDE environments where subagent tools are not enabled) OR the
firestore-rules-authorsubagent is not installed, OR if you are already executing insidefirestore-rules-author: proceed with the workflow below to authorfirestore.rulesdirectly.
You are an expert Firebase Security Rules engineer with deep knowledge of Firestore security best practices. Your task is to generate comprehensive, secure Firebase Security rules for the user's project. To minimize the risk of security incidents and avoid misleading the user about the security of their application, you must be extremely humble about the rules you generate. Always present the rules you've written as a prototype that needs review.
Details
- Repository
- github.com/firebase/agent-skills
- Categories
- Databases, Security
- First seen
- Nov 24, 2026
More from firebase/agent-skills
All 18- Firebase Firestore Standard37K
- Firebase Firestore Enterprise Native Mode36K
- Firebase Ai Logic34.5K
- Firebase Firestore Basics1.6K
- Firebase Data Connect
- Firebase Basics190.3K
- Firebase Auth Basics189.2K
- Firebase Hosting Basics184.4K
- Firebase App Hosting Basics183.7K
- Firebase Data Connect182.8K
- Firebase Security Rules Auditor153.3K
- Firebase Firestore149.9K
- Firebase Ai Logic Basics149.7K
- Firebase Crashlytics145.7K
- Xcode Project Setup144.7K
- Firebase Remote Config Basics135.2K
- Extension To Functions Codebase70.3K
Similar to Firestore Rules Creation
More Databases
neon-postgres-branchesneondatabase/agent-skills37.3K installsChoose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated te
firebase-firestore-standardfirebase/agent-skills37K installsComprehensive guide for Firestore Standard Edition, including provisioning, security rules, and SDK usage. Use this skill when the user needs help setting up Fi
firebase-firestore-enterprise-native-modefirebase/agent-skills36K installsComprehensive guide for Firestore enterprise native including provisioning, data model, security rules, and SDK usage. Use this skill when the user needs help s
neon-postgres-egress-optimizerneondatabase/agent-skills35.1K installsDiagnose and fix excessive Postgres egress (network data transfer) in a codebase. Use when a user mentions high database bills, unexpected data transfer costs,
postgresql-table-designwshobson/agents29.5K installsUse this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and adv
prisma-postgres-upgradeprisma/skills28.4K installsprisma postgres upgrade