Operate Firebase projects end-to-end (Auth, Firestore, Functions, Hosting) and integrate Gemini/Vertex AI safely for AI-powered features.
Overview
Use this skill to design, implement, and deploy Firebase applications that call Vertex AI/Gemini from Cloud Functions (or other GCP services) with secure secrets handling, least-privilege IAM, and production-ready observability.
Prerequisites
Node.js runtime and Firebase CLI access for the target project
A Firebase project (billing enabled for Functions/Vertex AI as needed)
Vertex AI API enabled and permissions to call Gemini/Vertex AI from your backend
Secrets managed via env vars or Secret Manager (never in client code)
Instructions
Initialize Firebase (or validate an existing repo): Hosting/Functions/Firestore as required.
Implement backend integration:
add a Cloud Function/HTTP endpoint that calls Gemini/Vertex AI
validate inputs and return structured responses
Configure data and security:
Firestore rules + indexes
Storage rules (if applicable)
Auth providers and authorization checks
Deploy and verify:
deploy Functions/Hosting
run smoke tests against deployed endpoints
Add ops guardrails:
logging/metrics
alerting for error spikes
basic cost controls (budgets/quotas) where appropriate
Output
A deployable Firebase project structure (configs + Functions/Hosting as needed)
Secure backend code that calls Gemini/Vertex AI (with secrets handled correctly)
Firestore/Storage rules and index guidance
A verification checklist (local + deployed) and CI-ready commands
Error Handling
Auth failures: identify the principal and missing permission/role; fix with least privilege.
Billing/API issues: detect which API or quota is blocking and provide remediation steps.
Firestore rule/index problems: provide minimal repro queries and rule fixes.
Vertex AI call failures: surface model/region mismatches and add retries/backoff for transient errors.
Examples
Example: Gemini-backed chat API on Firebase
Request: “Deploy Hosting + a Function that powers a Gemini chat endpoint.”
Result: /api/chat function, Secret Manager wiring, and smoke tests.
Example: Firestore-powered RAG
Request: “Build a RAG flow that embeds docs and answers with citations.”
Result: ingestion plan, embedding + index strategy, and evaluation prompts.
Resources
Full detailed guide (kept for reference): ${CLAUDE_SKILL_DIR}/references/SKILL.full.md
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: jeremylongshore-claude-code-plugins-plus-skills-firebase-ver3description: Firebase Vertex AI4---5# Firebase Vertex AI67Operate Firebase projects end-to-end (Auth, Firestore, Functions, Hosting) and integrate Gemini/Vertex AI safely for AI-powered features.89## Overview1011Use this skill to design, implement, and deploy Firebase applications that call Vertex AI/Gemini from Cloud Functions (or other GCP services) with secure secrets handling, least-privilege IAM, and production-ready observability.1213## Prerequisites1415- Node.js runtime and Firebase CLI access for the target project16- A Firebase project (billing enabled for Functions/Vertex AI as needed)17- Vertex AI API enabled and permissions to call Gemini/Vertex AI from your backend18- Secrets managed via env vars or Secret Manager (never in client code)1920## Instructions21221. Initialize Firebase (or validate an existing repo): Hosting/Functions/Firestore as required.232. Implement backend integration:24 - add a Cloud Function/HTTP endpoint that calls Gemini/Vertex AI25 - validate inputs and return structured responses263. Configure data and security:27 - Firestore rules + indexes28 - Storage rules (if applicable)29 - Auth providers and authorization checks304. Deploy and verify:31 - deploy Functions/Hosting32 - run smoke tests against deployed endpoints335. Add ops guardrails:34 - logging/metrics35 - alerting for error spikes36 - basic cost controls (budgets/quotas) where appropriate3738## Output3940- A deployable Firebase project structure (configs + Functions/Hosting as needed)41- Secure backend code that calls Gemini/Vertex AI (with secrets handled correctly)42- Firestore/Storage rules and index guidance43- A verification checklist (local + deployed) and CI-ready commands4445## Error Handling4647- Auth failures: identify the principal and missing permission/role; fix with least privilege.48- Billing/API issues: detect which API or quota is blocking and provide remediation steps.49- Firestore rule/index problems: provide minimal repro queries and rule fixes.50- Vertex AI call failures: surface model/region mismatches and add retries/backoff for transient errors.5152## Examples5354**Example: Gemini-backed chat API on Firebase**55- Request: “Deploy Hosting + a Function that powers a Gemini chat endpoint.”56- Result: `/api/chat` function, Secret Manager wiring, and smoke tests.5758**Example: Firestore-powered RAG**59- Request: “Build a RAG flow that embeds docs and answers with citations.”60- Result: ingestion plan, embedding + index strategy, and evaluation prompts.6162## Resources6364- Full detailed guide (kept for reference): `${CLAUDE_SKILL_DIR}/references/SKILL.full.md`65- Firebase docs: https://firebase.google.com/docs66- Cloud Functions for Firebase: https://firebase.google.com/docs/functions67- Vertex AI docs: https://cloud.google.com/vertex-ai/docs6869---70> Converted and distributed by [TomeVault](https://tomevault.io/claim/jeremylongshore) — claim your Tome and manage your conversions.71<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/jeremylongshore-claude-code-plugins-plus-skills-firebase-ver in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Firebase Vertex AI It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.