dimitriremoiville/cc-mobile/firebase-services
Claude Code and agent skill by dimitriremoiville/cc-mobile
- community
Checking that the SKILL.md file is still in the repository.
Firebase integration patterns for this Flutter app — Crashlytics, Analytics, Remote Config, and App Check, each behind a thin interface that can be swapped or stubbed in tests. Load whenever wiring a new Firebase service or touching flavor configuration.
Install
npx vskill@latest install dimitriremoiville/cc-mobile/firebase-servicesSKILL.md
The same SKILL.md was published earlier as dimitriremoiville/cc-mobile/firebase-services.
Firebase services
Philosophy
Firebase SDKs should never be imported above data/. Every service has:
- A domain-level interface in
domain/services/(pure Dart, no Firebase). - A concrete implementation in
data/firebase/that wraps the SDK. - A stub fake in
test/support/for tests.
Swap at the composition root (main.dart / injection.dart).
FlutterFire configuration
One firebase_options.dart per flavor. Generate via FlutterFire CLI per flavor:
main_dev.dart / main_prod.dart pass the right options into Firebase.initializeApp(...).
Crashlytics
domain/services/crash_reporter.dart:
data/firebase/firebase_crash_reporter.dart:
Bootstrap in main.dart:
Wire the interface via GetIt: sl.registerLazySingleton<CrashReporter>(() => FirebaseCrashReporter(FirebaseCrashlytics.instance)).
Analytics
Keep the wire format decoupled from Firebase-specific event shapes:
Event names and parameters go in a domain/analytics/events.dart registry so you don't scatter magic strings.
Remote Config
One fetch at startup, then read synchronously:
Gate with a minimumFetchInterval in release; during dev you want a short interval.
App Check
Guards your Firebase backend from non-legit clients:
Debug builds enroll via AndroidProvider.debug / AppleProvider.debug with a device token registered in the Firebase console.
Flavor config
android/app/build.gradle.kts:
Drop google-services.json for each flavor under android/app/src/{flavor}/google-services.json.
iOS: one GoogleService-Info.plist per scheme under ios/Runner/Firebase/{Dev,Prod}/, copied via a Run Script phase.
Testing
Every interface has a Fake* counterpart:
Never call Firebase.initializeApp() in unit tests. Integration tests that need live Firebase use the emulator suite.
Hard nos
- No
import 'package:firebase_*/...inlib/domain/orlib/presentation/. - No unconditional
FirebaseAnalytics.instance.logEvent(...)— go through the injectedAnalyticsClient. - No committing a dev
GoogleService-Info.plist/google-services.jsonfor prod, or vice versa. - No
fetchAndActivate()on every app launch without caching; respect the fetch interval. - No enabling Crashlytics in debug without a fence — your stack traces drown theirs.
Security
- Security scanPassed, 90 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 repositoryCheckingflutter/.claude/skills/firebase-services/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/dimitriremoiville/cc-mobile/firebase-services)