blueprint-firebase-data-rules

blueprint-firebase-data-rules is a skill for Claude Code, Codex from receptron/mulmoterminal. It costs 28 tokens per session (346 once invoked), scanned A, original, MIT.

A Firebase Firestore rules and emulator test setup based on a written data-access specification. Firestore rules control who can read, create, update, or delete each collection; the emulator tests them without using a real project.

In plain words
What is it for?
It is for writing collection rules, protecting ownership and permitted fields, and testing every role's allowed and denied operations.
Why use it?
It prevents clients from accessing or changing data outside the agreed permissions and checks both allowed and refused actions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for writing collection rules, protecting ownership and permitted fields, and testing every role's allowed and denied operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/receptron/mulmoterminal/data-rules
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 receptron/mulmoterminal --skill data-rules
Clone the repo
git clone --depth 1 https://github.com/receptron/mulmoterminal

Made for: Claude Code, Codex.

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 blueprint-firebase-data-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/receptron/mulmoterminal/data-rules/github.svg)](https://agentmods.dev/skills/receptron/mulmoterminal/data-rules)
Your own site
<a href="https://agentmods.dev/skills/receptron/mulmoterminal/data-rules"><img src="https://agentmods.dev/badge/skills/receptron/mulmoterminal/data-rules/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 blueprint-firebase-data-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/receptron/mulmoterminal/data-rules"><img src="https://agentmods.dev/badge/skills/receptron/mulmoterminal/data-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 346 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 original No closer match found 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.00028 $0.00346
Opus 5.5 $0.00011 $0.00138
Sonnet 5.5 $0.00006 $0.00069
Haiku 4.5 $0.00003 $0.00035

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

Security

Grade A, and why

blueprint-firebase-data-rules 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 18d 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.

blueprints/firebase/skills/data-rules/SKILL.md · 29 lines

What it actually says

Data model and security rules

The spec has a table per collection: who may read, create, update and delete. That table IS the rules.

  1. For each collection, add a match block above the final deny-all. Open only what the table says.
  2. On create, pin ownership (request.resource.data.ownerUid == request.auth.uid) and the fields a client may set (request.resource.data.keys().hasOnly([...])).
  3. On update, forbid changing ownership and any field the table does not let that role change (diff(resource.data).affectedKeys().hasOnly([...])).
  4. Write test/blueprint/rules.spec.ts with BOTH directions for every row of the table: the allowed operation succeeds (assertSucceeds) and every other role is refused (assertFails). A rule with only a success test is not tested.
  5. If the table is ambiguous, ask — do not open more than it says.

Done when the check passes: emulator-test.sh rules.

Always

  • Read .blueprint/spec.md first. It is the agreed specification; do not widen it.
  • When you need a decision, ask it through the blueprint question tool and stop. Do not guess.
  • Never enable billing, deploy to production, delete data or handle a credential unless this step's gates say the user approved exactly that.
  • Say you are done by stopping; the executor runs the check. Do not claim success yourself.
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. 18d ago First seen · 29 lines · 28 tokens per session scan A fe4b659b0dfb

Subscribe to this mod's changes

blueprint-firebase-data-rules is a skill published in the GitHub repository receptron/mulmoterminal (238 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 346 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-28.