firebase-emulator-ci
Skill2 starsChanged 5 months agoMITView on GitHub
Use for Firebase Emulator Suite setup, Firestore/Auth/Functions/Storage rules tests and CI validation with emulators:exec.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- super-android-kotlin-firebaseSkill
- accessibilitySkill
- agp9-kotlin-migrationSkill
- android-architectureSkill
- android-coreSkill
- android-navigation-3Skill
- code-review-refactorSkill
- compose-contextual-design-systemSkill
- compose-performanceSkill
- context-aware-ui-designSkill
- debuggingSkill
- dependency-injectionSkill
- dependency-upgrade-safetySkill
- design-test-gateSkill
- edge-to-edge-adaptive-uiSkill
- firebase-ai-logicSkill
- firebase-authSkill
- firebase-cloud-functionsSkill
- firebase-coreSkill
- firebase-crashlytics-analyticsSkill
- firebase-messagingSkill
- firestore-costs-quotasSkill
- firestoreSkill
- gradle-buildSkill
- jetpack-composeSkill
- kotlin-coreSkill
- macrobenchmark-baseline-profilesSkill
- networking-retrofit-ktorSkill
- play-store-releaseSkill
- r8-proguard-optimizationSkill
- room-datastoreSkill
- screen-ux-auditSkill
- security-privacySkill
- testingSkill
- ui-state-designSkill
- workmanager-background-syncSkill
- xml-to-compose-migrationSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
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
- Distinctive: line 8
Run Firebase-sensitive tests locally and in CI without touching production projects or open rules.
- Distinctive: line 30
Write rules or functions tests against emulators only.
- Very specific: line 31
Run tests with emulators:exec in CI.
- Distinctive: line 32
Document environment separation and production safeguards.
- Distinctive: line 36
Do not point emulator tests at production.
- Distinctive: line 37
Do not use open rules in production.
- Very specific: line 38
Use emulators:exec for CI lifecycle when possible.
- Distinctive: line 39
Keep service accounts out of the repo.
- Distinctive: line 54
Do not assume these companion skills are installed.
- Distinctive: line 93
Use $super-android-kotlin-firebase to add Firebase Emulator CI for Firestore rules.
- Distinctive: line 94
Use $super-android-kotlin-firebase to make these Firebase tests avoid production.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Run Firebase-sensitive tests locally and in CI without touching production projects or open rules.
When to use
- Testing Firebase Security Rules.
- Configuring Firebase Emulator Suite.
- Adding CI for Firestore, Auth, Functions or Storage tests.
- Separating dev, staging and production Firebase environments.
Inputs to inspect
firebase.jsonfirestore.rulesandstorage.rulesfunctions/package files.github/workflows/*package.jsonscriptstest/andandroidTest/
Required workflow
- Identify Firebase products that need emulators.
- Configure emulator ports and project aliases.
- Write rules or functions tests against emulators only.
- Run tests with
emulators:execin CI. - Document environment separation and production safeguards.
Rules
- Do not point emulator tests at production.
- Do not use open rules in production.
- Use
emulators:execfor CI lifecycle when possible. - Keep service accounts out of the repo.
- Fail CI on rules regressions.
Related existing skills
Local skills to invoke
- firebase-core
- firestore
- firebase-cloud-functions
- testing
- security-privacy
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.
- skydoves/android-testing-skills — use for deeper Android or Compose UI testing, semantics, assertions or test workflow guidance.
- firebase/agent-skills — use for deeper Firebase product, Firestore, Security Rules or emulator workflow guidance when installed.
Files commonly touched
firebase.jsonfirestore.rulesstorage.rulesfunctions/package.json.github/workflows/*test/**/*rules*
Commands to validate
firebase emulators:exec --only firestore "npm test"
npm test
./gradlew testCommon mistakes to avoid
- Running tests against real production data.
- Keeping permissive demo rules after setup.
- Starting emulators manually in CI without cleanup.
- Forgetting Storage rules when Firestore is tested.
Checklist
- Emulator config exists.
- Rules tests use emulator host.
- CI command uses emulator lifecycle.
- No secrets committed.
- Dev/staging/prod separation documented.
Example prompts
- Use $super-android-kotlin-firebase to add Firebase Emulator CI for Firestore rules.
- Use $super-android-kotlin-firebase to make these Firebase tests avoid production.
Expected response style
Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.
References
- ../../docs/audits/FUENTES_LOCALES.md
- references/emulator-suite-setup.md
- references/firestore-rules-testing.md
- references/github-actions-emulator-ci.md
- references/dev-staging-prod-separation.md
- templates/firebase-json-template.md
- templates/firestore-rules-test-template.md
- templates/github-actions-firebase-emulator-template.yml
- templates/emulator-exec-script-template.md
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
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.

