jeremylongshore/tons-of-skills-marketplace / plugins/community/jeremy-firestore/skills/firestore-operations-manager
firestore-operations-manager
VerifiedManage Firebase/Firestore operations including CRUD, queries, batch processing, and index/rule guidance. Use when you need to create/update/query Firestore documents, run batch writes, troubleshoot missing indexes, or plan migrations. Trigger with phrases like "firestore operations", "create firestore document", "batch write", "missing index", or "fix firestore query".
| File | Kind | Size |
|---|---|---|
| ARD.md | markdown | 9.8 KB |
| PRD.md | markdown | 6.7 KB |
| SKILL.md | skill md | 2.9 KB |
| references/errors.md | markdown | 7.7 KB |
| references/examples.md | markdown | 7.0 KB |
| references/implementation.md | markdown | 7.0 KB |
| scripts/setup-firestore.shexecutable | script | 1.6 KB |
scripts/setup-firestore.sh
View on GitHub#!/bin/bash
# setup-firestore.sh - Setup Firestore for Firebase/GCP project
set -euo pipefail
PROJECT_ID="${1:-${GCP_PROJECT_ID:-}}"
if [[ -z "$PROJECT_ID" ]]; then
echo "Usage: $0 <PROJECT_ID>"
echo "Setup Firestore database with security rules"
exit 1
fi
echo "Setting up Firestore"
echo "Project: $PROJECT_ID"
echo ""
# Enable Firestore API
echo "Enabling Firestore API..."
gcloud services enable firestore.googleapis.com --project="$PROJECT_ID"
# Create Firestore database (Native mode)
echo "Creating Firestore database..."
gcloud firestore databases create \
--location=us-central1 \
--project="$PROJECT_ID" || echo "Database may already exist"
# Create security rules file
cat > firestore.rules <<'EOF'
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// User documents
match /users/{userId} {
allow read, write: if request.auth != null && request.auth.uid == userId;
}
// Public documents
match /public/{document=**} {
allow read: if true;
allow write: if request.auth != null;
}
// A2A agent communication
function isServiceAccount() {
return request.auth.token.email.matches('.*@.*\\.iam\\.gserviceaccount\\.com$');
}
match /agent_sessions/{sessionId} {
allow read, write: if isServiceAccount();
}
match /agent_memory/{agentId}/{document=**} {
allow read, write: if isServiceAccount();
}
}
}
EOF
echo "✓ Security rules created: firestore.rules"
echo ""
echo "Deploy security rules with:"
echo " firebase deploy --only firestore:rules"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |