erkamyaman/ionic-capacitor-skills/ionic-firebase
Claude Code and agent skill by erkamyaman/ionic-capacitor-skills
- community
Checking that the SKILL.md file is still in the repository.
Wire Firebase Auth (email/password, Google, Apple) and Cloud Firestore into an Ionic Capacitor app. Trigger when adding Firebase Auth, Firestore, social sign-in via Firebase, or backend persistence using Google's Firebase platform.
Install
npx vskill@latest install erkamyaman/ionic-capacitor-skills/ionic-firebaseSKILL.md
The same SKILL.md was published earlier as erkamyaman/ionic-capacitor-skills/ionic-firebase.
Firebase (Auth + Firestore)
The default backend for most Ionic apps. Auth handles sign-up / sign-in (including social providers); Firestore handles persistent data with realtime sync and offline support.
When to consult
- Project setup + native config files (
google-services.json,GoogleService-Info.plist): setup.md - Auth (email, Google, Apple, magic link): auth.md
- Firestore (read/write/realtime/offline): firestore.md
- Per-framework integration snippets: framework-snippets.md
Library choice
Two viable approaches:
| Approach | When to pick | |
|---|---|---|
Firebase JS SDK (firebase npm package) | Web-first, simple cases, web/mobile parity. Works in browser, iOS WKWebView, Android WebView. Auth popups can be tricky on native. | |
Capacitor Firebase plugins (@capacitor-firebase/*) | Native auth dialogs (Google sign-in via native sheets), offline Firestore via native SDKs, push via native FCM. More setup, much better UX. |
Recommendation: use the JS SDK for v1 (faster), migrate to @capacitor-firebase/* plugins when you hit native UX gaps (especially Google Sign-In, which is rough via web-only on Android).
This skill covers both — pick whichever fits.
Hard rules
- ✅ Never put Firebase Admin SDK code in the app. That's server-only — uses a service account with full permissions.
- ✅ Firebase web config (
apiKey,projectId, etc.) is safe to ship — Security Rules do the gating. See `../ionic-shared/references/environments-and-keys.md`. - ✅ Write Firestore Security Rules before going live. The default "test mode" rules expire after 30 days and become "deny all" if not replaced.
- ❌ Don't use Realtime Database for new projects unless you have a specific reason — Firestore is the modern choice.
- ❌ Don't query a collection with no index expecting it to scale — Firestore's query patterns require composite indexes for compound filters.
Library
Pairs with
- Push notifications via FCM: Firebase's
google-services.json/GoogleService-Info.plistalso covers FCM. Wire push handling itself via `../ionic-shared/references/push-notifications.md` — the plugin (@capacitor/push-notifications) is independent of Firebase Auth/Firestore but uses the same native config files. - Magic-link sign-in: requires Universal Link / App Link plumbing — see `../ionic-deep-links/`. Firebase Dynamic Links is shut down — your own deep-link infra is the path.
- Sign in with Apple: integrates via
@capacitor-firebase/authentication(this skill, auth.md). Don't also install@capacitor-community/apple-sign-in— see `../ionic-apple-sign-in/SKILL.md` for when to use the standalone plugin instead.
Security
- Security scanPassed, 95 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/ionic-firebase/SKILL.md
Popularity
- Repository stars
- 16
- Repository forks
- 4
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. 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/erkamyaman/ionic-capacitor-skills/ionic-firebase)