gcp
Skill này làm gì
Skill này hướng dẫn làm việc với Google Cloud Platform, gồm dòng lệnh gcloud, Cloud Run, GKE và các dịch vụ được quản lý. Nó dành cho người triển khai và chạy ứng dụng trên Google Cloud.
Khi nào nên dùng
- ✓Khi bạn cần triển khai ứng dụng lên Cloud Run hoặc quản lý cụm GKE.
- ✓Khi bạn muốn tài khoản dịch vụ chỉ có quyền mỗi khối lượng công việc cần.
- ✓Khi bạn cần tổ chức dự án, nhãn và log kiểm toán của Google Cloud.
Liên kết skill
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/gcp/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Triển khai container của tôi lên Cloud Run với tài khoản dịch vụ riêng chỉ có các quyền cần thiết.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill khuyên dùng dịch vụ được quản lý, tài khoản dịch vụ riêng cho từng khối lượng công việc, nhãn nhất quán và ghi log kiểm toán ngay từ đầu, cùng các lệnh gcloud cho tác vụ phổ biến.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 configurationsto 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-unauthenticatedfor serverless containerized services - Manage GKE clusters with
gcloud container clusters createusing--enable-autoscaling,--workload-identity, and--release-channel regularfor 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 createto 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
Câu hỏi thường gặp
Vì sao không dùng tài khoản dịch vụ mặc định?
Skill nói không bao giờ dùng tài khoản dịch vụ compute mặc định trong sản xuất, mà tạo một tài khoản riêng cho mỗi khối lượng công việc.
Cloud Run là gì?
Đó là dịch vụ của Google chạy container mà bạn không phải quản lý máy chủ.
Vì sao gắn nhãn tài nguyên?
Nhãn nhất quán như team, môi trường và trung tâm chi phí giúp việc tính phí và dọn dẹp dễ quản lý hơn.
Chi tiết
Mô tả gốc của tác giả
Google Cloud Platform expert for gcloud CLI, GKE, Cloud Run, and managed services
repo: RightNow-AI/openfang
Độ phổ biến
- Sao GitHub
- 18k
- Vị trí xếp hạng
- #10678
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/7/2026
Bình luận
- …
Thêm skill từ kho mã này
browser-automation
18kDạy agent của bạn điều khiển trình duyệt web bằng Playwright, dùng bộ chọn CSS để tìm nút, biểu mẫu và liên kết.
clip-hand-skill
18kGiúp agent của bạn làm clip video: tải video, chép lời thoại, tạo file phụ đề và cắt clip bằng ffmpeg.
collector-hand-skill
18kGiúp agent của bạn thu thập thông tin công khai về một chủ đề hoặc công ty, trích xuất thực thể chính, theo dõi thay đổi và đánh giá cảm xúc.
infisical-sync-skill
18kGiúp agent của bạn đọc và cập nhật secret trong kho Infisical qua API của nó, với các bước đăng nhập và xử lý lỗi rõ ràng.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.