Firebase game backend

From furkantokkan/agent-foundry · View interactive version

Firebase game backend is an AI agent skill from the GitHub repository furkantokkan/agent-foundry. Use for Firebase-backed game features in Unity or JavaScript, including Auth, Firestore, Realtime Database, Cloud Functions Gen2 with Express APIs, typed Unity request/response clients, Remote Config, App Check, security rules, emulators, deployment, and client/server boundaries.

How to use this skill

Skill file

Firebase Game Backend

Use this skill for Firebase features that support a Unity game, web dashboard,

companion app, or JavaScript service.

First Read

Inspect whichever files exist:

Core Rules

anti-cheat-sensitive rewards, purchases, inventory grants, and leaderboards.

and Express.js HTTP routes. Unity should call those routes through typed

request/response client wrappers, not by scattering raw HTTP calls through

gameplay code.

success path and important failure paths. Emulator/Newman coverage complements

handler unit tests; it does not replace them.

Workflow

  1. Identify the feature: auth, save, leaderboard, inventory, economy, matchmaking,

remote config, analytics, storage, or admin tooling.

  1. Decide which operations are safe on the client and which require trusted code.
  2. Check data model, indexes, rules, and Cloud Functions together.
  3. Add unit tests for expected behavior when changing routes, authorization,

validation, response contracts, or write behavior.

  1. For Unity, expose Firebase through game-facing interfaces.
  2. For JavaScript, use the modular Web SDK for browser code and Admin SDK only

in trusted server environments.

  1. For Functions HTTP APIs, keep Express routing, request validation, auth/App

Check guards, response envelopes, and Unity DTO alignment together.

Reference Loading

references/functions-express-unity.md

Official docs to verify current setup details:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.