用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mikailustuner/OmniRule --skill gcp-patterns命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | gcp-patterns |
| description | GCP Patterns: Cloud Functions, Cloud Run, BigQuery, Pub/Sub, GKE, serverless data. |
| triggers | {"extensions":[".py",".ts",".yaml"],"directories":["gcp/","infrastructure/"],"keywords":["gcp","google cloud","cloud functions","cloud run","bigquery","pubsub","gke","dataflow","cloud build"]} |
| auto_load_when | Building on Google Cloud or designing serverless architectures |
| agent | cloud-architect |
| tools | ["Read","Write","Bash"] |
Focus: Serverless, data analytics, managed services
When to use what:
├── Cloud Functions (2nd gen)
│ ├── Event-driven, HTTP, scheduled
│ ├── V2: longer timeout (60→9h), more memory (4GB→32GB)
│ └── Pay per invocation + compute time
│
├── Cloud Run
│ ├── Container-based, HTTP services
│ ├── Any language, any framework
│ ├── Auto-scales to 0, scales to 1000+ replicas
│ └── Pay per request (100ms minimum)
│
├── GKE (Kubernetes)
│ ├── Complex orchestration
│ ├── Multi-service architecture
│ └── Full Kubernetes ecosystem
│
└── Compute Engine
│ ├── Legacy, specific hardware
│ └── VMs with full control
GCP Data Services:
├── BigQuery
│ ├── Serverless data warehouse
│ ├── Petabyte scale, pay per query
│ └── ML with BigQuery ML
│
├── Dataflow
│ ├── Unified batch/streaming
│ ├── Apache Beam-based
│ └── Auto-scaling, no cluster management
│
├── Pub/Sub
│ ├── Real-time messaging
│ ├── Global (publish once, subscribe regionally)
│ └── At-least-once delivery
│
├── Dataproc
│ ├── Spark/Hadoop clusters
│ ├── On-demand, auto-scales
│ └── Batch processing
│
└── Cloud Storage
├── Object storage, multiple classes
└── Lifecycle policies, uniform buckets
GCP AI/ML:
├── Vertex AI
│ ├── End-to-end ML platform
│ ├── AutoML for quick start
│ └── Custom training with distributed
│
├── Prediction endpoints
│ ├── Real-time prediction (online)
│ ├── Batch prediction (offline)
│ └── Vertex AI endpoints (managed)
│
├── Feature Store
│ ├── Centralized feature registry
│ ├── Online/offline serving
│ └── Feature sharing across models
│
└── Model Registry
├── Version control for models
├── A/B testing, canary deployment
└── Audit trail
GCP Networking:
├── API Gateway
│ ├── Serverless API management
│ ├── Rate limiting, authentication
│ └── Integrates with Cloud Functions/Run
│
├── Cloud Load Balancing
│ ├── Global HTTP(S) load balancer
│ ├── SSL termination, CDN
│ └── Traffic management (routing rules)
│
├── VPC
│ ├── Shared VPC for organization
│ ├── Private Google Access
│ └── VPC flow logs
│
└── Cloud CDN
├── Global CDN
└── Signed URLs/cookies for private content
IaC in GCP:
├── Deployment Manager
│ ├── GCP native, YAML-based
│ └── Good for simple stacks
│
├── Terraform (recommended)
│ ├── Multi-cloud, large ecosystem
│ └── Official Google provider
│
└── Config Connector
├── Kubernetes-style for GKE
└── Manage GCP resources via K8s API
❌ Using Compute Engine for everything
✅ Serverless (Functions/Run) for most workloads
❌ No VPC for serverless services
✅ Serverless VPC Access Connector for private networking
❌ Not using Cloud CDN
✅ Enable for all static assets
❌ No API management
✅ API Gateway or Apigee for production APIs
❌ Ignoring BigQuery
✅ It's serverless, cheap, use for analytics unless specific reason not to
| Service | Use Case | Key Feature |
|---|---|---|
| Cloud Functions | Event-driven | Pay per invoke |
| Cloud Run | Container services | Any language |
| BigQuery | Data warehouse | Serverless SQL |
| Pub/Sub | Messaging | Global |
| GKE | Kubernetes | Managed K8s |
| Cloud Storage | Object storage | Classes |
| Vertex AI | ML platform | AutoML |
| Cloud CDN | CDN | Global |