firestore-rules-creation

firestore-rules-creation is a skill for Claude Code from pleaseai/claude-code-plugins. It costs 103 tokens per session (6,419 once invoked), scanned A, a copy of firestore-rules-creation, MIT.

A skill for creating, refactoring, and strengthening Cloud Firestore security rules. Firestore is Firebase's cloud document database, and its rules control who can read or change data.

In plain words
What is it for?
Use it to define data access, validate documents, enforce roles, and protect Firestore collections and updates.
Why use it?
It helps prevent unauthorized access, unsafe updates, type errors, and missing limits, while treating the result as a prototype that needs review.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Part of the firebase plugin — 13 skills shipped together

Good fit Use it to define data access, validate documents, enforce roles, and protect Firestore collections and updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pleaseai/claude-code-plugins/firestore-rules-creation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pleaseai/claude-code-plugins --skill firestore-rules-creation
Clone the repo
git clone --depth 1 https://github.com/pleaseai/claude-code-plugins

Made for: Claude Code.

Or install firebase, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for firestore-rules-creation

README.md
[![agentmods](https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/firestore-rules-creation/github.svg)](https://agentmods.dev/skills/pleaseai/claude-code-plugins/firestore-rules-creation)
Your own site
<a href="https://agentmods.dev/skills/pleaseai/claude-code-plugins/firestore-rules-creation"><img src="https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/firestore-rules-creation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for firestore-rules-creation

Your own site · 80×15
<a href="https://agentmods.dev/skills/pleaseai/claude-code-plugins/firestore-rules-creation"><img src="https://agentmods.dev/badge/skills/pleaseai/claude-code-plugins/firestore-rules-creation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.06419
Opus 5.5 $0.00041 $0.02568
Sonnet 5.5 $0.00021 $0.01284
Haiku 4.5 $0.00010 $0.00642

Measured 17d ago against content hash 4277c9b390ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

firestore-rules-creation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to firestore-rules-creation — 32 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/firebase/.agents/skills/firestore-rules-creation/SKILL.md · 589 lines

How it starts

The opening of the file, as written. The whole thing — 589 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Firestore Security Rules Creation

[!IMPORTANT] Subagent Delegation vs. Direct Authoring

  • If subagent delegation AND the firestore-rules-author subagent are available in your active environment: DO NOT author firestore.rules directly in the main agent. Invoke the firestore-rules-author subagent and delegate the analysis and creation of firestore.rules to it.
  • If subagent delegation is unavailable (e.g., in IDE environments where subagent tools are not enabled) OR the firestore-rules-author subagent is not installed, OR if you are already executing inside firestore-rules-author: proceed with the workflow below to author firestore.rules directly.

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.

After generating the rules, you MUST explicitly communicate to the user exactly like this: "I've set up prototype Security Rules to keep the data in Firestore safe. They are designed to be secure for . However, you should review and verify them before broadly sharing your app. If you'd like, I can help you harden these rules."

Workflow

Follow this structured workflow strictly:

Phase-1: Codebase Analysis
  1. Scan the entire codebase to identify:
    • Programming language(s) used (for understanding context only)
    • All Firestore collection and document paths
    • All Firestore Queries: Identify every where(), orderBy(), and limit() clause. The security rules MUST allow these specific queries.
    • Data models and schemas (interfaces, classes, types)
    • Data types for each field (strings, numbers, booleans, timestamps, URLs, emails, etc.)
    • Required vs. optional fields
    • Field constraints (min/max length, format patterns, allowed values)
    • CRUD operations (create, read, update, delete)
    • Authentication patterns (Firebase Auth, custom tokens, anonymous)
    • Access patterns and business logic rules
  2. Synthesize your findings concisely (in memory; do not create extra untracked scratch files in the workspace) and refer to them when generating the security rules.

Read the full file on GitHub · 589 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 17d ago Changed · +4 lines · +19 tokens per session 4277c9b390ef
  2. 22d ago Changed fd1dfeb5f01b
  3. 1mo ago First seen · 585 lines · 84 tokens per session scan A 3e2686cb5062

Subscribe to this mod's changes

firestore-rules-creation is a skill published in the GitHub repository pleaseai/claude-code-plugins (16 stars, last pushed 5d ago), licensed MIT. It adds 103 tokens to every session and 6,419 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to firestore-rules-creation, differing in 32 lines, and is treated as a copy.

Related

Other skills, from other repositories

dbx

Use the DBX CLI to inspect DBX-managed database connections, explore schemas, run bounded read-only queries, generate DBML or schema documentation, and open tables in DBX Desktop. Use when the user asks to work with a database configured in DBX from a shell-capable AI agent. Never enable writes unless the user…

t8y2/dbx · 74 tokens

azure-mgmt-mongodbatlas-dotnet

Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.

microsoft/skills · 64 tokens

nosqli

NoSQL injection — MongoDB operator injection ($ne, $gt, $where, $regex), CouchDB / Firebase / Redis attack patterns, auth bypass, blind extraction.

PurpleAILAB/Decepticon · 38 tokens

prisma-mongodb-upgrade

Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when "upgrade to prisma 7" comes up in a project with provider = "mongodb", or when evaluating a move to Prisma Next. Triggers on "upgrade prisma mongodb"…

nitrocloudofficial/nitrostack · 95 tokens

byted-volcengine-mongodb

An operations tool for Volcengine MongoDB, a document database that stores data in flexible, JSON-like records. It can query managed MongoDB instances and return details for further explanation or diagnosis.

bytedance/agentkit-samples · 82 tokens

mongodb-connection

Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client (eg, when calling connect()), configuring connection pools, troubleshooting connection errors…

fcakyon/claude-codex-settings · 122 tokens