agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/firebase/SKILL.md

firebase

Skill13 starsChanged 26 days agoMITView on GitHub

  • Installs packages

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react-native, gcp and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    react-native

    React Native renderer for json-render that turns JSON specs into native mobile UIs. Use when working with @json-render/react-native, building React Native UIs from JSON, creating mobile component catalogs, or rendering AI-generated specs on mobile.

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    gcp

    Google Cloud Platform services and best practices

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    flutter

    Flutter cross-platform framework

    Also in 3 projects that use this

  • 0xSeroSkill

    security

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use batch() for multiple writes to ensure atomicity.

    line 35
  2. Very specific:

    If initialized multiple times, the SDK throws a 'default app already exists' error.

    line 38
  3. Distinctive:

    Use this when your agent works with firebase — structured patterns beat pasted docs and prevent common hallucinations.

    line 44

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Firebase Admin API Skill

Overview

Firebase Admin SDK allows privileged server environments to interact with Firestore, Auth, and Cloud Messaging.

Installation

npm install firebase-admin
pip install firebase-admin

Authentication

Authenticate using a Google Cloud Service Account key JSON file or Application Default Credentials (ADC).

Core Concepts

  • Firestore: NoSQL document database.
  • Custom Tokens: JWTs minted on the server to log users into the client SDK.
  • FCM: Firebase Cloud Messaging for push notifications.

Common Workflows

  1. Initialize initializeApp({ credential: cert(serviceAccount) }).
  2. Access Firestore: getFirestore().
  3. Perform operations bypassing security rules.

Error Handling

Catch FirebaseError. Error codes match RPC statuses (e.g., not-found, already-exists).

Security

Service accounts have absolute God-mode access. Never deploy an Admin SDK service account key to a client application.

Rate Limits

Firestore allows 10,000 writes per second per database. Batch operations are limited to 500 documents per batch.

Best Practices

Use batch() for multiple writes to ensure atomicity. Use runTransaction() when a write depends on the current value of a document.

Troubleshooting

If initialized multiple times, the SDK throws a 'default app already exists' error. Check getApps().length before initializing.

References

Why use this skill

Use this when your agent works with firebase — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Inventing column names or schema fields
  • Using deprecated driver methods or wrong connection strings
  • Omitting connection pooling or transaction boundaries

Production checklist

  • Migrations version-controlled and applied via CI
  • Connection limits and pooling configured
  • Backups and restore procedure documented

Related skills

  • supabase — alternative to
  • clerk — alternative to
  • nextjs — integrates with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.