Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions skills/firebase-basics/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
---
name: firebase-basics
metadata:
category: Serverless
description: >-
Provides foundational Firebase CLI setup, CLI installation, version checks (`firebase-tools@latest --version`), CLI login (including --no-localhost), project creation, project selection (`firebase use`), and app config file downloads (`google-services.json`, `GoogleService-Info.plist`). Use ONLY for CLI login, project creation/switching, or downloading app config files. Don't use for Firebase Hosting deploy, Firestore, Auth, App Hosting, Data Connect, Crashlytics, or Remote Config.
---

# Prerequisites
# Firebase Basics

## Prerequisites

Complete these setup steps before proceeding:

Expand Down Expand Up @@ -73,7 +77,7 @@ Complete these setup steps before proceeding:
*Note: The `<project-id>` must be 6-30 characters, lowercase, and can
contain digits and hyphens. It must be globally unique.*

# Firebase Usage Principles
## Firebase Usage Principles

Adhere to these principles:

Expand Down Expand Up @@ -122,7 +126,7 @@ Adhere to these principles:
`app/google-services.json` for Android, or a path to be linked by
`xcode-project-setup` for iOS).

# References
## References

- **Initialize Firebase:** See
[references/firebase-service-init.md](references/firebase-service-init.md)
Expand All @@ -135,7 +139,7 @@ Adhere to these principles:
- **Android**: See [references/android_setup.md](references/android_setup.md)
- **iOS**: See [references/ios_setup.md](references/ios_setup.md)

# Common Issues
## Common Issues

- **Login Issues:** If the browser fails to open during the login step, use
`npx -y firebase-tools@latest login --no-localhost` instead.
Expand Down
4 changes: 2 additions & 2 deletions skills/firebase-basics/references/ios_setup.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Firebase iOS Setup Guide

# ⛔️ CRITICAL RULE: STATE MANAGEMENT (OBSERVATION VS COMBINE) ⛔️
## ⛔️ CRITICAL RULE: STATE MANAGEMENT (OBSERVATION VS COMBINE) ⛔️

When writing or updating SwiftUI code, you **MUST** prioritize the modern Swift
**Observation framework (`@Observable` macro and `@State`)** as your default
Expand All @@ -16,7 +16,7 @@ However, it is acceptable to use **Combine** (`ObservableObject`, `@Published`,
If neither of those conditions are true, default to the Swift 5.9+ Observation
framework.

# ⛔️ CRITICAL RULE: INITIALIZATION ORDER ⛔️
## ⛔️ CRITICAL RULE: INITIALIZATION ORDER ⛔️

When using SwiftUI, you **MUST** ensure `FirebaseApp.configure()` is called
**BEFORE** any Firebase-dependent state objects are initialized.
Expand Down
Loading