Skip to content

☁️ Skill: Google Cloud Platform Backend

📋 Metadata

AtributoValor
IDcicd-gcp
Nivel🔴 Avanzado
Versión1.0.0
Keywordsgcp, gke, cloud-run, cloud-sql, firebase

🔑 Keywords

  • gcp, google-cloud, gke, cloud-run, cloud-sql, firebase, @skill:gcp

📖 Descripción

GCP ofrece servicios cloud para backends Flutter: GKE (Kubernetes), Cloud Run (serverless containers), Cloud SQL, Firebase, Cloud Storage y más.

💻 Servicios Principales

1. GKE (Google Kubernetes Engine)

# Crear cluster
gcloud container clusters create myapp-prod \
  --zone us-central1-a \
  --num-nodes 3 \
  --machine-type n1-standard-2 \
  --enable-autoscaling \
  --min-nodes 2 \
  --max-nodes 10 \
  --enable-autorepair \
  --enable-autoupgrade

# Configure kubectl
gcloud container clusters get-credentials myapp-prod --zone us-central1-a

2. Cloud Run (Serverless Containers)

# service.yaml
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: myapp-backend
spec:
  template:
    metadata:
      annotations:
        autoscaling.knative.dev/minScale: "1"
        autoscaling.knative.dev/maxScale: "10"
    spec:
      containers:
      - image: gcr.io/myproject/backend:latest
        ports:
        - containerPort: 8080
        resources:
          limits:
            memory: 512Mi
            cpu: "1"
# Deploy
gcloud run deploy myapp-backend \
  --image gcr.io/myproject/backend:latest \
  --platform managed \
  --region us-central1 \
  --allow-unauthenticated \
  --memory 512Mi \
  --max-instances 10

3. Cloud SQL (PostgreSQL)

# Create instance
gcloud sql instances create myapp-db \
  --database-version=POSTGRES_15 \
  --tier=db-g1-small \
  --region=us-central1 \
  --backup \
  --backup-start-time=03:00 \
  --enable-bin-log \
  --maintenance-window-day=SUN \
  --maintenance-window-hour=04

# Create database
gcloud sql databases create myapp_prod --instance=myapp-db

# Create user
gcloud sql users create admin \
  --instance=myapp-db \
  --password=SecurePassword123!

4. Cloud Storage

# Create bucket
gsutil mb -l us-central1 gs://myapp-storage-prod

# Set CORS
echo '[
  {
    "origin": ["*"],
    "method": ["GET", "POST", "PUT"],
    "responseHeader": ["Content-Type"],
    "maxAgeSeconds": 3600
  }
]' > cors.json

gsutil cors set cors.json gs://myapp-storage-prod

5. Firebase Integration

# Initialize Firebase
firebase init

# Deploy Functions
firebase deploy --only functions

# Deploy Firestore rules
firebase deploy --only firestore:rules

# Deploy Hosting
firebase deploy --only hosting

🎯 Mejores Prácticas

  1. Use GKE Autopilot para managed Kubernetes
  2. Cloud Run para cargas serverless
  3. Cloud SQL Proxy para conexiones seguras
  4. Secret Manager para credentials
  5. Cloud Monitoring para observability
  6. IAM roles granulares
  7. Cloud Armor para DDoS protection

📚 Recursos


Versión: 1.0.0

writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 197kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall