
Description
firestore-rules-creation is an agent skill from the firebase/agent-skills repository, listed on skills.sh. It designs, writes, refactors and hardens production-grade Cloud Firestore Security Rules in firestore.rules files. Security rules decide who can read and write each part of a Firestore database, so the skill focuses on getting them right for a real app rather than writing permissive placeholders. The skill includes a rule about delegation. If the environment supports subagents and the firestore-rules-author subagent is installed, the main agent should hand the analysis and writing of the rules to that subagent rather than writing the file itself. If subagents are unavailable, as in some IDE setups, or the subagent is not installed, or the agent is already running inside that subagent, the skill tells the agent to author the rules directly using the workflow it describes. The listing shows about 22.9K installs on skills.sh, and the repository has about 475 GitHub stars. All three security audits show Pass.…
Highlights
- Designs and hardens Firestore rules
- Refactors existing firestore.rules
- Delegates to a rules author subagent
- Falls back to direct authoring
Ratings & Reviews
No ratings yet
Be the first to rate firestore-rules-creation.
People also visit

firebase-firestore-basics
Comprehensive guide for Firestore basics including provisioning, security rules
firebase/firebase-security-rules-auditor
Audit Firestore security rules and flag risky patterns

firebase-security-rules-auditor
Automated security auditor for Firestore rules using red-team methodology
firestore-rules-creation FAQ
What does firestore-rules-creation do?
It writes, refactors and hardens the security rules that control access to a Cloud Firestore database.
How do I install it?
Run: npx skills add https://github.com/firebase/agent-skills --skill firestore-rules-creation
Will it write the rules itself?
Only if subagents are unavailable or the firestore-rules-author subagent is not installed. Otherwise it delegates to that subagent.
Is it only for new projects?
No. The skill covers designing, authoring, refactoring and hardening rules.
Has it been checked for security?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best firestore-rules-creation alternatives?
Popular alternatives to firestore-rules-creation include firebase-firestore-basics, firebase-firestore-standard and firebase/firebase-security-rules-auditor. See all firestore-rules-creation alternatives







