firestore-costs-quotas

firestore-costs-quotas is a skill for Claude Code, Codex from GDvega/super-android-kotlin-firebase-skill. It costs 32 tokens per session (650 once invoked), scanned A, original, MIT.

A guide to designing Google Firestore data access with attention to queries, security, limits, and cost. Firestore is a cloud database that stores data in collections and documents.

In plain words
What is it for?
Use it when planning collections, documents, listeners, pagination, indexes, offline sync, and security rules.
Why use it?
It helps prevent expensive reads, quota problems, weak authorization, and data structures that are difficult to query as an app grows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it when planning collections, documents, listeners, pagination, indexes, offline sync, and security rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gdvega/super-android-kotlin-firebase-skill/firestore-costs-quotas
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 GDvega/super-android-kotlin-firebase-skill --skill firestore-costs-quotas
Clone the repo
git clone --depth 1 https://github.com/GDvega/super-android-kotlin-firebase-skill

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 firestore-costs-quotas

README.md
[![agentmods](https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/firestore-costs-quotas/github.svg)](https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/firestore-costs-quotas)
Your own site
<a href="https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/firestore-costs-quotas"><img src="https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/firestore-costs-quotas/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-costs-quotas

Your own site · 80×15
<a href="https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/firestore-costs-quotas"><img src="https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/firestore-costs-quotas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 650 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.00032 $0.00650
Opus 5 $0.00016 $0.00325
Sonnet 5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 12d ago against content hash d38c23631518, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

firestore-costs-quotas 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 12d 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.

skills/firestore-costs-quotas/SKILL.md · 106 lines

How it starts

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

Purpose

Design Firestore access patterns that are secure, queryable and cost-aware before the app scales.

When to use

  • Designing collections and documents.
  • Optimizing Firestore queries or listeners.
  • Estimating Firestore cost risk.
  • Reviewing indexes, pagination or real-time updates.

Inputs to inspect

  • Data model diagrams or repository code
  • Collections, documents and subcollections
  • Queries, listeners and pagination
  • Indexes and Security Rules
  • Offline persistence and sync behavior

Required workflow

  1. Start from user journeys and query requirements.
  2. Model documents around reads and authorization boundaries.
  3. Estimate read/write/listener behavior.
  4. Design pagination and indexes from real queries.
  5. Name cost, quota and security risks.

Rules

  • Do not store images or base64 blobs in Firestore.
  • Do not read full collections when pagination works.
  • Do not attach broad global listeners by default.
  • Avoid huge arrays for complex relationships.
  • Design rules and indexes with the data model.

Local skills to invoke

  • firestore
  • firebase-core
  • android-architecture
  • workmanager-background-sync

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • firebase/agent-skills — use for deeper Firebase product, Firestore, Security Rules or emulator workflow guidance when installed.

Files commonly touched

  • Repository Firestore code
  • firestore.rules
  • firestore.indexes.json
  • DTO/domain models
  • Sync managers
  • Pagination UI state

Commands to validate

./gradlew test
firebase emulators:exec --only firestore "npm test"

Common mistakes to avoid

  • Counting writes but ignoring listener re-reads.
  • Using document IDs that leak sensitive relationships.
  • Designing indexes after shipping slow queries.
  • Ignoring offline cache invalidation.

Read the full file on GitHub · 106 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 106 lines · 32 tokens per session scan A d38c23631518

Subscribe to this mod's changes

firestore-costs-quotas is a skill published in the GitHub repository GDvega/super-android-kotlin-firebase-skill (2 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 650 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

azure-resource-manager-mysql-dotnet

Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "MySQL", "MySqlFlexibleServer", "MySQL Flexible Server", "Azure Database for MySQL", "MySQL database…

microsoft/skills · 87 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

azure-resource-manager-redis-dotnet

Azure Resource Manager SDK for Redis in .NET. Use for MANAGEMENT PLANE operations: creating/managing Azure Cache for Redis instances, firewall rules, access keys, patch schedules, linked servers (geo-replication), and private endpoints via Azure Resource Manager. NOT for data plane operations (get/set keys, pub/sub) …

microsoft/skills · 114 tokens

azure-resource-manager-sql-dotnet

Azure Resource Manager SDK for Azure SQL in .NET. Use for MANAGEMENT PLANE operations: creating/managing SQL servers, databases, elastic pools, firewall rules, and failover groups via Azure Resource Manager. NOT for data plane operations (executing queries) - use Microsoft.Data.SqlClient for that. Triggers: "SQL…

microsoft/skills · 109 tokens

azure-storage

Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool, cold, archive), when to use each tier, and tier comparison. Provides object storage, SMB file shares, async messaging, NoSQL key-value, and big data…

microsoft/skills · 158 tokens

x-osv

CLI for Google OSV database. Query vulnerabilities for packages, scan local projects for vulnerable dependencies. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill). Required Tool: Install osv-scanner for project scanning (see https://github.com/google/osv-scanner).

x-cmd/x-cmd · 72 tokens