raidan-ai/opencode-settings/firebase
Claude Code and agent skill by raidan-ai/opencode-settings
- community
Checking that the SKILL.md file is still in the repository.
Firebase development on Google's app platform. Covers Firebase CLI, Authentication, Cloud Firestore, Cloud Storage, Cloud Functions, Hosting, Security Rules, and the Emulator Suite, plus the Firebase MCP server. Activate for any Firebase project, auth, database, storage, functions, or hosting task.
Install
npx vskill@latest install raidan-ai/opencode-settings/firebaseSKILL.md
The same SKILL.md was published earlier as raidan-ai/opencode-settings/firebase.
Firebase Skill
Purpose
Provides Firebase development capabilities across Authentication, Cloud Firestore (+ SQL Connect), Cloud Storage, Cloud Functions, Hosting, Security Rules, and the Emulator Suite for local development. Enables building and operating full-stack apps using the Firebase CLI and the official Firebase MCP server.
When to Activate
- Setting up or managing Firebase projects
- Implementing Firebase Authentication (email, OAuth providers, anonymous, custom tokens)
- Modeling and querying data in Cloud Firestore
- Managing Cloud Storage buckets and files, including security rules
- Deploying and debugging Cloud Functions (v1/v2)
- Deploying web apps to Firebase Hosting or App Hosting
- Writing and testing Security Rules
- Running the Emulator Suite for local development and automated tests
- Using the Firebase MCP server for agent-assisted project/data work
Core Knowledge
Firebase MCP Server (verified official)
- Ships in the Firebase CLI — not a separate package.
- Command:
npx -y firebase-tools@latest mcp(stdio) - Docs: https://firebase.google.com/docs/cli/mcp-server · Source: firebase/firebase-tools
src/mcp - Auth: same credentials as the Firebase CLI — logged-in user (
firebase login) or Application Default Credentials (ADC). No separate API key. - Options:
--dir ABSOLUTE_DIR_PATH— absolute path of the dir containingfirebase.jsonto set project context (if omitted,get_project_directory/set_project_directorytools are offered).--only FEATURE_1,FEATURE_2— limit exposed tools, e.g.--only auth,firestore,storage.
- Start with
"enabled": false; flight-check in a live session before enabling. - Firebase agent skills can be installed alongside to teach models how to use MCP tools effectively.
Firebase CLI
Core Services
- Authentication: email/password, OAuth providers (Google, GitHub, etc.), phone, anonymous, custom tokens, sign-in links.
- Cloud Firestore: NoSQL document DB, real-time sync, subcollections, queries, transactions, offline persistence; plus SQL Connect for relational data.
- Cloud Storage: object/file storage for images, media, user uploads; governed by Security Rules.
- Cloud Functions: v1 (Node) / v2 (Cloud Run-based) event-driven + HTTPS functions.
- Hosting: static + SSR hosting, rich rewrites, headers, redirects.
- Security Rules: declarative access control for Firestore + Storage.
Security Rules (example — Firestore)
Emulator Suite
Workflow
- Authenticate:
firebase login(interactive) orfirebase login:ci(CI token). - Init:
firebase initto scaffold features and generatefirebase.json+.firebaserc. - Develop locally with the Emulator Suite to iterate without cloud cost or data side effects.
- Model data: design Firestore collections/subcollections with security rules in mind (deny by default, then allow).
- Test security rules using the rules emulator (
@firebase/rules-unit-testingorfirebase emulators:exec). - Deploy with
firebase deployscoped to the changed features (--only functions,hosting). - Verify: exercise the deployed endpoints, check Functions logs, confirm Security Rules enforce access.
- Monitor: use Firebase console + Cloud functions logs; enable error tracking.
Tools
MCP Requirements
- Local server:
npx -y firebase-tools@latest mcp, stdio. - Optional args:
--dir <abs path>,--only auth,firestore,storage. - Auth = existing CLI/ADC credentials; no API key.
Best Practices
- Deny-by-default Security Rules; grant the minimum access pattern (
read/write/create/update/deletegranularity). - Validate all rules against the emulator before deploying to production.
- Use the Emulator Suite for local dev and CI tests; isolate test projects in CI.
- Keep Functions small and idempotent (event handlers may be retried).
- Use
--onlytargeting to limit deploys and blast radius. - Store secrets (API keys, tokens) in environment config / Secret Manager, never in source.
- Set
firebase.jsonignored project aliases; keep.firebaserccommitted for team consistency. - Enable App Check for production auth to protect your backend resources.
Anti-patterns
- ❌ Committing
.firebaselocal state, service-account JSON keys, orlogin:citokens to git. - ❌ Writing permissive rules like
allow read, write: if truefor real user data. - ❌ Developing/deploying directly against production without emulators or staging.
- ❌ Deploying untested Security Rules that lock users out or expose data.
- ❌ Keeping large binary files in Firestore instead of Cloud Storage.
- ❌ Ignoring Security Rules for Storage (files left publicly readable/writable).
- ❌ Hardcoding project config or secrets array in app code.
Verification
- Before/after changing Security Rules, run
firebase emulators:exec "npm test"to prove allow/deny behavior. - After deploys, exercise read/write paths for both authenticated and anonymous/unauthenticated users in the console.
Examples
Initialize a new project
Run Firestore rules tests against the emulator
Deploy only what changed
Deploy a backend for a web app
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/opencode/firebase/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/raidan-ai/opencode-settings/firebase)