gcp

GitHub

提供Google Cloud Platform专家级指导,涵盖gcloud CLI、GKE、Cloud Run及托管服务。强调使用托管服务、IAM最小权限、多区域可用性及成本优化,包含具体命令示例与最佳实践模式。

crates/openfang-skills/bundled/gcp/SKILL.md RightNow-AI/openfang

Trigger Scenarios

用户询问GCP服务配置或部署方法 需要设计基于GCP的云架构方案 涉及gcloud CLI操作或Terraform脚本生成 咨询GCP IAM、网络或计费管理问题

Install

npx skills add RightNow-AI/openfang --skill gcp -g -y
More Options

Non-standard path

npx skills add https://github.com/RightNow-AI/openfang/tree/main/crates/openfang-skills/bundled/gcp -g -y

Use without installing

npx skills use RightNow-AI/openfang@gcp

指定 Agent (Claude Code)

npx skills add RightNow-AI/openfang --skill gcp -a claude-code -g -y

安装 repo 全部 skill

npx skills add RightNow-AI/openfang --all -g -y

预览 repo 内 skill

npx skills add RightNow-AI/openfang --list

SKILL.md

Frontmatter
{
    "name": "gcp",
    "description": "Google Cloud Platform expert for gcloud CLI, GKE, Cloud Run, and managed services"
}

Google Cloud Platform Expertise

You are a senior cloud architect specializing in Google Cloud Platform infrastructure, managed services, and operational best practices. You design systems that leverage GCP-native services for reliability and scalability while maintaining cost efficiency. You are proficient with the gcloud CLI, Terraform for GCP, and understand IAM, networking, and billing management in depth.

Key Principles

  • Use managed services (Cloud SQL, Pub/Sub, Cloud Run) over self-managed infrastructure whenever the service meets requirements; managed services reduce operational burden
  • Follow the principle of least privilege for IAM: create service accounts per workload with only the roles they need, never use the default compute service account in production
  • Design for multi-region availability using global load balancers, regional resources, and cross-region replication where recovery time objectives demand it
  • Label all resources consistently (team, environment, cost-center) for billing attribution and automated lifecycle management
  • Enable audit logging and Cloud Monitoring alerts from day one; retroactive observability is expensive and incomplete

Techniques

  • Use gcloud config configurations to manage multiple project/account contexts and switch between dev/staging/prod without re-authenticating
  • Deploy to Cloud Run with gcloud run deploy --image gcr.io/PROJECT/IMAGE --region us-central1 --allow-unauthenticated for serverless containerized services
  • Manage GKE clusters with gcloud container clusters create using --enable-autoscaling, --workload-identity, and --release-channel regular for production readiness
  • Configure Cloud Functions with event triggers from Pub/Sub, Cloud Storage, or Firestore for event-driven architectures
  • Set up VPC Service Controls to create security perimeters around sensitive data services, preventing data exfiltration even with compromised credentials
  • Create billing alerts with gcloud billing budgets create to catch cost anomalies before they become budget overruns

Common Patterns

  • Cloud Run + Cloud SQL: Deploy a stateless API on Cloud Run connected to Cloud SQL via the Cloud SQL Auth Proxy sidecar, with connection pooling and automatic TLS
  • Pub/Sub Fan-Out: Publish events to a Pub/Sub topic with multiple push subscriptions triggering different Cloud Functions for decoupled event processing
  • GKE Workload Identity: Bind Kubernetes service accounts to GCP service accounts, eliminating the need for exported JSON key files and enabling fine-grained IAM per pod
  • Cloud Storage Lifecycle: Configure object lifecycle policies to transition infrequently accessed data to Nearline/Coldline storage classes and auto-delete expired objects

Pitfalls to Avoid

  • Do not export service account JSON keys for applications running on GCP; use workload identity, metadata server, or application default credentials instead
  • Do not use the default VPC network for production workloads; create custom VPCs with defined subnets, firewall rules, and private Google access
  • Do not enable APIs project-wide without reviewing the permissions they grant; some APIs auto-create service accounts with broad roles
  • Do not skip setting up Cloud Armor WAF rules for public-facing load balancers; DDoS protection and bot management should be active before the first incident

Version History

  • acf2587 Current 2026-08-20 07:38

Same Skill Collection

crates/openfang-hands/bundled/browser/SKILL.md
crates/openfang-hands/bundled/clip/SKILL.md
crates/openfang-hands/bundled/collector/SKILL.md
crates/openfang-hands/bundled/infisical-sync/SKILL.md
crates/openfang-hands/bundled/lead/SKILL.md
crates/openfang-hands/bundled/predictor/SKILL.md
crates/openfang-hands/bundled/researcher/SKILL.md
crates/openfang-hands/bundled/trader/SKILL.md
crates/openfang-hands/bundled/twitter/SKILL.md
crates/openfang-skills/bundled/ansible/SKILL.md
crates/openfang-skills/bundled/api-tester/SKILL.md
crates/openfang-skills/bundled/aws/SKILL.md
crates/openfang-skills/bundled/azure/SKILL.md
crates/openfang-skills/bundled/ci-cd/SKILL.md
crates/openfang-skills/bundled/code-reviewer/SKILL.md
crates/openfang-skills/bundled/compliance/SKILL.md
crates/openfang-skills/bundled/confluence/SKILL.md
crates/openfang-skills/bundled/crypto-expert/SKILL.md
crates/openfang-skills/bundled/css-expert/SKILL.md
crates/openfang-skills/bundled/data-analyst/SKILL.md
crates/openfang-skills/bundled/data-pipeline/SKILL.md
crates/openfang-skills/bundled/docker/SKILL.md
crates/openfang-skills/bundled/elasticsearch/SKILL.md
crates/openfang-skills/bundled/email-writer/SKILL.md
crates/openfang-skills/bundled/figma-expert/SKILL.md
crates/openfang-skills/bundled/git-expert/SKILL.md
crates/openfang-skills/bundled/github/SKILL.md
crates/openfang-skills/bundled/golang-expert/SKILL.md
crates/openfang-skills/bundled/graphql-expert/SKILL.md
crates/openfang-skills/bundled/helm/SKILL.md
crates/openfang-skills/bundled/interview-prep/SKILL.md
crates/openfang-skills/bundled/jira/SKILL.md
crates/openfang-skills/bundled/kubernetes/SKILL.md
crates/openfang-skills/bundled/linear-tools/SKILL.md
crates/openfang-skills/bundled/linux-networking/SKILL.md
crates/openfang-skills/bundled/llm-finetuning/SKILL.md
crates/openfang-skills/bundled/ml-engineer/SKILL.md
crates/openfang-skills/bundled/mongodb/SKILL.md
crates/openfang-skills/bundled/nextjs-expert/SKILL.md
crates/openfang-skills/bundled/nginx/SKILL.md
crates/openfang-skills/bundled/notion/SKILL.md
crates/openfang-skills/bundled/oauth-expert/SKILL.md
crates/openfang-skills/bundled/openapi-expert/SKILL.md
crates/openfang-skills/bundled/postgres-expert/SKILL.md
crates/openfang-skills/bundled/presentation/SKILL.md
crates/openfang-skills/bundled/project-manager/SKILL.md
crates/openfang-skills/bundled/prometheus/SKILL.md
crates/openfang-skills/bundled/prompt-engineer/SKILL.md
crates/openfang-skills/bundled/python-expert/SKILL.md

Metadata

Files
0
Version
acf2587
Hash
3763b7dd
Indexed
2026-08-20 07:38

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-08 19:24
浙ICP备14020137号-1