gcp
できること
このスキルは、gcloudコマンドラインツール、Cloud Run、GKE、マネージドサービスなど、Google Cloud Platformの使い方を案内します。Google Cloud上でアプリを配備・運用する人向けです。
使う場面
- ✓アプリをCloud Runにデプロイする、またはGKEクラスターを管理する必要があるとき。
- ✓各ワークロードに必要な権限だけを持つサービスアカウントを作りたいとき。
- ✓Google Cloudのプロジェクト、ラベル、監査ログを整理する必要があるとき。
スキルのリンク
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/gcp/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“コンテナをCloud Runにデプロイしてください。必要な権限だけを持つ専用のサービスアカウントを使ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、マネージドサービス、ワークロードごとのサービスアカウント、統一されたラベル、最初からの監査ログを推奨します。一般的な作業のためのgcloudコマンドも示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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
よくある質問
デフォルトのサービスアカウントを使わないのはなぜですか?
本番環境では使わず、ワークロードごとに専用のサービスアカウントを作るべきだとこのスキルは述べています。
Cloud Runとは何ですか?
サーバーを自分で管理せずにコンテナを動かせるGoogleのサービスです。
リソースにラベルを付けるのはなぜですか?
チーム、環境、コストセンターなどのラベルを統一すると、請求や不要なリソースの整理がしやすくなるためです。
詳細
作者による元の説明
Google Cloud Platform expert for gcloud CLI, GKE, Cloud Run, and managed services
repo: RightNow-AI/openfang
人気
- GitHubのスター
- 18k
- ランキング
- #10678
- ライセンス
- Apache-2.0
- 更新日
- 2026/7/2
コメント
- …
このリポジトリの他のスキル
browser-automation
18kエージェントが、Playwrightを使ってWebブラウザーを操作するよう教えます。CSSセレクターでボタン、フォーム、リンクを見つけます。
clip-hand-skill
18kエージェントが、動画のクリップを作るのを助けます。動画をダウンロードし、音声を文字起こしし、字幕ファイルを作り、ffmpegでクリップを切り出します。
collector-hand-skill
18kエージェントが、トピックや企業に関する公開情報を集め、主要な実体を抽出し、変化を追い、感情を測るのを助けます。
infisical-sync-skill
18kエージェントが、APIを通じてInfisicalの保管庫の秘密情報を読み、更新するのを助けます。ログインの手順と明確なエラー処理を含みます。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。