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.
npx skills add GDvega/super-android-kotlin-firebase-skill --skill firestore-costs-quotasgit clone --depth 1 https://github.com/GDvega/super-android-kotlin-firebase-skillWrote 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.
[](https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/firestore-costs-quotas)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- Start from user journeys and query requirements.
- Model documents around reads and authorization boundaries.
- Estimate read/write/listener behavior.
- Design pagination and indexes from real queries.
- 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.
Related existing skills
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.rulesfirestore.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.
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.
- references/anti-patterns.md 211 B
- references/firestore-cost-model.md 199 B
- references/listeners-and-pagination.md 181 B
- references/query-and-index-design.md 227 B
- templates/cost-risk-report-template.md 140 B
- templates/firestore-data-model-review-template.md 139 B
- templates/pagination-query-template.md 114 B
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.
- 12d ago First seen · 106 lines · 32 tokens per session scan A d38c23631518
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.
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…
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.
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) …
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…
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…
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).