gcp

Google Cloud Platform

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gcp" with this command: npx skills add g1joshi/agent-skills/g1joshi-agent-skills-gcp

Google Cloud Platform

Google Cloud services for scalable applications and data analytics.

When to Use

  • Kubernetes workloads (GKE)

  • Serverless containers (Cloud Run)

  • Data analytics (BigQuery)

  • Machine learning (Vertex AI)

Quick Start

// Cloud Function import { HttpFunction } from "@google-cloud/functions-framework";

export const helloWorld: HttpFunction = (req, res) => { const name = req.query.name || "World"; res.send(Hello, ${name}!); };

Core Concepts

Cloud Storage

import { Storage } from "@google-cloud/storage";

const storage = new Storage(); const bucket = storage.bucket("my-bucket");

// Upload await bucket.upload("local-file.pdf", { destination: "files/document.pdf", metadata: { contentType: "application/pdf" }, });

// Download await bucket.file("files/document.pdf").download({ destination: "downloaded.pdf", });

// Signed URL const [url] = await bucket.file("files/document.pdf").getSignedUrl({ action: "read", expires: Date.now() + 3600 * 1000, });

Firestore

import { Firestore } from "@google-cloud/firestore";

const db = new Firestore();

// Write await db.collection("users").doc("123").set({ name: "John", email: "john@example.com", });

// Query const snapshot = await db .collection("users") .where("status", "==", "active") .orderBy("createdAt", "desc") .limit(10) .get();

snapshot.forEach((doc) => console.log(doc.data()));

Common Patterns

Cloud Run Deployment

cloudbuild.yaml

steps:

  • name: "gcr.io/cloud-builders/docker" args: ["build", "-t", "gcr.io/$PROJECT_ID/myapp", "."]

  • name: "gcr.io/cloud-builders/docker" args: ["push", "gcr.io/$PROJECT_ID/myapp"]

  • name: "gcr.io/cloud-builders/gcloud" args:

    • "run"
    • "deploy"
    • "myapp"
    • "--image=gcr.io/$PROJECT_ID/myapp"
    • "--region=us-central1"
    • "--platform=managed"

Best Practices

Do:

  • Use service accounts with minimal permissions

  • Enable Cloud Audit Logs

  • Use VPC Service Controls

  • Implement proper IAM bindings

Don't:

  • Use default service accounts

  • Make buckets public

  • Skip encryption

  • Ignore billing alerts

Troubleshooting

Issue Cause Solution

Permission denied IAM issue Check service account roles

Cold start slow First request Use min instances

Quota exceeded Rate limiting Request quota increase

References

  • GCP Documentation

  • Cloud Run

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

template

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

mariadb

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

claude

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

javascript

No summary provided by upstream source.

Repository SourceNeeds Review