firebase-firestore-standard
Set up and secure Cloud Firestore databases
Firebase developers need clear guidance on provisioning Firestore, writing secure rules, and using the SDK correctly. This skill provides comprehensive documentation covering all aspects of Firestore Standard Edition.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "firebase-firestore-standard". Generate basic security rules for a posts collection
Expected outcome:
Rules with default deny, authenticated read access for published posts, write access limited to post authors, validation for title and content fields, and immutable createdAt timestamp.
Using "firebase-firestore-standard". How do I query with multiple where clauses?
Expected outcome:
Explanation of when composite indexes are required, example query syntax using query() with multiple where conditions, and link to create the index in Firebase Console.
Security Audit
SafeThis skill contains documentation markdown files only. Static analyzer flagged 246 patterns (external commands, URLs, regex patterns) that are all false positives - they are code examples in documentation, not executable code. No actual security risks detected.
Quality Score
What You Can Build
New Firebase Project Setup
Developers creating their first Firestore database need guidance on configuration files, security rules, and deployment workflow.
Security Rules Implementation
Teams building production applications need comprehensive security rules with proper authentication, authorization, and data validation.
Web Application Integration
Frontend developers need to integrate Firestore into React, Vue, or vanilla JavaScript applications using the modular SDK.
Try These Prompts
Help me set up Cloud Firestore for a new Firebase project. I need to create the configuration files and deploy initial security rules.
Generate Firestore Security Rules for a users collection where each user can only read and write their own profile document. Include validation for email and name fields.
I need to query cities by state and population with orderBy. What composite index do I need and how do I configure it in firestore.indexes.json?
Analyze my codebase and generate comprehensive Firestore Security Rules for a task management app with users, tasks, and comments collections. Include role-based access control with admin and user roles.
Best Practices
- Always start security rules with default deny and explicitly grant minimum required permissions
- Use the Validator Function Pattern to avoid repetition and ensure consistent validation across create and update rules
- Exempt high-write-rate fields like timestamps from automatic indexing to avoid write bottlenecks
Avoid
- Using allow read: if isAuthenticated() for collections containing PII like email addresses
- Allowing users to create or update their own role field without proper authorization checks
- Writing security rules without validating data types and field constraints on updates