SecurityApache-2.0

Firestore Security Rules Creation

by Firebase (opens in a new tab) firebase/agent-skills

Authors and hardens Firestore rules from the app's data model and query patterns.

Installation

Skills CLI

Skills CLI command
npx skills@latest add firebase/agent-skills --skill firestore-rules-creation

Requires Node.js and npm. Choose your agents in the installer; add -g for a global installation.

Fieldbook review

Reviewed 27 Sept 2026

Scans the codebase, writes firestore.rules, documents its assumed schema, attacks the rules mentally, and validates them with the Firebase CLI. When delegation and the named firestore-rules-author subagent are available, that subagent must author the file; Firebase dry-run validation contacts the project service.

  • LicenceApache-2.0
  • FrontmatterValid name and description
  • Risky patternsNone found
  • Size589 lines
  • Last checked27 Sept 2026 · 4277c9b390ef3f94db398db9d6f19e67726bdeb7e99e2e9583faaa21224e1576

What it can touch

  • Edits code

    Changes files in your project.

  • Writes docs

    Creates or updates documents such as specs, plans or ADRs.

  • Runs commands

    Runs shell commands such as tests, builds or installs.

  • Subagents

    Starts other agents to work in parallel.

  • Network

    Reaches external services or the web.

Read the source

Fieldbook links to the original instead of copying it, so you always read the version you install.

skills/firestore-rules-creation/SKILL.md on GitHub (opens in a new tab)