jeremylongshore/tons-of-skills-marketplace / plugins/community/jeremy-firebase/skills/firebase-vertex-ai
firebase-vertex-ai
VerifiedExecute firebase platform expert with Vertex AI Gemini integration for Authentication, Firestore, Storage, Functions, Hosting, and AI-powered features. Use when asked to "setup firebase", "deploy to firebase", or "integrate vertex ai with firebase". Trigger with relevant phrases based on skill purpose.
| File | Kind | Size |
|---|---|---|
| ARD.md | markdown | 10.4 KB |
| PRD.md | markdown | 6.2 KB |
| SKILL.md | skill md | 3.3 KB |
| references/errors.md | markdown | 7.1 KB |
| references/examples.md | markdown | 7.7 KB |
| references/implementation.md | markdown | 7.3 KB |
| scripts/init-firebase.shexecutable | script | 1.8 KB |
scripts/init-firebase.sh
View on GitHub#!/bin/bash
# init-firebase.sh - Initialize Firebase project with Vertex AI
set -euo pipefail
PROJECT_NAME="${1:-firebase-project}"
echo "Initializing Firebase Project with Vertex AI Integration"
echo "Project: $PROJECT_NAME"
echo ""
mkdir -p "$PROJECT_NAME"
cd "$PROJECT_NAME"
# Check Firebase CLI
if ! command -v firebase &> /dev/null; then
echo "Installing Firebase CLI..."
npm install -g firebase-tools
fi
# Initialize Firebase project
echo "Initializing Firebase..."
firebase init
# Create project structure
mkdir -p functions/src/{auth,firestore,vertex,storage}
mkdir -p public
# Create .env.local
cat > .env.local <<'EOF'
GCP_PROJECT_ID=your-project-id
GOOGLE_APPLICATION_CREDENTIALS=./service-account-key.json
EOF
# Create Vertex AI integration template
cat > functions/src/vertex/embeddings.ts <<'EOF'
import { VertexAI } from '@google-cloud/vertexai';
import * as admin from 'firebase-admin';
import * as functions from 'firebase-functions';
const vertex = new VertexAI({
project: process.env.GCP_PROJECT_ID!,
location: 'us-central1'
});
export const generateEmbeddings = functions.firestore
.document('posts/{postId}')
.onCreate(async (snap, context) => {
const post = snap.data();
const text = post.title + ' ' + post.content;
const model = vertex.getGenerativeModel({ model: 'text-embedding-004' });
const result = await model.embedText({ text });
await admin.firestore()
.collection('embeddings')
.doc(context.params.postId)
.set({
postId: context.params.postId,
vector: result.embedding.values,
createdAt: admin.firestore.FieldValue.serverTimestamp()
});
});
EOF
echo "✓ Firebase project initialized with Vertex AI integration"
echo ""
echo "Next steps:"
echo " cd $PROJECT_NAME"
echo " npm install --prefix functions"
echo " firebase deploy"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |