dentvega/firebase-agent-skills/firebase-emulators
Claude Code and agent skill by dentvega/firebase-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Configures and runs the Firebase Local Emulator Suite for development — Firestore, Auth, Functions, Storage, RTDB, Pub/Sub, Eventarc — including client connection from web and Expo/React Native, seeding data via import/export, running rules unit tests, and using emulators in CI. Use whenever the user wants to develop or test Firebase code without hitting production, burning quota, or risking real data.
Install
npx vskill@latest install dentvega/firebase-agent-skills/firebase-emulatorsSKILL.md
The same SKILL.md was published earlier as dentvega/firebase-agent-skills/firebase-emulators.
Firebase Local Emulator Suite
The emulator suite runs Firebase services on localhost so you can develop and test without touching production. Every product you ship should have its local equivalent running here — it pays back the setup time within a week.
Minimum viable example
emulators:start with --export-on-exit means your seed data persists between runs. --import loads it on startup so every dev day starts from the same fixtures.
1. Initialize
In a Firebase project root:
Pick the emulators you need (at minimum: Auth, Firestore, Functions). Accept the default ports unless something on your machine conflicts. The wizard adds an emulators block to firebase.json:
singleProjectMode: true prevents the common mistake of accidentally running multiple project IDs against the same emulator instance.
2. Start
Open the UI at http://127.0.0.1:4000 — you get a dashboard with tabs for each running emulator, real-time logs, and direct manipulation of data (Firestore docs, Auth users, etc.).
For just one product:
3. Connect the client
The emulator hosts are 127.0.0.1 from the same machine. From a physical mobile device on the same Wi-Fi, use the host machine's LAN IP.
Web SDK
CRITICAL: call all connect*Emulator calls before any read/write or auth call. Once a service has talked to production, the emulator connection is silently ignored.
Expo / React Native
On Android emulators, 127.0.0.1 refers to the emulated device itself, not the host. Use 10.0.2.2 instead.
4. Seeding data — import / export
Hand-creating users and documents every time you start the emulator is painful. Export once, import every run:
After you make changes you want to keep (creating test users, seeding Firestore), stop the emulator with Ctrl+C — it writes the state to ./seed-data. Commit that folder to the repo so your team starts with the same fixtures.
For manual control:
5. Running scripts against the emulator
emulators:exec runs any command after starting the emulators and cleans up when the command exits:
This is the canonical pattern for integration tests in CI — see references/ci-and-rules-tests.md.
6. Auth shortcuts
The Auth emulator UI lets you create users, sign in as anyone with one click, and view ID token contents. Two pro features:
- Email verification / password reset links print to the emulator UI log instead of sending real email. Click the link directly from the log.
- OAuth flows (Google, Apple, etc.) use a fake account picker. No real OAuth client needed.
7. Functions hot reload
In a second terminal:
The Functions emulator watches functions/lib/ and reloads automatically when TypeScript output changes. Errors print to the same terminal as the emulator output.
8. Connecting Admin SDK
When running outside an emulator-managed function (e.g. a seed script), set env vars:
The Admin SDK auto-detects these env vars and routes calls to the emulators with admin privileges (bypassing security rules — exactly what you want for seeding).
9. Common mistakes
- Calling `connectFirestoreEmulator` after the first Firestore call. Silently no-ops. Always wire emulators before any other Firebase code runs.
- Forgetting Java. Firestore / RTDB / Pub-Sub emulators are JVM-based. Install Java 17 (
brew install openjdk@17on macOS) before first run. - `127.0.0.1` on Android emulator. Loopback there means the emulated device, not your host machine. Use
10.0.2.2on Android emulators; LAN IP on physical devices. - Committing seed data with real production exports. Treat exports as fixtures — manually crafted, no PII. Never copy a production dump into
./seed-data. - Running tests against production by accident. Use
--onlyandemulators:execso a failed-to-start emulator makes the test fail loudly, not silently fall through to prod credentials. - Mixing emulator and production traffic in one process. A single client can only point a given product at one place. If you need to read from prod and write to emulator (rare), use two separate
initializeAppinstances with different names.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/firebase-emulators/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dentvega/firebase-agent-skills/firebase-emulators)