Skip to content
Agent Orchestration
Skill

/data-rules

Model the collections from the spec and open each one explicitly in firestore.rules, proven by emulator tests.

BOOST
From plugin
mulmoterminal
24574 skills
Install
$ npx -y skills add receptron/mulmoterminal --skill data-rules --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/data-rules

Context preview

The summary Claude sees to decide when to auto-load this skill.

Model the collections from the spec and open each one explicitly in firestore.rules, proven by emulator tests.

SKILL.md

data-rules.SKILL.md
name: blueprint-firebase-data-rules
description: "Model the collections from the spec and open each one explicitly in firestore.rules, proven by emulator tests."

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.
Read more
Ships withmulmoterminal

Run multiple coding-agent sessions in parallel — and see which one needs you. A browser terminal for parallel AI coding agents: several sessions side by side, each in its own cell, with the one that needs you marked in colour.

Get the whole plugin
Stats
255
Stars
32
Forks
Active
Maintenance
TypeScript
Language
MIT
License
4h ago
Last commit
4mo ago
Created
18h ago
Added

Repo: receptron/mulmoterminal

Other skills on mulmoterminal.