Firebase Mobile
SkillDev toolsFirebase backend services integration for mobile apps
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
Then ask your AI: use the Firebase Mobile skill
What this skill tells your AI
The instructions your AI receives, as published by a5c-ai/babysitter in library/specializations/mobile-development/skills/firebase-mobile/SKILL.md and read by ahel’s review.
Overview
This skill provides Firebase backend services integration for mobile applications. It enables configuration of Authentication, Firestore, Storage, Cloud Functions, and other Firebase services.
Allowed Tools
bash- Execute Firebase CLI commandsread- Analyze Firebase configurationswrite- Generate security rules and configurationsedit- Update Firebase implementationsglob- Search for Firebase filesgrep- Search for patterns
Capabilities
Firebase Authentication
-
Auth Methods
- Email/password authentication
- OAuth providers (Google, Apple, Facebook)
- Phone authentication
- Anonymous authentication
- Custom token authentication
-
Auth State
- Handle auth state changes
- Token refresh
- Session persistence
- Multi-factor authentication
Cloud Firestore
-
Database Operations
- Document CRUD operations
- Collection queries
- Real-time listeners
- Batch operations
- Transactions
-
Security Rules
- Write Firestore rules
- Test rules with emulator
- Handle role-based access
- Validate data structure
Firebase Storage
- File Operations
- Upload files with progress
- Download files
- Generate download URLs
- Handle metadata
- Configure security rules
Cloud Functions
- Function Integration
- Call HTTPS functions
- Call callable functions
- Handle function responses
- Configure timeouts
Remote Config
- Feature Flags
- Fetch remote config
- Configure defaults
- Handle fetch intervals
- A/B testing setup
Performance Monitoring
- Performance Tracking
- Automatic traces
- Custom traces
- Network request monitoring
- Screen rendering metrics
Target Processes
firebase-backend-integration.js- Firebase integrationfirebase-cloud-messaging.js- Push notificationsmobile-analytics-setup.js- Analytics
Dependencies
- Firebase SDK
- Firebase CLI
- Google Cloud account
Usage Examples
Firebase Setup (iOS)
// AppDelegate.swift
import FirebaseCore
import FirebaseAuth
import FirebaseFirestore
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
return true
}
}
// AuthService.swift
class AuthService: ObservableObject {
@Published var user: User?
private var handle: AuthStateDidChangeListenerHandle?
init() {
handle = Auth.auth().addStateDidChangeListener { [weak self] _, user in
self?.user = user
}
}
func signIn(email: String, password: String) async throws {
try await Auth.auth().signIn(withEmail: email, password: password)
}
func signUp(email: String, password: String) async throws {
try await Auth.auth().createUser(withEmail: email, password: password)
}
func signOut() throws {
try Auth.auth().signOut()
}
}
Firestore Repository (Android)
// data/repository/PostRepository.kt
class PostRepository @Inject constructor(
private val firestore: FirebaseFirestore
) {
private val postsCollection = firestore.collection("posts")
fun observePosts(): Flow<List<Post>> = callbackFlow {
val listener = postsCollection
.orderBy("createdAt", Query.Direction.DESCENDING)
.addSnapshotListener { snapshot, error ->
if (error != null) {
close(error)
return@addSnapshotListener
}
val posts = snapshot?.documents?.mapNotNull { it.toObject<Post>() } ?: emptyList()
trySend(posts)
}
awaitClose { listener.remove() }
}
suspend fun createPost(post: Post): String {
val docRef = postsCollection.add(post).await()
return docRef.id
}
suspend fun updatePost(postId: String, updates: Map<String, Any>) {
postsCollection.document(postId).update(updates).await()
}
suspend fun deletePost(postId: String) {
postsCollection.document(postId).delete().await()
}
}
Security Rules
// firestore.rules
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
function isAuthenticated() {
return request.auth != null;
}
function isOwner(userId) {
return isAuthenticated() && request.auth.uid == userId;
}
match /users/{userId} {
allow read: if isAuthenticated();
allow write: if isOwner(userId);
}
match /posts/{postId} {
allow read: if true;
allow create: if isAuthenticated()
&& request.resource.data.authorId == request.auth.uid;
allow update, delete: if isOwner(resource.data.authorId);
}
}
}
Firebase Emulator
# Start emulators
firebase emulators:start
# Run with emulator in code
if ProcessInfo.processInfo.environment["USE_FIREBASE_EMULATOR"] == "YES" {
Auth.auth().useEmulator(withHost: "localhost", port: 9099)
Firestore.firestore().useEmulator(withHost: "localhost", port: 8080)
Storage.storage().useEmulator(withHost: "localhost", port: 9199)
}
Quality Gates
- Security rules tested with emulator
- Authentication flows verified
- Offline persistence tested
- Error handling comprehensive
Related Skills
push-notifications- FCM integrationmobile-analytics- Firebase Analyticsmobile-security- Security patterns
Version History
- 1.0.0 - Initial release
Signals
- GitHub stars
- 2k
- Forks
- 112
- Last commit
- Sep 2026
ahel review
K1binfo
installs-packages (in README.md)
Automated review, not a security audit. Ruleset v1+k2.
Advanced
- Item type
- skill
- Key
firebase-mobile- Source
- github.com/a5c-ai/babysitter
Related picks
Skill · thedaviddias
The pick for JavaScriptmodern-javascript-patterns
Skill · wshobson
The pick for JavaScriptkotlin-tooling-agp9-migration
Skill · kotlin
The pick for Kotlinapollo-kotlin
Skill · apollographql
The pick for Kotlinwrite-swift
Skill · emilkowalski
The pick for Swiftswift-concurrency-expert
Skill · davila7
The pick for Swift